summaryrefslogtreecommitdiff
path: root/src/trg-preferences-dialog.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-13 20:18:22 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-13 20:18:22 +0000
commit53ca28eb754d1a94a0220810f9a2bd37598ef18b (patch)
tree3c347822e3d70b9d0e070e7c27aa1b333be1ba66 /src/trg-preferences-dialog.c
parentfad64fe594bf7b5c13a09f343392e5552c7a4d81 (diff)
more windows portability
Diffstat (limited to 'src/trg-preferences-dialog.c')
-rw-r--r--src/trg-preferences-dialog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/trg-preferences-dialog.c b/src/trg-preferences-dialog.c
index ab80101..3d514ff 100644
--- a/src/trg-preferences-dialog.c
+++ b/src/trg-preferences-dialog.c
@@ -381,6 +381,7 @@ static GtkWidget *trg_prefs_desktopPage(TrgPreferencesDialog *dlg) {
G_CALLBACK(toggle_active_arg_is_sensitive), w);
hig_workarea_add_wide_control(t, &row, w);
+#ifdef HAVE_LIBNOTIFY
w = trgp_check_new(dlg, _("Torrent added notifications"),
TRG_PREFS_KEY_ADD_NOTIFY, TRG_PREFS_GLOBAL, NULL);
gtk_widget_set_sensitive(w, gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON
@@ -396,6 +397,7 @@ static GtkWidget *trg_prefs_desktopPage(TrgPreferencesDialog *dlg) {
g_signal_connect(G_OBJECT(tray), "toggled",
G_CALLBACK(toggle_active_arg_is_sensitive), w);
hig_workarea_add_wide_control(t, &row, w);
+#endif
return t;
}
@@ -629,9 +631,11 @@ static GtkWidget *trg_prefs_serverPage(TrgPreferencesDialog *dlg) {
TRG_PREFS_KEY_AUTO_CONNECT, TRG_PREFS_PROFILE, NULL);
hig_workarea_add_wide_control(t, &row, w);
+#ifndef CURL_NO_SSL
w = trgp_check_new(dlg, _("SSL"), TRG_PREFS_KEY_SSL, TRG_PREFS_PROFILE,
NULL);
hig_workarea_add_wide_control(t, &row, w);
+#endif
activeOnly = w = trgp_check_new(dlg, _("Update active torrents only"),
TRG_PREFS_KEY_UPDATE_ACTIVE_ONLY, TRG_PREFS_PROFILE, NULL);