summaryrefslogtreecommitdiff
path: root/src/gtk-utils.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-11-20 03:54:01 -0800
committerStefano Karapetsas <[email protected]>2013-11-20 03:54:01 -0800
commit0e4df16ea5762fb11aac4cece97aa5210ccb6f0f (patch)
tree6bb18ba82419c259f1eec4bf6c1c3676a872992e /src/gtk-utils.c
parent36aefd0601529725931abbf7280684c1efdc3f34 (diff)
parent8d284101a0ee5714a198424926612a163c3c691f (diff)
downloadengrampa-0e4df16ea5762fb11aac4cece97aa5210ccb6f0f.tar.bz2
engrampa-0e4df16ea5762fb11aac4cece97aa5210ccb6f0f.tar.xz
Merge pull request #35 from eyelash/gtk3
add GTK3 support
Diffstat (limited to 'src/gtk-utils.c')
-rw-r--r--src/gtk-utils.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gtk-utils.c b/src/gtk-utils.c
index 5e7fff4..3c55ffe 100644
--- a/src/gtk-utils.c
+++ b/src/gtk-utils.c
@@ -78,7 +78,9 @@ _gtk_message_dialog_new (GtkWindow *parent,
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
+#if !GTK_CHECK_VERSION(2,22,0)
gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
+#endif
gtk_container_set_border_width (GTK_CONTAINER (dialog), 6);
gtk_container_set_border_width (GTK_CONTAINER (content_area), 6);
gtk_box_set_spacing (GTK_BOX (content_area), 8);
@@ -214,7 +216,9 @@ _gtk_request_dialog_run (GtkWindow *parent,
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
+#if !GTK_CHECK_VERSION(2,22,0)
gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
+#endif
gtk_container_set_border_width (GTK_CONTAINER (dialog), 6);
gtk_container_set_border_width (GTK_CONTAINER (content_area), 6);
gtk_box_set_spacing (GTK_BOX (content_area), 8);
@@ -306,7 +310,9 @@ _gtk_yesno_dialog_new (GtkWindow *parent,
content_area = gtk_dialog_get_content_area (GTK_DIALOG (d));
+#if !GTK_CHECK_VERSION(2,22,0)
gtk_dialog_set_has_separator (GTK_DIALOG (d), FALSE);
+#endif
gtk_container_set_border_width (GTK_CONTAINER (d), 6);
gtk_container_set_border_width (GTK_CONTAINER (content_area), 6);
gtk_box_set_spacing (GTK_BOX (content_area), 8);
@@ -394,7 +400,9 @@ _gtk_error_dialog_new (GtkWindow *parent,
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
+#if !GTK_CHECK_VERSION(2,22,0)
gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
+#endif
gtk_container_set_border_width (GTK_CONTAINER (dialog), 6);
gtk_container_set_border_width (GTK_CONTAINER (content_area), 6);
gtk_box_set_spacing (GTK_BOX (content_area), 8);