diff options
author | rbuj <[email protected]> | 2019-05-07 00:05:26 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-05-11 00:59:53 +0000 |
commit | eafb5fddf84324ebf6b0cc90422f10ee314b5b28 (patch) | |
tree | b7569aab227398638c9504056c1892bc8ea605cd /capplets/appearance/appearance-main.c | |
parent | 962f1b0464dfcac6223b6ae2b8e8228863800ea2 (diff) | |
download | mate-control-center-eafb5fddf84324ebf6b0cc90422f10ee314b5b28.tar.bz2 mate-control-center-eafb5fddf84324ebf6b0cc90422f10ee314b5b28.tar.xz |
capplets: Use gresources for UI files
Diffstat (limited to 'capplets/appearance/appearance-main.c')
-rw-r--r-- | capplets/appearance/appearance-main.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/capplets/appearance/appearance-main.c b/capplets/appearance/appearance-main.c index b2b77353..bd6fc87f 100644 --- a/capplets/appearance/appearance-main.c +++ b/capplets/appearance/appearance-main.c @@ -36,7 +36,6 @@ static AppearanceData * init_appearance_data (int *argc, char ***argv, GOptionContext *context) { AppearanceData *data = NULL; - gchar *uifile; GtkBuilder *ui; GError *err = NULL; @@ -45,11 +44,8 @@ init_appearance_data (int *argc, char ***argv, GOptionContext *context) activate_settings_daemon (); /* set up the data */ - uifile = g_build_filename (MATECC_GTKBUILDER_DIR, "appearance.ui", - NULL); ui = gtk_builder_new (); - gtk_builder_add_from_file (ui, uifile, &err); - g_free (uifile); + gtk_builder_add_from_resource (ui, "/org/mate/mcc/appearance/data/appearance.ui", &err); if (err) { |