diff options
author | rbuj <[email protected]> | 2020-01-30 17:03:35 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-03-25 13:28:50 +0100 |
commit | 16ae921196f21a6f9c95f27fe94bf61f0df9eda1 (patch) | |
tree | 19e7ec574332e162a48ef29d4d234857ea8346c7 /src/dlg-new.c | |
parent | fbcbacb489100dbb876de3b2f5226f87e8f10092 (diff) | |
download | engrampa-16ae921196f21a6f9c95f27fe94bf61f0df9eda1.tar.bz2 engrampa-16ae921196f21a6f9c95f27fe94bf61f0df9eda1.tar.xz |
Terminate the application if the resource doesn't exists
Diffstat (limited to 'src/dlg-new.c')
-rw-r--r-- | src/dlg-new.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/dlg-new.c b/src/dlg-new.c index 7412dfa..fbc1e8d 100644 --- a/src/dlg-new.c +++ b/src/dlg-new.c @@ -272,13 +272,7 @@ dlg_new_archive (FrWindow *window, int i; data = g_new0 (DlgNewData, 1); - - data->builder = _gtk_builder_new_from_resource ("new.ui"); - if (data->builder == NULL) { - g_free (data); - return NULL; - } - + data->builder = gtk_builder_new_from_resource (ENGRAMPA_RESOURCE_UI_PATH G_DIR_SEPARATOR_S "new.ui"); data->window = window; data->supported_types = supported_types; sort_mime_types_by_description (data->supported_types); |