summaryrefslogtreecommitdiff
path: root/battstat/battstat.h
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/battstat.h
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/battstat.h')
-rw-r--r--battstat/battstat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/battstat/battstat.h b/battstat/battstat.h
index a48dd121..16fb84b0 100644
--- a/battstat/battstat.h
+++ b/battstat/battstat.h
@@ -114,8 +114,10 @@ typedef struct _ProgressData {
/* label changed type (% <-> h:mm) and must be refreshed */
gboolean refresh_label;
+#if !GTK_CHECK_VERSION (3, 0, 0)
/* so we don't have to alloc/dealloc this every refresh */
GdkGC *pixgc;
+#endif
/* the main table that contains the visual elements */
GtkWidget *table;