From: Leandro Lucarella Date: Fri, 27 Jul 2012 17:52:08 +0000 (+0200) Subject: Use a better way to request a widget size X-Git-Tag: v0.4~4 X-Git-Url: https://git.llucax.com/software/sadba.git/commitdiff_plain/de60cb30eb51c69b3e5f699e4ed392fc98c44e1e Use a better way to request a widget size --- diff --git a/src/lib-display-blanking-status-menu-widget.c b/src/lib-display-blanking-status-menu-widget.c index 5c4cdbb..5953c80 100644 --- a/src/lib-display-blanking-status-menu-widget.c +++ b/src/lib-display-blanking-status-menu-widget.c @@ -174,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++) {