From 5563da141e1fd0474f1eeedb967209c55227abae Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Wed, 25 Jan 2012 11:59:32 +0000 Subject: issue 175. make some (incomplete) changes as per the GTK+ best practices document - mainly using a pointer in the public class to access the private object (on a few important classes for now) for performance, and don't use C99 (C99 comments or mixed declarations/statements). --- src/trg-cell-renderer-counter.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/trg-cell-renderer-counter.c') diff --git a/src/trg-cell-renderer-counter.c b/src/trg-cell-renderer-counter.c index 13867ab..900753c 100644 --- a/src/trg-cell-renderer-counter.c +++ b/src/trg-cell-renderer-counter.c @@ -72,10 +72,11 @@ static void trg_cell_renderer_counter_refresh(TrgCellRendererCounter * cr) } } -static void trg_cell_renderer_counter_set_property(GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) +static void +trg_cell_renderer_counter_set_property(GObject * object, + guint property_id, + const GValue * value, + GParamSpec * pspec) { TrgCellRendererCounterPrivate *priv = TRG_CELL_RENDERER_COUNTER_GET_PRIVATE(object); @@ -102,8 +103,8 @@ static void trg_cell_renderer_counter_dispose(GObject * object) TrgCellRendererCounterPrivate *priv = TRG_CELL_RENDERER_COUNTER_GET_PRIVATE(object); g_free(priv->originalLabel); - G_OBJECT_CLASS(trg_cell_renderer_counter_parent_class)->dispose - (object); + G_OBJECT_CLASS(trg_cell_renderer_counter_parent_class)-> + dispose(object); } static void -- cgit v1.2.3