summaryrefslogtreecommitdiff
path: root/mateweather/mateweather-dialog.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-20 10:13:52 +0100
committerStefano Karapetsas <[email protected]>2014-01-20 10:13:52 +0100
commit418755ff4823a6b62fa64970b4fa715eb4e92eb2 (patch)
tree4b6b1ca13023c78039acc34082a13d61ee43aa0f /mateweather/mateweather-dialog.c
parent7ca1965de675c694a0a811c6d075b67a114edd3a (diff)
downloadmate-applets-418755ff4823a6b62fa64970b4fa715eb4e92eb2.tar.bz2
mate-applets-418755ff4823a6b62fa64970b4fa715eb4e92eb2.tar.xz
mateweather: Add GTK3 support
Bump minimum GTK2 version to 2.24 to use GtkComboBoxText with both GTK versions
Diffstat (limited to 'mateweather/mateweather-dialog.c')
-rw-r--r--mateweather/mateweather-dialog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mateweather/mateweather-dialog.c b/mateweather/mateweather-dialog.c
index 851af3d9..7ea07e17 100644
--- a/mateweather/mateweather-dialog.c
+++ b/mateweather/mateweather-dialog.c
@@ -187,7 +187,9 @@ static void mateweather_dialog_create(MateWeatherDialog* dialog)
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE);
+#if !GTK_CHECK_VERSION (3, 0, 0)
gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
+#endif
gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), 2);
gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);