rendered paste body[anarchy - ~] diff -urN blam-1.8.3/src/PreferencesDialog.cs blam-1.8.4pre2/src/PreferencesDialog.cs
--- blam-1.8.3/src/PreferencesDialog.cs 2006-11-16 18:06:40.000000000 -0600
+++ blam-1.8.4pre2/src/PreferencesDialog.cs 2006-12-02 05:29:23.000000000 -0600
@@ -12,25 +12,27 @@
using System.Collections;
namespace Imendio.Blam {
- public class Preference {
- public static string REVERSE_ENTRIES = "behaviour/reverse_entries";
- public static string AUTO_REFRESH = "behaviour/auto_refresh";
- public static string AUTO_REFRESH_RATE = "behaviour/auto_refresh_rate";
- public static string BEHAVIOUR_PATH = Conf.GetFullKey("behaviour");
- public static string FONT_PATH = "/desktop/gnome/interface";
- public static string VARIABLE_FONT = "/desktop/gnome/interface/font_name";
- public static string FIXED_FONT = "/desktop/gnome/interface/monospace_font_name";
- public static string THEME = "ui/theme";
- }
-
- public class PreferencesDialog {
- [Widget] Gtk.Dialog preferencesDialog = null;
- [Widget] Gtk.Label boldBehaviourLabel = null;
- [Widget] Gtk.CheckButton reverseEntriesCheckButton = null;
- [Widget] Gtk.CheckButton autoRefreshCheckButton = null;
- [Widget] Gtk.SpinButton refreshRateSpinButton = null;
- [Widget] Gtk.Label boldThemeLabel = null;
- [Widget] Gtk.ComboBox themeComboBox = null;
+ public class Preference {
+ public static string REVERSE_ENTRIES = "behaviour/reverse_entries";
+ public static string AUTO_REFRESH = "behaviour/auto_refresh";
+ public static string AUTO_REFRESH_RATE = "behaviour/auto_refresh_rate";
+ public static string IGNORE_SSL_ERR = "behaviour/ignore_ssl_err";
+ public static string BEHAVIOUR_PATH = Conf.GetFullKey("behaviour");
+ public static string FONT_PATH = "/desktop/gnome/interface";
+ public static string VARIABLE_FONT = "/desktop/gnome/interface/font_name";
+ public static string FIXED_FONT = "/desktop/gnome/interface/monospace_font_name";
+ public static string THEME = "ui/theme";
+ }
+
+ public class PreferencesDialog {
+ [Widget] Gtk.Dialog preferencesDialog = null;
+ [Widget] Gtk.Label boldBehaviourLabel = null;
+ [Widget] Gtk.CheckButton reverseEntriesCheckButton = null;
+ [Widget] Gtk.CheckButton autoRefreshCheckButton = null;
+ [Widget]Â Gtk.CheckButton ignoreSSLErr = null;
+ [Widget] Gtk.SpinButton refreshRateSpinButton = null;
+ [Widget] Gtk.Label boldThemeLabel = null;
+ [Widget] Gtk.ComboBox themeComboBox = null;
public PreferencesDialog (Gtk.Window parentWindow)
{
@@ -86,6 +88,12 @@
Conf.Set (Preference.AUTO_REFRESH_RATE,
(int) refreshRateSpinButton.Value);
}
+
+ public void IgnoreSSLErrToggled (object obj, EventArgs args)
+ {
+ Conf.Set (Preference.IGNORE_SSL_ERR,
+ (bool) ignoreSSLErr.Active);
+ }
public void ThemeSelectionChanged (object obj, EventArgs args)
{
@@ -101,6 +109,8 @@
autoRefreshCheckButton.Active = (bool) args.Value;
} else if (args.Key == Conf.GetFullKey (Preference.AUTO_REFRESH_RATE)) {
refreshRateSpinButton.Value = (int) args.Value;
+ } else if (args.Key == Conf.GetFullKey (Preference.IGNORE_SSL_ERR)) {
+ ignoreSSLErr.Active = (bool) args.Value;
}
}