[iagno/arnaudb/wip/gtk4: 49/54] Upate a method.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno/arnaudb/wip/gtk4: 49/54] Upate a method.
- Date: Thu, 30 Apr 2020 13:21:33 +0000 (UTC)
commit 3e4690d1f4aecb434eea795f40e44bae3fe3d6d5
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sun Apr 26 14:04:36 2020 +0200
Upate a method.
src/base-window.vala | 22 +++++++---------------
1 file changed, 7 insertions(+), 15 deletions(-)
---
diff --git a/src/base-window.vala b/src/base-window.vala
index 581ffdc..2da50f8 100644
--- a/src/base-window.vala
+++ b/src/base-window.vala
@@ -335,7 +335,10 @@ private class BaseWindow : AdaptativeWindow, AdaptativeWidget
if ((state & Gdk.ModifierType.CONTROL_MASK) != 0)
return false; // help overlay
if ((state & Gdk.ModifierType.SHIFT_MASK) == 0)
- return show_application_help (this, help_string_or_empty); // fallback on help overlay
(TODO test)
+ {
+ show_application_help (this, help_string_or_empty); // fallback on help overlay (TODO test)
+ return true;
+ }
about ();
return true;
}
@@ -354,23 +357,12 @@ private class BaseWindow : AdaptativeWindow, AdaptativeWidget
show_application_help (this, help_string_or_empty);
}
- private static inline bool show_application_help (BaseWindow _this, string help_string_or_empty)
+ private static inline void show_application_help (BaseWindow _this, string help_string_or_empty)
{
if (help_string_or_empty == "")
- return false;
+ return;
- bool success;
- try
- {
- show_uri_on_window (_this, help_string_or_empty, get_current_event_time ());
- success = true;
- }
- catch (Error e)
- {
- warning ("Failed to show help: %s", e.message);
- success = false;
- }
- return success;
+ show_uri (_this, help_string_or_empty, Gdk.CURRENT_TIME);
}
/*\
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]