tim mayberry's patches to fix middle-click pastingina couple of dialogs
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 16 May 2007 02:40:55 +0000 (02:40 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 16 May 2007 02:40:55 +0000 (02:40 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1850 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/new_session_dialog.cc
gtk2_ardour/new_session_dialog.h

index 13d8123836383eb2b4bc863fb1e98386c113f3b7..f024680c1e40c2663830801aecc248e4e07f3f22 100644 (file)
@@ -427,7 +427,7 @@ NewSessionDialog::NewSessionDialog()
        m_limit_output_ports->signal_clicked().connect (mem_fun (*this, &NewSessionDialog::limit_outputs_clicked));
        m_create_master_bus->signal_clicked().connect (mem_fun (*this, &NewSessionDialog::master_bus_button_clicked));
        m_create_control_bus->signal_clicked().connect (mem_fun (*this, &NewSessionDialog::monitor_bus_button_clicked));
-       m_name->signal_key_release_event().connect(mem_fun (*this, &NewSessionDialog::entry_key_release));
+       m_name->signal_changed().connect(mem_fun (*this, &NewSessionDialog::on_new_session_name_entry_changed));
        m_notebook->signal_switch_page().connect (mem_fun (*this, &NewSessionDialog::notebook_page_changed));
        m_treeview->get_selection()->signal_changed().connect (mem_fun (*this, &NewSessionDialog::treeview_selection_changed));
        m_treeview->signal_row_activated().connect (mem_fun (*this, &NewSessionDialog::recent_row_activated));
@@ -591,8 +591,8 @@ NewSessionDialog::reset_name()
        
 }
 
-bool
-NewSessionDialog::entry_key_release (GdkEventKey* ev)
+void
+NewSessionDialog::on_new_session_name_entry_changed ()
 {
        if (m_name->get_text() != "") {
                set_response_sensitive (Gtk::RESPONSE_OK, true);
@@ -600,7 +600,6 @@ NewSessionDialog::entry_key_release (GdkEventKey* ev)
        } else {
                set_response_sensitive (Gtk::RESPONSE_OK, false);
        }
-       return true;
 }
 
 void
index c22af7561cd6035dfd3102e525e752a6fafd9b3a..8d1ae7735841a5750f71b3bf34cfca176f0934f3 100644 (file)
@@ -179,7 +179,7 @@ protected:
                    return cmp_nocase(a.first, b.first) == -1;
            }
        };
-       bool entry_key_release (GdkEventKey*);
+       void on_new_session_name_entry_changed();
        void notebook_page_changed (GtkNotebookPage*, uint);
        void treeview_selection_changed ();
        void file_chosen ();