[network-manager-applet: 2/4] applet: move INDICATOR_ENABLED() macro to applet.h header
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet: 2/4] applet: move INDICATOR_ENABLED() macro to applet.h header
- Date: Fri, 14 Feb 2020 17:57:15 +0000 (UTC)
commit d039f28acf90e9a4a7c3b4971ae54d48b65e6578
Author: Thomas Haller <thaller redhat com>
Date: Fri Feb 14 18:33:11 2020 +0100
applet: move INDICATOR_ENABLED() macro to applet.h header
src/applet.c | 6 ------
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]