devicewidget: Minor function rename for legibility
This commit is contained in:
parent
a892798177
commit
1fa1b86ca7
|
@ -281,14 +281,12 @@ RenameWindow::RenameWindow(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Buil
|
|||
|
||||
auto renameAction = Gio::SimpleAction::create("rename");
|
||||
renameAction->set_enabled(true);
|
||||
renameAction->signal_activate().connect(sigc::mem_fun(*this, &RenameWindow::renamePopup));
|
||||
renameAction->signal_activate().connect(sigc::mem_fun(*this, &RenameWindow::doRename));
|
||||
|
||||
add_action(renameAction);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void RenameWindow::renamePopup(const Glib::VariantBase& parameter){
|
||||
void RenameWindow::doRename(const Glib::VariantBase& parameter) {
|
||||
pa_operation* o;
|
||||
auto name = renameText->get_text();
|
||||
|
||||
|
|
|
@ -119,7 +119,7 @@ public:
|
|||
Gtk::Entry* renameText;
|
||||
const gchar* deviceKey;
|
||||
private:
|
||||
void renamePopup(const Glib::VariantBase& parameter);
|
||||
void doRename(const Glib::VariantBase& parameter);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue