diff options
author | rbuj <[email protected]> | 2019-02-22 12:02:30 +0100 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-03-15 20:37:21 +0100 |
commit | 449753407d3ecf43e3401363557437984c138941 (patch) | |
tree | 9fc9697392d10fce6c36a676e94c7ff16b879ec2 /src/profile-editor.c | |
parent | 773ef179210ecc4572ba9df1887ba79ac1eb1876 (diff) | |
download | mate-terminal-449753407d3ecf43e3401363557437984c138941.tar.bz2 mate-terminal-449753407d3ecf43e3401363557437984c138941.tar.xz |
Use gresources for about_DATA, uimanager_DATA & builder_DATA
Diffstat (limited to 'src/profile-editor.c')
-rw-r--r-- | src/profile-editor.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/profile-editor.c b/src/profile-editor.c index 3b41ddd..fc13235 100644 --- a/src/profile-editor.c +++ b/src/profile-editor.c @@ -660,7 +660,6 @@ terminal_profile_edit (TerminalProfile *profile, GtkWindow *transient_parent, const char *widget_name) { - char *path; GtkBuilder *builder; GError *error = NULL; GtkWidget *editor, *w; @@ -677,17 +676,9 @@ terminal_profile_edit (TerminalProfile *profile, return; } - path = g_build_filename (TERM_PKGDATADIR, "profile-preferences.ui", NULL); builder = gtk_builder_new (); - if (!gtk_builder_add_from_file (builder, path, &error)) - { - g_warning ("Failed to load %s: %s\n", path, error->message); - g_error_free (error); - g_free (path); - g_object_unref (builder); - return; - } - g_free (path); + gtk_builder_add_from_resource (builder, TERMINAL_RESOURCES_PATH_PREFIX G_DIR_SEPARATOR_S "ui/profile-preferences.ui", &error); + g_assert_no_error (error); editor = (GtkWidget *) gtk_builder_get_object (builder, "profile-editor-dialog"); g_object_set_data_full (G_OBJECT (editor), "builder", |