summaryrefslogtreecommitdiff
path: root/src/trg-cell-renderer-priority.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-02-18 00:49:08 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-02-18 00:49:08 +0000
commit8aacf43b3b4f21247a63b8301c952c6a8c98585e (patch)
treed2dc275b7d2672390ab9eeb1adffaf5953a4981d /src/trg-cell-renderer-priority.c
parentbfff941cb7fdb428de57971831e39e3cf660112b (diff)
adding trackers now seems to work. change all tabs to whitespace.
Diffstat (limited to 'src/trg-cell-renderer-priority.c')
-rw-r--r--src/trg-cell-renderer-priority.c68
1 files changed, 34 insertions, 34 deletions
diff --git a/src/trg-cell-renderer-priority.c b/src/trg-cell-renderer-priority.c
index 91ab812..77fe4f9 100644
--- a/src/trg-cell-renderer-priority.c
+++ b/src/trg-cell-renderer-priority.c
@@ -30,7 +30,7 @@ enum {
};
G_DEFINE_TYPE(TrgCellRendererPriority, trg_cell_renderer_priority,
- GTK_TYPE_CELL_RENDERER_TEXT)
+ GTK_TYPE_CELL_RENDERER_TEXT)
#define TRG_CELL_RENDERER_PRIORITY_GET_PRIVATE(o) \
(G_TYPE_INSTANCE_GET_PRIVATE ((o), TRG_TYPE_CELL_RENDERER_PRIORITY, TrgCellRendererPriorityPrivate))
typedef struct _TrgCellRendererPriorityPrivate
@@ -42,40 +42,40 @@ struct _TrgCellRendererPriorityPrivate {
static void
trg_cell_renderer_priority_get_property(GObject * object,
- guint property_id, GValue * value,
- GParamSpec * pspec)
+ guint property_id, GValue * value,
+ GParamSpec * pspec)
{
TrgCellRendererPriorityPrivate *priv =
- TRG_CELL_RENDERER_PRIORITY_GET_PRIVATE(object);
+ TRG_CELL_RENDERER_PRIORITY_GET_PRIVATE(object);
switch (property_id) {
case PROP_PRIORITY_VALUE:
- g_value_set_int64(value, priv->priority_value);
- break;
+ g_value_set_int64(value, priv->priority_value);
+ break;
default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
+ G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
}
}
static void
trg_cell_renderer_priority_set_property(GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec)
+ guint property_id,
+ const GValue * value,
+ GParamSpec * pspec)
{
TrgCellRendererPriorityPrivate *priv =
- TRG_CELL_RENDERER_PRIORITY_GET_PRIVATE(object);
+ TRG_CELL_RENDERER_PRIORITY_GET_PRIVATE(object);
if (property_id == PROP_PRIORITY_VALUE) {
- priv->priority_value = g_value_get_int64(value);
- if (priv->priority_value == T_PRIORITY_LOW) {
- g_object_set(object, "text", "Low", NULL);
- } else if (priv->priority_value == T_PRIORITY_HIGH) {
- g_object_set(object, "text", "High", NULL);
- } else {
- g_object_set(object, "text", "Normal", NULL);
- }
+ priv->priority_value = g_value_get_int64(value);
+ if (priv->priority_value == T_PRIORITY_LOW) {
+ g_object_set(object, "text", "Low", NULL);
+ } else if (priv->priority_value == T_PRIORITY_HIGH) {
+ g_object_set(object, "text", "High", NULL);
+ } else {
+ g_object_set(object, "text", "Normal", NULL);
+ }
} else {
- G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
+ G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
}
}
@@ -88,30 +88,30 @@ trg_cell_renderer_priority_class_init(TrgCellRendererPriorityClass * klass)
object_class->set_property = trg_cell_renderer_priority_set_property;
g_object_class_install_property(object_class,
- PROP_PRIORITY_VALUE,
- g_param_spec_int64
- ("priority-value",
- "Priority Value",
- "Priority Value", T_PRIORITY_LOW,
- T_PRIORITY_HIGH, T_PRIORITY_NORMAL,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_NAME |
- G_PARAM_STATIC_NICK |
- G_PARAM_STATIC_BLURB));
+ PROP_PRIORITY_VALUE,
+ g_param_spec_int64
+ ("priority-value",
+ "Priority Value",
+ "Priority Value", T_PRIORITY_LOW,
+ T_PRIORITY_HIGH, T_PRIORITY_NORMAL,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_NAME |
+ G_PARAM_STATIC_NICK |
+ G_PARAM_STATIC_BLURB));
g_type_class_add_private(klass,
- sizeof(TrgCellRendererPriorityPrivate));
+ sizeof(TrgCellRendererPriorityPrivate));
}
static void
trg_cell_renderer_priority_init(TrgCellRendererPriority *
- self G_GNUC_UNUSED)
+ self G_GNUC_UNUSED)
{
}
GtkCellRenderer *trg_cell_renderer_priority_new(void)
{
return
- GTK_CELL_RENDERER(g_object_new
- (TRG_TYPE_CELL_RENDERER_PRIORITY, NULL));
+ GTK_CELL_RENDERER(g_object_new
+ (TRG_TYPE_CELL_RENDERER_PRIORITY, NULL));
}