summaryrefslogtreecommitdiff
path: root/src/trg-cell-renderer-priority.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-12-21 22:13:28 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-12-21 22:13:28 +0000
commit8fcd8ab2fae7858c802cddeebb03dc1197e625a1 (patch)
tree9697c45dca952799fffe2b7fe55fd1e8fe7212fc /src/trg-cell-renderer-priority.c
parent1db7752cc705eea685f4eeccb243da571afbf466 (diff)
fix memory leak on new fileicon cell renderer
Diffstat (limited to 'src/trg-cell-renderer-priority.c')
-rw-r--r--src/trg-cell-renderer-priority.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/trg-cell-renderer-priority.c b/src/trg-cell-renderer-priority.c
index 00e66f5..9d1f7ad 100644
--- a/src/trg-cell-renderer-priority.c
+++ b/src/trg-cell-renderer-priority.c
@@ -76,6 +76,8 @@ trg_cell_renderer_priority_set_property(GObject * object,
g_object_set(object, "text", _("High"), NULL);
} else if (priv->priority_value == TR_PRI_NORMAL){
g_object_set(object, "text", _("Normal"), NULL);
+ } else if (priv->priority_value == TR_PRI_MIXED){
+ g_object_set(object, "text", _("Mixed"), NULL);
} else {
g_object_set(object, "text", "", NULL);
}
@@ -97,7 +99,7 @@ trg_cell_renderer_priority_class_init(TrgCellRendererPriorityClass * klass)
g_param_spec_int
("priority-value",
"Priority Value",
- "Priority Value", -2,
+ "Priority Value", TR_PRI_UNSET,
TR_PRI_HIGH, TR_PRI_NORMAL,
G_PARAM_READWRITE |
G_PARAM_STATIC_NAME |