]> git.llucax.com Git - software/sadba.git/commitdiff
Use dialog's content_area instead of vbox
authorLeandro Lucarella <llucax@gmail.com>
Sun, 29 Jul 2012 16:37:39 +0000 (18:37 +0200)
committerLeandro Lucarella <llucax@gmail.com>
Sun, 29 Jul 2012 16:39:06 +0000 (18:39 +0200)
src/lib-display-blanking-status-menu-widget.c

index 49f838245a0714e6fb544c38f533c0068b754fb2..3b8379534ece508a4a3c1a5cd1d4b2403d5a9b57 100644 (file)
@@ -185,8 +185,9 @@ on_mode_button_clicked (GtkWidget *button,
 
     hildon_pannable_area_add_with_viewport (HILDON_PANNABLE_AREA (pan_area),
             vbox);
-    gtk_box_pack_start (GTK_BOX (GTK_DIALOG (priv->mode_dialog)->vbox),
-            pan_area, TRUE, TRUE, 0);
+    GtkWidget *content_area = gtk_dialog_get_content_area (
+            GTK_DIALOG (priv->mode_dialog));
+    gtk_box_pack_start (GTK_BOX (content_area), pan_area, TRUE, TRUE, 0);
 
     gtk_widget_set_size_request (pan_area, -1, MIN (350, BLANKING_MODES * 70));