summaryrefslogtreecommitdiff
path: root/mate-screenshot/src
diff options
context:
space:
mode:
Diffstat (limited to 'mate-screenshot/src')
-rw-r--r--mate-screenshot/src/mate-screenshot.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/mate-screenshot/src/mate-screenshot.c b/mate-screenshot/src/mate-screenshot.c
index 14269d87..c7f88dbd 100644
--- a/mate-screenshot/src/mate-screenshot.c
+++ b/mate-screenshot/src/mate-screenshot.c
@@ -321,7 +321,11 @@ create_effects_frame (GtkWidget *outer_vbox,
GtkWidget *combo;
gchar *title;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+#else
main_vbox = gtk_vbox_new (FALSE, 6);
+#endif
gtk_box_pack_start (GTK_BOX (outer_vbox), main_vbox, FALSE, FALSE, 0);
gtk_widget_show (main_vbox);
effects_vbox = main_vbox;
@@ -339,7 +343,11 @@ create_effects_frame (GtkWidget *outer_vbox,
gtk_widget_show (label);
g_free (title);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
+#else
hbox = gtk_hbox_new (FALSE, 12);
+#endif
gtk_box_pack_start (GTK_BOX (main_vbox), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
@@ -348,7 +356,11 @@ create_effects_frame (GtkWidget *outer_vbox,
gtk_box_pack_start (GTK_BOX (hbox), align, FALSE, FALSE, 0);
gtk_widget_show (align);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+#else
vbox = gtk_vbox_new (FALSE, 6);
+#endif
gtk_container_add (GTK_CONTAINER (align), vbox);
gtk_widget_show (vbox);
@@ -373,7 +385,11 @@ create_effects_frame (GtkWidget *outer_vbox,
border_check = check;
/** Effects **/
+#if GTK_CHECK_VERSION (3, 0, 0)
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
+#else
hbox = gtk_hbox_new (FALSE, 12);
+#endif
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
@@ -411,7 +427,11 @@ create_screenshot_frame (GtkWidget *outer_vbox,
GSList *group;
gchar *title;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+#else
main_vbox = gtk_vbox_new (FALSE, 6);
+#endif
gtk_box_pack_start (GTK_BOX (outer_vbox), main_vbox, FALSE, FALSE, 0);
gtk_widget_show (main_vbox);
@@ -428,7 +448,11 @@ create_screenshot_frame (GtkWidget *outer_vbox,
gtk_widget_show (label);
g_free (title);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
+#else
hbox = gtk_hbox_new (FALSE, 12);
+#endif
gtk_box_pack_start (GTK_BOX (main_vbox), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
@@ -442,7 +466,11 @@ create_screenshot_frame (GtkWidget *outer_vbox,
gtk_container_add (GTK_CONTAINER (align), image);
gtk_widget_show (image);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+#else
vbox = gtk_vbox_new (FALSE, 6);
+#endif
gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, FALSE, 0);
gtk_widget_show (vbox);
@@ -483,7 +511,11 @@ create_screenshot_frame (GtkWidget *outer_vbox,
gtk_widget_show (radio);
/** Grab after delay **/
+#if GTK_CHECK_VERSION (3, 0, 0)
+ delay_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
+#else
delay_hbox = gtk_hbox_new (FALSE, 6);
+#endif
gtk_box_pack_start (GTK_BOX (vbox), delay_hbox, FALSE, FALSE, 0);
gtk_widget_show (delay_hbox);
@@ -541,7 +573,11 @@ create_interactive_dialog (void)
gtk_window_set_title (GTK_WINDOW (retval), _("Take Screenshot"));
/* main container */
+#if GTK_CHECK_VERSION (3, 0, 0)
+ main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 18);
+#else
main_vbox = gtk_vbox_new (FALSE, 18);
+#endif
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 5);
gtk_box_pack_start (GTK_BOX (content_area), main_vbox, TRUE, TRUE, 0);
gtk_widget_show (main_vbox);