summaryrefslogtreecommitdiff
path: root/battstat/battstat.h
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-08-05 12:51:43 +0200
committerraveit65 <[email protected]>2016-08-31 15:29:57 +0200
commit6f3b04cf976b231d31d6704b0a69a25f10ab7d7d (patch)
treedd3290fbef1c9d30a26a1418c0e23e078ada8531 /battstat/battstat.h
parentee51aa3168c69233b78c0cb46414fb7b49fbccb0 (diff)
downloadmate-applets-6f3b04cf976b231d31d6704b0a69a25f10ab7d7d.tar.bz2
mate-applets-6f3b04cf976b231d31d6704b0a69a25f10ab7d7d.tar.xz
GTK+-3 battstat: port GtkTable to GtkGrid
Diffstat (limited to 'battstat/battstat.h')
-rw-r--r--battstat/battstat.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/battstat/battstat.h b/battstat/battstat.h
index 378c7135..1f4e800f 100644
--- a/battstat/battstat.h
+++ b/battstat/battstat.h
@@ -114,8 +114,13 @@ typedef struct _ProgressData {
/* label changed type (% <-> h:mm) and must be refreshed */
gboolean refresh_label;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ /* the main grid that contains the visual elements */
+ GtkWidget *grid;
+#else
/* the main table that contains the visual elements */
GtkWidget *table;
+#endif
/* the visual elements */
GtkWidget *battery;
@@ -138,7 +143,11 @@ typedef struct _ProgressData {
/* on a vertical or horizontal panel? (up/down/left/right) */
MatePanelAppletOrient orienttype;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ /* the current layout of the visual elements inside the grid */
+#else
/* the current layout of the visual elements inside the table */
+#endif
LayoutConfiguration layout;
/* g_timeout source identifier */