diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-04-08 14:24:25 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-04-08 14:24:25 +0000 |
commit | 070688006ac7cea1639f38c0bb270c191f7dc38f (patch) | |
tree | 258fbf88a6f28a86bef83553e2430e950d972793 /src/trg-preferences-dialog.c | |
parent | f74c398577f66488cf5c420f5df318ab801117cc (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-preferences-dialog.c')
-rw-r--r-- | src/trg-preferences-dialog.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/trg-preferences-dialog.c b/src/trg-preferences-dialog.c index c20c2cf..fb71881 100644 --- a/src/trg-preferences-dialog.c +++ b/src/trg-preferences-dialog.c @@ -305,6 +305,26 @@ static GtkWidget *trg_prefs_desktopPage(GConfClient * gconf, return t; } +static GtkWidget *trg_prefs_behaviorPage(GConfClient *gconf) +{ + GtkWidget *w, *t; + gint row = 0; + + t = hig_workarea_create(); + + hig_workarea_add_section_title(t, &row, _("Torrents")); + + w = new_check_button(gconf, _("Start paused"), + TRG_GCONF_KEY_START_PAUSED); + hig_workarea_add_wide_control(t, &row, w); + + w = new_check_button(gconf, _("Options dialog on add"), + TRG_GCONF_KEY_ADD_OPTIONS_DIALOG); + hig_workarea_add_wide_control(t, &row, w); + + return t; +} + static GtkWidget *trg_prefs_serverPage(GConfClient * gconf, trg_client * client) { @@ -386,6 +406,10 @@ static GObject *trg_preferences_dialog_constructor(GType type, trg_prefs_desktopPage(priv->gconf, priv->win), gtk_label_new(_("Desktop"))); + gtk_notebook_append_page(GTK_NOTEBOOK(notebook), + trg_prefs_behaviorPage(priv->gconf), + gtk_label_new(_("Behavior"))); + gtk_container_set_border_width(GTK_CONTAINER(notebook), GUI_PAD); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(object)->vbox), notebook, |