protected void OnPreferencesActionActivated(object sender, EventArgs e)
    {
        Preferences pref = new Preferences(settings, registry);

        pref.Icon         = programIcon;
        pref.TransientFor = this;
        if ((ResponseType)pref.Run() == ResponseType.Close)
        {
            OnRefreshActionActivated(pref, new EventArgs());
        }
        pref.Destroy();
    }
    protected virtual void OnPreferences(object sender, System.EventArgs e)
    {
        Preferences prefs = new Preferences();

        prefs.Timeout = timeout_ms;
        int res = prefs.Run();

        if (res == (int)ResponseType.Ok)
        {
            timeout_ms = prefs.Timeout;
            if (timeout_active)
            {
                GLib.Source.Remove(timeout_id);
                timeout_id = GLib.Timeout.Add(timeout_ms, OnTimeout);
            }
        }
        prefs.Destroy();
    }
Example #3
0
    protected virtual void OnPreferences(object sender, System.EventArgs e)
    {
        Preferences prefs = new Preferences ();
        prefs.Timeout = timeout_ms;
        int res = prefs.Run ();

        if (res == (int)ResponseType.Ok) {
            timeout_ms = prefs.Timeout;
            if (timeout_active) {
                GLib.Source.Remove (timeout_id);
                timeout_id = GLib.Timeout.Add (timeout_ms, OnTimeout);
            }
        }
        prefs.Destroy ();
    }
 protected void OnPreferencesActionActivated(object sender, EventArgs e)
 {
     Preferences pref = new Preferences(settings,registry);
     pref.Icon = programIcon;
     pref.TransientFor = this;
     if ((ResponseType)pref.Run() == ResponseType.Close)
     {
         OnRefreshActionActivated(pref, new EventArgs());
     }
     pref.Destroy();
 }