summaryrefslogtreecommitdiff
path: root/src/gtk-utils.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-01-30 17:03:35 +0100
committerraveit65 <[email protected]>2020-03-25 13:28:50 +0100
commit16ae921196f21a6f9c95f27fe94bf61f0df9eda1 (patch)
tree19e7ec574332e162a48ef29d4d234857ea8346c7 /src/gtk-utils.c
parentfbcbacb489100dbb876de3b2f5226f87e8f10092 (diff)
downloadengrampa-16ae921196f21a6f9c95f27fe94bf61f0df9eda1.tar.bz2
engrampa-16ae921196f21a6f9c95f27fe94bf61f0df9eda1.tar.xz
Terminate the application if the resource doesn't exists
Diffstat (limited to 'src/gtk-utils.c')
-rw-r--r--src/gtk-utils.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/gtk-utils.c b/src/gtk-utils.c
index 263773a..1e45ef8 100644
--- a/src/gtk-utils.c
+++ b/src/gtk-utils.c
@@ -573,25 +573,6 @@ show_help_dialog (GtkWindow *parent,
}
-GtkBuilder *
-_gtk_builder_new_from_resource (const char *resource_path)
-{
- GtkBuilder *builder;
- char *full_path;
- GError *error = NULL;
-
- builder = gtk_builder_new ();
- full_path = g_strconcat (ENGRAMPA_RESOURCE_UI_PATH G_DIR_SEPARATOR_S, resource_path, NULL);
- if (! gtk_builder_add_from_resource (builder, full_path, &error)) {
- g_warning ("%s\n", error->message);
- g_clear_error (&error);
- }
- g_free (full_path);
-
- return builder;
-}
-
-
GtkWidget *
_gtk_builder_get_widget (GtkBuilder *builder,
const char *name)