changeset 2211:9395c1efa98b

GTK: _dw_app_id[] is not used with glib prior to 2.28 so move it into #ifdef
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 09 Dec 2020 04:35:40 +0000
parents 7677e1083d07
children f903f7576e9d
files gtk/dw.c gtk3/dw.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/dw.c	Mon Dec 07 20:01:03 2020 +0000
+++ b/gtk/dw.c	Wed Dec 09 04:35:40 2020 +0000
@@ -126,10 +126,10 @@
 
 #if GLIB_CHECK_VERSION(2,28,0)
 GApplication *_DWApp = NULL;
+static char _dw_app_id[_DW_APP_ID_SIZE+1] = { 0 };
 #endif
 char *_DWDefaultFont = NULL;
 static char _dw_share_path[PATH_MAX+1] = { 0 };
-static char _dw_app_id[_DW_APP_ID_SIZE+1] = { 0 };
 
 #if GTK_MAJOR_VERSION < 2
 static int _dw_file_active = 0;
--- a/gtk3/dw.c	Mon Dec 07 20:01:03 2020 +0000
+++ b/gtk3/dw.c	Wed Dec 09 04:35:40 2020 +0000
@@ -176,10 +176,10 @@
 GObject *_DWObject = NULL;
 #if GLIB_CHECK_VERSION(2,28,0)
 GApplication *_DWApp = NULL;
+static char _dw_app_id[_DW_APP_ID_SIZE+1] = { 0 };
 #endif
 char *_DWDefaultFont = NULL;
 static char _dw_share_path[PATH_MAX+1] = { 0 };
-static char _dw_app_id[_DW_APP_ID_SIZE+1] = { 0 };
 
 typedef struct
 {