diff options
author | Thomas Haller <thaller@redhat.com> | 2020-02-14 18:33:11 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-02-14 18:33:20 +0100 |
commit | d039f28acf90e9a4a7c3b4971ae54d48b65e6578 (patch) | |
tree | 3471d0b3a607bad4935342c898cb431001f2ac40 | |
parent | 1e88c5509d371640802513ff6921276c7456435c (diff) | |
download | network-manager-applet-d039f28acf90e9a4a7c3b4971ae54d48b65e6578.tar.gz |
applet: move INDICATOR_ENABLED() macro to applet.h header
-rw-r--r-- | src/applet.c | 6 | ||||
-rw-r--r-- | src/applet.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/applet.c b/src/applet.c index 7f0883e6..88f4c9d1 100644 --- a/src/applet.c +++ b/src/applet.c @@ -42,12 +42,6 @@ extern gboolean shell_debug; extern gboolean with_agent; extern gboolean with_appindicator; -#ifdef WITH_APPINDICATOR -#define INDICATOR_ENABLED(a) ((a)->app_indicator) -#else -#define INDICATOR_ENABLED(a) (FALSE) -#endif /* WITH_APPINDICATOR */ - G_DEFINE_TYPE (NMApplet, nma, G_TYPE_APPLICATION) /********************************************************************/ diff --git a/src/applet.h b/src/applet.h index 7a0cb8ff..ebc775a5 100644 --- a/src/applet.h +++ b/src/applet.h @@ -40,6 +40,12 @@ #define NM_IS_APPLET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_APPLET)) #define NM_APPLET_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), NM_TYPE_APPLET, NMAppletClass)) +#ifdef WITH_APPINDICATOR +#define INDICATOR_ENABLED(a) ((a)->app_indicator) +#else +#define INDICATOR_ENABLED(a) (FALSE) +#endif /* WITH_APPINDICATOR */ + typedef struct { GApplicationClass parent_class; } NMAppletClass; |