Exemplo n.º 1
0
        public AddEventDialog(Gtk.Window wnd_main)
        {
            Glade.XML ui = Glade.XML.FromAssembly ("initial.glade", "dlg_add_event", "initial");
            ui.Autoconnect (this);

            ui = Glade.XML.FromAssembly ("initial.glade", "dlg_press_button", "initial");
            ui.Autoconnect (this);

            this.wnd_main = wnd_main;

            dlg_add_event.TransientFor   = wnd_main;
            dlg_add_event.WindowPosition = Gtk.WindowPosition.CenterOnParent;

            dlg_press_button.TransientFor      = wnd_main;
            dlg_press_button.WindowPosition    = Gtk.WindowPosition.CenterOnParent;
            dlg_press_button.DestroyWithParent = true;

            acmd  = new ActionCommand ();
            axkey = new ActionXKeysym ();
            asys  = new ActionSystem ();

            inputmanager = InputManager.New ();
            inputmanager.InputEvent += new InputEventHandler (EventReceived);
        }
Exemplo n.º 2
0
        void on_entry_application_path_val_changed(object o, EventArgs args)
        {
            ActionCommand ac = new ActionCommand (entry_application_path_val.Text,
                                                  entry_application_args_val.Text);

            ea.initial_action = ac;

            if (ac.isValid ()) {
                btn_save_action.Sensitive = true;
            } else {
                btn_save_action.Sensitive = false;
            }
        }