X-Git-Url: https://git.llucax.com/software/sadba.git/blobdiff_plain/653838b38412bf0ca7ecd3bb0ebf6434cdcabad6..de60cb30eb51c69b3e5f699e4ed392fc98c44e1e:/src/lib-display-blanking-status-menu-widget.c diff --git a/src/lib-display-blanking-status-menu-widget.c b/src/lib-display-blanking-status-menu-widget.c index 21d5f33..5953c80 100644 --- a/src/lib-display-blanking-status-menu-widget.c +++ b/src/lib-display-blanking-status-menu-widget.c @@ -79,6 +79,8 @@ GType display_blanking_status_plugin_get_type (void); #define GETTEXT_DOM "status-area-displayblanking-applet" #define gettext_noop(str) (str) +// Undocumented blanking modes as reported by David Weinehall from Nokia: +// http://www.gossamer-threads.com/lists/maemo/developers/61201#61201 #define BLANKING_MODES 5 static const char *_DisplayBlankingDescription[BLANKING_MODES] = { @@ -172,8 +174,7 @@ on_mode_button_clicked (GtkWidget *button, gtk_box_pack_start (GTK_BOX (GTK_DIALOG (priv->mode_dialog)->vbox), pan_area, TRUE, TRUE, 0); - g_object_set (G_OBJECT (pan_area), "height-request", - MIN (350, BLANKING_MODES * 70), NULL); + gtk_widget_set_size_request (pan_area, -1, MIN (350, BLANKING_MODES * 70)); gint mode = BLANKING_MODES; for (int i = 0; i < BLANKING_MODES; i++) {