aboutsummaryrefslogtreecommitdiff
path: root/lib/gtk-experiment-widgets/gtk-experiment-transcript-private.h
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-transcript-private.h
parent6751167f52d9056d6ac9770323658f4904db3afd (diff)
downloadgtk-vlc-player-5eb285cf1ce430dc46392e2335350858d4de6023.tar.gz
use more glib macros to improve portability
Diffstat (limited to 'lib/gtk-experiment-widgets/gtk-experiment-transcript-private.h')
-rw-r--r--lib/gtk-experiment-widgets/gtk-experiment-transcript-private.h14
1 files changed, 8 insertions, 6 deletions
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);