[gegl] bin: avoid duplication of symbol global_state



commit 40da695eaabc8f93fc11ead9f488d9f81a974e2b
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri Jun 12 19:25:50 2020 +0200

    bin: avoid duplication of symbol global_state

 bin/ui-core.c | 1 +
 bin/ui.h      | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/bin/ui-core.c b/bin/ui-core.c
index 52435e9c5..16dec03af 100644
--- a/bin/ui-core.c
+++ b/bin/ui-core.c
@@ -118,6 +118,7 @@ const char *css =
 #include "argvs.h"
 
 #include "ui.h"
+GeState *global_state;
 
 G_DEFINE_TYPE (GeState, ge_state, G_TYPE_OBJECT)
 
diff --git a/bin/ui.h b/bin/ui.h
index 6759c2de3..889ede830 100644
--- a/bin/ui.h
+++ b/bin/ui.h
@@ -309,7 +309,7 @@ int   get_item_no      (GeState *o);  /* current no */
 char *get_item_path    (GeState *o);  /* currently selected path */
 char *get_item_path_no (GeState *o, int child_no);
 
-GeState *global_state;
+extern GeState *global_state;
 
 void populate_path_list (GeState *o);
 void set_clip_position (GeState *o, double position);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]