[dconf] editor: make failure to load GtkBuilder abort



commit 1e77cd9e0e0d7977b44f8d2da77034cdec248e55
Author: Ryan Lortie <desrt desrt ca>
Date:   Sat Aug 4 13:00:46 2012 -0400

    editor: make failure to load GtkBuilder abort
    
    We were issuing a g_critical() on failing to load the GtkBuilder xml
    files which isn't very helpful.  Just abort with g_error().

 editor/dconf-editor.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/editor/dconf-editor.vala b/editor/dconf-editor.vala
index 22fcff4..1a5a3cb 100644
--- a/editor/dconf-editor.vala
+++ b/editor/dconf-editor.vala
@@ -52,7 +52,7 @@ class ConfigurationEditor : Gtk.Application
         }
         catch (Error e)
         {
-            critical("Failed to load UI: %s", e.message);
+            error("Failed to load UI: %s", e.message);
         }
         window = new Gtk.ApplicationWindow(this);
         window.set_default_size(600, 300);
@@ -68,7 +68,7 @@ class ConfigurationEditor : Gtk.Application
         }
         catch (Error e)
         {
-            critical("Failed to load menu UI: %s", e.message);
+            error("Failed to load menu UI: %s", e.message);
         }
         set_app_menu((MenuModel)menu_ui.get_object("menu"));
 



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