[regexxer/murrayc-update: 12/12] Replace use of (deprecated) Gtk::Application::add_accelerator().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [regexxer/murrayc-update: 12/12] Replace use of (deprecated) Gtk::Application::add_accelerator().
- Date: Tue, 1 Mar 2016 08:29:12 +0000 (UTC)
commit 49f0f1b683d8f62f6b927f761732413fe7e17934
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Mar 1 09:23:57 2016 +0100
Replace use of (deprecated) Gtk::Application::add_accelerator().
With set_accel_for_action().
src/mainwindow.cc | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index ebe1f63..b9705d5 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -430,8 +430,8 @@ void MainWindow::init_actions()
match_action_group_->insert(action);
action_to_group_[match_actions[i].name] = match_action_group_;
if (match_actions[i].accelerator)
- application_->set_accel_for_action(match_actions[i].accelerator,
- Glib::ustring("match.") + match_actions[i].name);
+ application_->set_accel_for_action(Glib::ustring("match.") + match_actions[i].name,
+ match_actions[i].accelerator);
}
static struct actions edit_actions[] =
@@ -451,8 +451,8 @@ void MainWindow::init_actions()
edit_action_group_->insert(action);
action_to_group_[edit_actions[i].name] = edit_action_group_;
if (edit_actions[i].accelerator)
- application_->set_accel_for_action(edit_actions[i].accelerator,
- Glib::ustring("edit.") + edit_actions[i].name);
+ application_->set_accel_for_action(Glib::ustring("edit.") + edit_actions[i].name,
+ edit_actions[i].accelerator);
}
static struct actions save_actions[] =
@@ -470,8 +470,8 @@ void MainWindow::init_actions()
save_action_group_->insert(action);
action_to_group_[save_actions[i].name] = save_action_group_;
if (save_actions[i].accelerator)
- application_->set_accel_for_action(save_actions[i].accelerator,
- Glib::ustring("save.") + save_actions[i].name);
+ application_->set_accel_for_action(Glib::ustring("save.") + save_actions[i].name,
+ save_actions[i].accelerator);
}
window_->insert_action_group("match", match_action_group_);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]