summaryrefslogtreecommitdiff
path: root/src/trg-cell-renderer-counter.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-25 11:59:32 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-25 11:59:32 +0000
commit5563da141e1fd0474f1eeedb967209c55227abae (patch)
tree79edb6566aecd22050117f9728b17e40156fd093 /src/trg-cell-renderer-counter.c
parent4d57ef2197461c450aaaf79cdbb31b256ae0e81e (diff)
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).
Diffstat (limited to 'src/trg-cell-renderer-counter.c')
-rw-r--r--src/trg-cell-renderer-counter.c13
1 files changed, 7 insertions, 6 deletions
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