devicewidget: Minor function rename for legibility

This commit is contained in:
Arun Raghavan 2024-04-15 17:05:57 -04:00
parent a892798177
commit 1fa1b86ca7
2 changed files with 3 additions and 5 deletions

View File

@ -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();

View File

@ -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