summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-colorseldialog.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-05-04 20:02:13 +0200
committerStefano Karapetsas <[email protected]>2014-05-04 20:02:13 +0200
commit36674f729711588181754a4b587564962e15c138 (patch)
tree196140b1b8599e2e13f450e757e9bc1b517a505a /libmate-desktop/mate-colorseldialog.c
parentc9497d958bb1ca646c1b8b69dfe344f2e2a555ed (diff)
downloadmate-desktop-36674f729711588181754a4b587564962e15c138.tar.bz2
mate-desktop-36674f729711588181754a4b587564962e15c138.tar.xz
libmate-desktop: Add GTK3 support to MateColorButton
Diffstat (limited to 'libmate-desktop/mate-colorseldialog.c')
-rw-r--r--libmate-desktop/mate-colorseldialog.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libmate-desktop/mate-colorseldialog.c b/libmate-desktop/mate-colorseldialog.c
index 6758602..ba72820 100644
--- a/libmate-desktop/mate-colorseldialog.c
+++ b/libmate-desktop/mate-colorseldialog.c
@@ -131,15 +131,15 @@ mate_color_selection_dialog_init (MateColorSelectionDialog *colorseldiag)
_mate_desktop_init_i18n ();
gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
- gtk_box_set_spacing (GTK_BOX (dialog->vbox), 2); /* 2 * 5 + 2 = 12 */
- gtk_container_set_border_width (GTK_CONTAINER (dialog->action_area), 5);
- gtk_box_set_spacing (GTK_BOX (dialog->action_area), 6);
+ gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (dialog)), 2); /* 2 * 5 + 2 = 12 */
+ gtk_container_set_border_width (GTK_CONTAINER (gtk_dialog_get_action_area (dialog)), 5);
+ gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_action_area (dialog)), 6);
colorseldiag->colorsel = mate_color_selection_new ();
gtk_container_set_border_width (GTK_CONTAINER (colorseldiag->colorsel), 5);
mate_color_selection_set_has_palette (MATE_COLOR_SELECTION(colorseldiag->colorsel), FALSE);
mate_color_selection_set_has_opacity_control (MATE_COLOR_SELECTION(colorseldiag->colorsel), FALSE);
- gtk_container_add (GTK_CONTAINER (GTK_DIALOG (colorseldiag)->vbox), colorseldiag->colorsel);
+ gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (colorseldiag))), colorseldiag->colorsel);
gtk_widget_show (colorseldiag->colorsel);
colorseldiag->cancel_button = gtk_dialog_add_button (GTK_DIALOG (colorseldiag),