Commit ccb0de33 authored by Felipe Borges's avatar Felipe Borges

printers: Set min-content-height on the scrolled window

Set a minimum content height of 490px for the panel when the
allocated height is smaller than 490px.

490 is an estimated value for the panels to properly fit on netbook
screens. See
parent 4b688438
......@@ -41,6 +41,8 @@
#include "pp-job.h"
#include "pp-printer-entry.h"
#define SCROLL_HEIGHT 490
CC_PANEL_REGISTER (CcPrintersPanel, cc_printers_panel)
......@@ -867,6 +869,10 @@ cc_printers_panel_init (CcPrintersPanel *self)
gtk_builder_get_object (priv->builder, "printer-add-button2");
g_signal_connect (widget, "clicked", G_CALLBACK (printer_add_cb), self);
widget = (GtkWidget*)
gtk_builder_get_object (priv->builder, "scrolled-window");
gtk_scrolled_window_set_min_content_height (GTK_SCROLLED_WINDOW (widget), SCROLL_HEIGHT);
priv->lockdown_settings = g_settings_new ("org.gnome.desktop.lockdown");
if (priv->lockdown_settings)
g_signal_connect_object (priv->lockdown_settings,
......@@ -44,7 +44,7 @@
<object class="GtkScrolledWindow">
<object class="GtkScrolledWindow" id="scrolled-window">
<property name="visible">True</property>
<object class="GtkBox" id="content">
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment