summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArun Raghavan <arun@asymptotic.io>2024-04-15 17:05:57 -0400
committerArun Raghavan <arun@asymptotic.io>2024-04-15 17:07:22 -0400
commit1fa1b86ca78670d7a8639e117106e04e226dfde1 (patch)
tree4adf5bfc2cddba396dd1b0854132bbbf6170ae11 /src
parenta8927981778569e17e92f63544798e9ed02f173f (diff)
devicewidget: Minor function rename for legibility
Diffstat (limited to 'src')
-rw-r--r--src/devicewidget.cc6
-rw-r--r--src/devicewidget.h2
2 files changed, 3 insertions, 5 deletions
diff --git a/src/devicewidget.cc b/src/devicewidget.cc
index d03450f..b9b3b3c 100644
--- a/src/devicewidget.cc
+++ b/src/devicewidget.cc
@@ -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();
diff --git a/src/devicewidget.h b/src/devicewidget.h
index bd6f317..4fceda2 100644
--- a/src/devicewidget.h
+++ b/src/devicewidget.h
@@ -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