aboutsummaryrefslogtreecommitdiff
path: root/lib/gtk-experiment-widgets/gtk-experiment-navigator.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-06-17 17:52:19 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-06-17 17:52:19 +0200
commit5eb285cf1ce430dc46392e2335350858d4de6023 (patch)
tree86f24ac710172d956b6d5da8c3a19f2bfe451e54 /lib/gtk-experiment-widgets/gtk-experiment-navigator.c
parent6751167f52d9056d6ac9770323658f4904db3afd (diff)
downloadexperiment-player-5eb285cf1ce430dc46392e2335350858d4de6023.tar.gz
use more glib macros to improve portability
Diffstat (limited to 'lib/gtk-experiment-widgets/gtk-experiment-navigator.c')
-rw-r--r--lib/gtk-experiment-widgets/gtk-experiment-navigator.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/gtk-experiment-widgets/gtk-experiment-navigator.c b/lib/gtk-experiment-widgets/gtk-experiment-navigator.c
index 206384a..8f88414 100644
--- a/lib/gtk-experiment-widgets/gtk-experiment-navigator.c
+++ b/lib/gtk-experiment-widgets/gtk-experiment-navigator.c
@@ -63,12 +63,12 @@ static inline void activate_section(GtkExperimentNavigator *navi,
*
* @param VAR Variable to unreference
*/
-#define GOBJECT_UNREF_SAFE(VAR) do { \
- if ((VAR) != NULL) { \
- g_object_unref(VAR); \
- VAR = NULL; \
- } \
-} while (0)
+#define GOBJECT_UNREF_SAFE(VAR) G_STMT_START { \
+ if ((VAR) != NULL) { \
+ g_object_unref(VAR); \
+ VAR = NULL; \
+ } \
+} G_STMT_END
/** @private */
#define GTK_EXPERIMENT_NAVIGATOR_GET_PRIVATE(obj) \