[geary/mjog/responsive-layout-fixes: 23/23] client: Consistently use Gtk.Widget.error_bell, not Gdk.Window.beep
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/responsive-layout-fixes: 23/23] client: Consistently use Gtk.Widget.error_bell, not Gdk.Window.beep
- Date: Wed, 14 Apr 2021 09:08:47 +0000 (UTC)
commit 791b747fbd1d08a4dddce1d6d21287f4532d6415
Author: Michael Gratton <mike vee net>
Date: Wed Apr 14 19:05:36 2021 +1000
client: Consistently use Gtk.Widget.error_bell, not Gdk.Window.beep
The former takes into account GTK settings, the latter doesn't.
src/client/application/application-main-window.vala | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/client/application/application-main-window.vala
b/src/client/application/application-main-window.vala
index ff87acd56..46f0d929d 100644
--- a/src/client/application/application-main-window.vala
+++ b/src/client/application/application-main-window.vala
@@ -555,7 +555,7 @@ public class Application.MainWindow :
activate_action(get_window_action(ACTION_CONVERSATION_DOWN));
break;
default:
- this.get_window().beep();
+ error_bell();
break;
}
}
@@ -1983,7 +1983,7 @@ public class Application.MainWindow :
if (focus != null) {
focus.focus(TAB_FORWARD);
} else {
- get_window().beep();
+ error_bell();
}
}
@@ -2023,7 +2023,7 @@ public class Application.MainWindow :
if (focus != null) {
focus.focus(TAB_FORWARD);
} else {
- get_window().beep();
+ error_bell();
}
}
@@ -2040,7 +2040,7 @@ public class Application.MainWindow :
if (action != null && action.get_enabled()) {
action.activate(null);
} else {
- get_window().beep();
+ error_bell();
}
}
@@ -2423,7 +2423,7 @@ public class Application.MainWindow :
} else if (this.is_conversation_viewer_shown) {
this.main_toolbar.shown_actions.show_copy_menu();
} else {
- this.error_bell();
+ error_bell();
}
}
@@ -2434,7 +2434,7 @@ public class Application.MainWindow :
} else if (this.is_conversation_viewer_shown) {
this.main_toolbar.shown_actions.show_move_menu();
} else {
- this.error_bell();
+ error_bell();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]