Blob Blame History Raw
From eb1e45a1e8070bee6ba44f325f7dd0ca8900dc77 Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Sat, 16 May 2015 06:46:17 +0200
Subject: [PATCH] config UI: read glade from a local file first

If you read the system file first, you won't be able to the application
from a development directory.

Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
 src/configuration-gui/abrt-config-widget.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/configuration-gui/abrt-config-widget.c b/src/configuration-gui/abrt-config-widget.c
index 664180d..2c75429 100644
--- a/src/configuration-gui/abrt-config-widget.c
+++ b/src/configuration-gui/abrt-config-widget.c
@@ -221,14 +221,14 @@ abrt_config_widget_init(AbrtConfigWidget *self)
     self->priv->builder = gtk_builder_new();
     gtk_builder_set_translation_domain(self->priv->builder, GETTEXT_PACKAGE);
 
-    gtk_builder_add_from_file(self->priv->builder, ABRT_UI_DIR "/" UI_FILE_NAME, &error);
+    gtk_builder_add_from_file(self->priv->builder, UI_FILE_NAME, &error);
     if(error != NULL) {
-        g_warning("Failed to load '%s': %s", ABRT_UI_DIR "/" UI_FILE_NAME, error->message);
+        log_debug("Failed to load '%s': %s", UI_FILE_NAME, error->message);
         g_error_free(error);
         error = NULL;
-        gtk_builder_add_from_file(self->priv->builder, UI_FILE_NAME, &error);
+        gtk_builder_add_from_file(self->priv->builder, ABRT_UI_DIR "/" UI_FILE_NAME, &error);
         if(error != NULL) {
-            g_warning("Failed to load '%s': %s", UI_FILE_NAME, error->message);
+            g_warning("Failed to load '%s': %s", ABRT_UI_DIR "/" UI_FILE_NAME, error->message);
             g_error_free(error);
             return;
         }
-- 
2.4.1