summaryrefslogtreecommitdiff
path: root/baobab/src/baobab-prefs.c
diff options
context:
space:
mode:
Diffstat (limited to 'baobab/src/baobab-prefs.c')
-rw-r--r--baobab/src/baobab-prefs.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/baobab/src/baobab-prefs.c b/baobab/src/baobab-prefs.c
index f43d3472..cdbb92c3 100644
--- a/baobab/src/baobab-prefs.c
+++ b/baobab/src/baobab-prefs.c
@@ -34,7 +34,7 @@
#include "baobab-utils.h"
#include "baobab-prefs.h"
-#define BAOBAB_PREFERENCES_UI_FILE PKGDATADIR "/baobab-dialog-scan-props.ui"
+#define BAOBAB_PREFERENCES_UI_RESOURCE "/org/mate/disk-usage-analyzer/baobab-dialog-scan-props.ui"
enum
{
@@ -284,12 +284,9 @@ baobab_prefs_dialog (void)
GError *error = NULL;
builder = gtk_builder_new ();
- gtk_builder_add_from_file (builder,
- BAOBAB_PREFERENCES_UI_FILE,
- &error);
- if (error) {
- g_critical ("Can't load user interface file for the scan properties dialog: %s",
+ if (gtk_builder_add_from_resource (builder, BAOBAB_PREFERENCES_UI_RESOURCE, &error) == 0) {
+ g_critical ("Can't load user interface resource for the scan properties dialog: %s",
error->message);
g_object_unref (builder);
g_error_free (error);