void OnGConfNotify (object sender, GConf.NotifyEventArgs args) { if (args.Key == GConfHelper.LOOK_FOR_LIBRARIES_KEY) { if ((bool)args.Value && !client_running) { StartClient (); } else if (!(bool)args.Value && client_running) { StopClient (); } } }
private void HighlightConfigChanged (object sender, GConf.NotifyEventArgs args) { TextTag tag; foreach (Style s in config.styles) { s.Read (); tag = TagTable.Lookup (s.path); if (tag != null) { tag.Foreground = s.color; //tag.Weight = Convert.ToInt32 (s.weight); } } Highlight (); }
void OnGConfNotify (object sender, GConf.NotifyEventArgs args) { switch (args.Key) { case GConfHelper.SHARED_CATEGORIES_KEY: case GConfHelper.SHARE_ALL_CATEGORIES_KEY: case GConfHelper.LIBRARY_NAME_KEY: Restart (); break; case GConfHelper.SHARE_LIBRARY_KEY: if ((bool)args.Value && !IsRunning) { Start (); } else if (!(bool)args.Value && IsRunning) { Stop (); } break; default: break; } }
static void OnSettingChanged(object sender, GConf.NotifyEventArgs args) { if (SettingChanged != null) { SettingChanged (sender, args); } }
private void OnThemesPathChangedEventHandler(object sender, GConf.NotifyEventArgs a) { string path = (string)config.GConfClient.Get(config.GConfPath+"themesDownloadPath"); if (Directory.Exists(path)) SettingsLocationFc.SetCurrentFolder(path); else { new CInfoWindow(Catalog.GetString("Error"),Catalog.GetString("The download location has been changed manually! "+ "Normally, this is no problem at all! But if you change "+ "the location to a place that doesn't exists then it will "+ "be a problem!\n\n So this is a \"Location couldn't be "+ "found\" message. Please correct the download location!"),Gtk.Stock.DialogError,true); } }
private void OnSettingChanged(object sender, GConf.NotifyEventArgs args) { if (args.Key != null && args.Key == ClientConfig.KEY_IFOLDER_DEBUG_PRINT_SIMIAS_EVENT_ERRORS) { printErrors = (bool)args.Value; Debug.PrintLine(String.Format("Print Simias Event Errors: {0}", printErrors)); } }
public EditorShell (Glade.XML gxml, GConf.ChangeSet cs) { this.gxml = gxml; this.cs = cs; }
void BindingChanged (object sender, GConf.NotifyEventArgs args) { if (args.Key == gconf_path) { Logger.Log.Debug ("Binding for '{0}' changed to '{1}'!", gconf_path, args.Value); UnsetBinding (); key_sequence = (string) args.Value; SetBinding (); } }
void OnSettingChanged(object sender, GConf.NotifyEventArgs args) { if (PreferenceChanged != null) PreferenceChanged (this, new PreferenceChangedEventArgs (args.Key, args.Value)); }
private void onSettingsChanged(object Sender, GConf.NotifyEventArgs args) { readSystemProxySettings(); }
private void gConfChanged(object sender, GConf.NotifyEventArgs args) { credentialsLoad (); }
public static void AddNotify(GConf.NotifyEventHandler notify) { client.AddNotify(KEY_BASE, notify); }
public void HandleNotify (object sender, GConf.NotifyEventArgs args) { if (!enabled) return; NotifyEventArgs newArgs = new NotifyEventArgs (args.Key, args.Value); notify (sender, newArgs); }
public void OnGConfShowNotificationsChanged(object o, GConf.NotifyEventArgs args) { show_notifications = Driver.config.ShowNotifications; }
private void SessionChanged(object obj, GConf.NotifyEventArgs args) { return; }
void OnPreferencesChanged (object sender, GConf.NotifyEventArgs args) { LoadPreference (args.Key); }
static void OnSettingChanged (object sender, GConf.NotifyEventArgs args) { if (cache.ContainsKey (args.Key)) { cache [args.Key] = args.Value; } if (SettingChanged != null) { SettingChanged (sender, args); } }
static void OnAccountsSettingChanged (object sender, GConf.NotifyEventArgs args) { SetupAccountUrlToUidMap (); }