[gnome-games/wip/exalm/libhandy4: 10/19] preferences-page-controllers: Rename on_back() to on_back_clicked()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/libhandy4: 10/19] preferences-page-controllers: Rename on_back() to on_back_clicked()
- Date: Mon, 17 Sep 2018 17:59:21 +0000 (UTC)
commit 31b1c3970af4741f83bdfe015f459b7e00c526fb
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Mon Sep 17 22:42:38 2018 +0500
preferences-page-controllers: Rename on_back() to on_back_clicked()
The next commit will add another back button handler, so prevent the name
clash.
src/ui/preferences-page-controllers.vala | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/ui/preferences-page-controllers.vala b/src/ui/preferences-page-controllers.vala
index ffdc5474..656635c0 100644
--- a/src/ui/preferences-page-controllers.vala
+++ b/src/ui/preferences-page-controllers.vala
@@ -37,7 +37,7 @@ private class Games.PreferencesPageControllers: Gtk.Stack, PreferencesPage {
}
public void visible_page_changed () {
- on_back (null);
+ on_back_clicked (null);
}
private void rebuild_gamepad_list () {
@@ -82,7 +82,7 @@ private class Games.PreferencesPageControllers: Gtk.Stack, PreferencesPage {
return;
var configurer = new GamepadConfigurer (device);
- back_handler_id = configurer.back.connect (on_back);
+ back_handler_id = configurer.back.connect (on_back_clicked);
header_bar_binding = configurer.bind_property ("header-bar", this, "header-bar",
BindingFlags.SYNC_CREATE);
immersive_mode_binding = configurer.bind_property ("immersive-mode", this, "immersive-mode",
@@ -102,7 +102,7 @@ private class Games.PreferencesPageControllers: Gtk.Stack, PreferencesPage {
[GtkCallback]
private void keyboard_list_box_row_activated (Gtk.ListBoxRow row_item) {
var configurer = new KeyboardConfigurer ();
- back_handler_id = configurer.back.connect (on_back);
+ back_handler_id = configurer.back.connect (on_back_clicked);
header_bar_binding = configurer.bind_property ("header-bar", this, "header-bar",
BindingFlags.SYNC_CREATE);
immersive_mode_binding = configurer.bind_property ("immersive-mode", this, "immersive-mode",
@@ -111,7 +111,7 @@ private class Games.PreferencesPageControllers: Gtk.Stack, PreferencesPage {
visible_child_name = "extra_stack_child";
}
- private void on_back (Object? emitter) {
+ private void on_back_clicked (Object? emitter) {
header_bar_binding = null;
immersive_mode_binding = null;
if (back_handler_id != 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]