summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-05-11 18:38:36 +0200
committerStefano Karapetsas <[email protected]>2014-05-11 18:38:36 +0200
commit36ee6c121996ede96f838964b51e950d3c957491 (patch)
tree9f439ec230d2ec666d341bccc2ef053a78a87d54 /tools
parentd80a75c3b9b4d453067386c6a8f3cc7506c0a401 (diff)
downloadmate-desktop-36ee6c121996ede96f838964b51e950d3c957491.tar.bz2
mate-desktop-36ee6c121996ede96f838964b51e950d3c957491.tar.xz
MateColorSelectionDialog: Allow to use header bar with GTK 3.12
Diffstat (limited to 'tools')
-rw-r--r--tools/mate-color-select.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/mate-color-select.c b/tools/mate-color-select.c
index b2da648..5ef4785 100644
--- a/tools/mate-color-select.c
+++ b/tools/mate-color-select.c
@@ -42,7 +42,12 @@ main (int argc, char **argv)
/* initialize GTK+ */
gtk_init (&argc, &argv);
+#if GTK_CHECK_VERSION (3, 12, 0)
+ color_dialog = mate_color_selection_dialog_new_with_header_bar (_("MATE Color Selection"));
+ gtk_header_bar_set_show_close_button (gtk_dialog_get_header_bar (GTK_DIALOG (color_dialog)), TRUE);
+#else
color_dialog = mate_color_selection_dialog_new (_("MATE Color Selection"));
+#endif
/* quit signal */
g_signal_connect (color_dialog, "destroy", gtk_main_quit, NULL);