summaryrefslogtreecommitdiff
path: root/battstat/properties.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-20 10:42:30 +0100
committerStefano Karapetsas <[email protected]>2014-01-20 10:42:30 +0100
commit1ef3e3f0edd6e3bca496219205b381197ee78e15 (patch)
treeb180967f90d1b7f9595f6efb85e7c83764d643fe /battstat/properties.c
parent418755ff4823a6b62fa64970b4fa715eb4e92eb2 (diff)
downloadmate-applets-1ef3e3f0edd6e3bca496219205b381197ee78e15.tar.bz2
mate-applets-1ef3e3f0edd6e3bca496219205b381197ee78e15.tar.xz
battstat: Add GTK3 support
Code taken from: https://git.gnome.org/browse/gnome-applets/commit/battstat?id=274f17fe92b98b5a0bdd31de734240b4cc6227e9 https://git.gnome.org/browse/gnome-applets/commit/battstat?id=137c00e2de6098b0ecef75ec208d58de138d7a82 https://git.gnome.org/browse/gnome-applets/commit/battstat?id=13522dcb2cb272b11214728c69c9ec179de78e2d
Diffstat (limited to 'battstat/properties.c')
-rw-r--r--battstat/properties.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/battstat/properties.c b/battstat/properties.c
index 8242ccee..634290ce 100644
--- a/battstat/properties.c
+++ b/battstat/properties.c
@@ -411,7 +411,9 @@ prop_cb (GtkAction *action,
gtk_dialog_set_default_response (GTK_DIALOG (battstat->prop_win),
GTK_RESPONSE_CLOSE);
gtk_window_set_resizable (GTK_WINDOW (battstat->prop_win), FALSE);
+#if !GTK_CHECK_VERSION (3, 0, 0)
gtk_dialog_set_has_separator (GTK_DIALOG (battstat->prop_win), FALSE);
+#endif
g_signal_connect (G_OBJECT (battstat->prop_win), "response",
G_CALLBACK (response_cb), battstat);