[libdazzle] actiongroup: use static inline for helper functions
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] actiongroup: use static inline for helper functions
- Date: Thu, 12 Oct 2017 22:16:53 +0000 (UTC)
commit 14b8494614a65262b0b5940ade30d176cf7963d4
Author: Christian Hergert <chergert redhat com>
Date: Thu Oct 12 15:16:42 2017 -0700
actiongroup: use static inline for helper functions
These may not be used, so to avoid any sort of warning from unused
functions, just make them static inline.
src/actions/dzl-action-group.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/actions/dzl-action-group.h b/src/actions/dzl-action-group.h
index 6dd62a9..1cd45ab 100644
--- a/src/actions/dzl-action-group.h
+++ b/src/actions/dzl-action-group.h
@@ -87,7 +87,7 @@ _##prefix##_get_action_info (GActionGroup *group,
return info; \
} \
\
-static void \
+static inline void \
prefix##_set_action_state (Type *self, \
const gchar *name, \
GVariant *state) \
@@ -102,7 +102,7 @@ prefix##_set_action_state (Type *self,
} \
} \
\
-static void \
+static inline void \
prefix##_set_action_enabled (Type *self, \
const gchar *name, \
gboolean enabled) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]