Esempio n. 1
0
 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 ();
         }
     }
 }
Esempio n. 2
0
		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 ();
		}
Esempio n. 3
0
 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;
     }
 }
Esempio n. 4
0
 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);
     }
 }
Esempio n. 6
0
 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;
		}
Esempio n. 8
0
			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 ();
				}
			}
Esempio n. 9
0
 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();
 }
Esempio n. 11
0
 private void gConfChanged(object sender, GConf.NotifyEventArgs args)
 {
     credentialsLoad ();
 }
Esempio n. 12
0
 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);
			}
Esempio n. 14
0
 public void OnGConfShowNotificationsChanged(object o, GConf.NotifyEventArgs args)
 {
     show_notifications = Driver.config.ShowNotifications;
 }
Esempio n. 15
0
        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);
			}
		}
Esempio n. 18
0
		static void OnAccountsSettingChanged (object sender, GConf.NotifyEventArgs args)
		{
			SetupAccountUrlToUidMap ();
		}