From 5eb285cf1ce430dc46392e2335350858d4de6023 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 17 Jun 2012 17:52:19 +0200 Subject: use more glib macros to improve portability --- .../gtk-experiment-transcript-private.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'lib/gtk-experiment-widgets/gtk-experiment-transcript-private.h') diff --git a/lib/gtk-experiment-widgets/gtk-experiment-transcript-private.h b/lib/gtk-experiment-widgets/gtk-experiment-transcript-private.h index 7d38c32..30fc3fc 100644 --- a/lib/gtk-experiment-widgets/gtk-experiment-transcript-private.h +++ b/lib/gtk-experiment-widgets/gtk-experiment-transcript-private.h @@ -102,17 +102,19 @@ typedef gboolean (*GtkExperimentTranscriptContribRenderer) * * @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 */ +G_GNUC_INTERNAL void gtk_experiment_transcript_text_layer_redraw(GtkExperimentTranscript *trans); /** @private */ +G_GNUC_INTERNAL void gtk_experiment_transcript_apply_format(GtkExperimentTranscriptFormat *fmt, const gchar *text, PangoAttrList *attrib_list); -- cgit v1.2.3