summaryrefslogtreecommitdiff
path: root/src/trg-cell-renderer-priority.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-08 14:24:25 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-08 14:24:25 +0000
commit070688006ac7cea1639f38c0bb270c191f7dc38f (patch)
tree258fbf88a6f28a86bef83553e2430e950d972793 /src/trg-cell-renderer-priority.c
parentf74c398577f66488cf5c420f5df318ab801117cc (diff)
a torrent add dialog based off Transmission GTK (different bencode+action implementation) which allows you to set file priorities, torrent priority, directory in advance. probably needs a little more work.
Diffstat (limited to 'src/trg-cell-renderer-priority.c')
-rw-r--r--src/trg-cell-renderer-priority.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/trg-cell-renderer-priority.c b/src/trg-cell-renderer-priority.c
index eb16580..14d4763 100644
--- a/src/trg-cell-renderer-priority.c
+++ b/src/trg-cell-renderer-priority.c
@@ -22,6 +22,7 @@
#include <gtk/gtk.h>
#include "trg-cell-renderer-priority.h"
+#include "protocol-constants.h"
#include "trg-files-model.h"
#include "util.h"
@@ -68,9 +69,9 @@ trg_cell_renderer_priority_set_property(GObject * object,
if (property_id == PROP_PRIORITY_VALUE) {
priv->priority_value = g_value_get_int64(value);
- if (priv->priority_value == T_PRIORITY_LOW) {
+ if (priv->priority_value == TR_PRI_LOW) {
g_object_set(object, "text", _("Low"), NULL);
- } else if (priv->priority_value == T_PRIORITY_HIGH) {
+ } else if (priv->priority_value == TR_PRI_HIGH) {
g_object_set(object, "text", _("High"), NULL);
} else {
g_object_set(object, "text", _("Normal"), NULL);
@@ -93,8 +94,8 @@ trg_cell_renderer_priority_class_init(TrgCellRendererPriorityClass * klass)
g_param_spec_int64
("priority-value",
"Priority Value",
- "Priority Value", T_PRIORITY_LOW,
- T_PRIORITY_HIGH, T_PRIORITY_NORMAL,
+ "Priority Value", TR_PRI_LOW,
+ TR_PRI_HIGH, TR_PRI_NORMAL,
G_PARAM_READWRITE |
G_PARAM_STATIC_NAME |
G_PARAM_STATIC_NICK |