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");
|
auto renameAction = Gio::SimpleAction::create("rename");
|
||||||
renameAction->set_enabled(true);
|
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);
|
add_action(renameAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RenameWindow::doRename(const Glib::VariantBase& parameter) {
|
||||||
|
|
||||||
void RenameWindow::renamePopup(const Glib::VariantBase& parameter){
|
|
||||||
pa_operation* o;
|
pa_operation* o;
|
||||||
auto name = renameText->get_text();
|
auto name = renameText->get_text();
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@ public:
|
||||||
Gtk::Entry* renameText;
|
Gtk::Entry* renameText;
|
||||||
const gchar* deviceKey;
|
const gchar* deviceKey;
|
||||||
private:
|
private:
|
||||||
void renamePopup(const Glib::VariantBase& parameter);
|
void doRename(const Glib::VariantBase& parameter);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue