From 6f3b04cf976b231d31d6704b0a69a25f10ab7d7d Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 5 Aug 2016 12:51:43 +0200 Subject: GTK+-3 battstat: port GtkTable to GtkGrid --- battstat/battstat.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'battstat/battstat.h') 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 */ -- cgit v1.2.1