[gnome-games] application-window: Add show_error()



commit c8087ba00bf1b458171073cca40888e0bcedd12e
Author: Yetizone <andreii lisita gmail com>
Date:   Mon Feb 18 17:21:29 2019 +0200

    application-window: Add show_error()

 src/ui/application-window.vala | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/ui/application-window.vala b/src/ui/application-window.vala
index c8e9b414..da427886 100644
--- a/src/ui/application-window.vala
+++ b/src/ui/application-window.vala
@@ -171,6 +171,10 @@ private class Games.ApplicationWindow : Gtk.ApplicationWindow {
                set_help_overlay (new ShortcutsWindow ());
        }
 
+       public void show_error (string error_message) {
+               collection_box.reveal_error_info_bar (error_message);
+       }
+
        public void run_game (Game game) {
                // If there is a game already running we have to quit it first
                if (display_box.runner != null && !quit_game())


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]