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-batch-add.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-batch-add.c')
-rw-r--r-- | src/dlg-batch-add.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/dlg-batch-add.c b/src/dlg-batch-add.c index 8e30bd4..7e416e6 100644 --- a/src/dlg-batch-add.c +++ b/src/dlg-batch-add.c @@ -484,13 +484,7 @@ dlg_batch_add_files (FrWindow *window, data = g_new0 (DialogData, 1); data->settings = g_settings_new (ENGRAMPA_SCHEMA_BATCH_ADD); data->settings_general = g_settings_new (ENGRAMPA_SCHEMA_GENERAL); - - data->builder = _gtk_builder_new_from_resource ("batch-add-files.ui"); - if (data->builder == NULL) { - g_free (data); - return; - } - + data->builder = gtk_builder_new_from_resource (ENGRAMPA_RESOURCE_UI_PATH G_DIR_SEPARATOR_S "batch-add-files.ui"); data->window = window; data->file_list = file_list; data->single_file = ((file_list->next == NULL) && uri_is_file ((char*) file_list->data)); |