diff options
author | rbuj <[email protected]> | 2019-12-09 23:05:56 +0100 |
---|---|---|
committer | Robert Antoni Buj Gelonch <[email protected]> | 2019-12-23 08:55:37 +0100 |
commit | d6318fc5174c6e5915ed22c53b17a681850c97c0 (patch) | |
tree | 52e0c82b9e6318f70ffb07fac79b0d396970a6f9 /baobab/src/baobab-prefs.c | |
parent | b8b0f4f70656476e51c0a645875d07c8c8225626 (diff) | |
download | mate-utils-d6318fc5174c6e5915ed22c53b17a681850c97c0.tar.bz2 mate-utils-d6318fc5174c6e5915ed22c53b17a681850c97c0.tar.xz |
Use gresources for UI files
Diffstat (limited to 'baobab/src/baobab-prefs.c')
-rw-r--r-- | baobab/src/baobab-prefs.c | 9 |
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); |