summaryrefslogtreecommitdiff
path: root/src/dlg-add-folder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dlg-add-folder.c')
-rw-r--r--src/dlg-add-folder.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/dlg-add-folder.c b/src/dlg-add-folder.c
index 56d619a..3bc5db6 100644
--- a/src/dlg-add-folder.c
+++ b/src/dlg-add-folder.c
@@ -204,10 +204,7 @@ add_folder_cb (GtkWidget *widget,
GtkBuilder *builder;
DialogData *data;
- builder = _gtk_builder_new_from_resource ("dlg-add-folder.ui");
- if (builder == NULL) {
- return;
- }
+ builder = gtk_builder_new_from_resource (ENGRAMPA_RESOURCE_UI_PATH G_DIR_SEPARATOR_S "dlg-add-folder.ui");
data = g_new0 (DialogData, 1);
data->window = callback_data;
@@ -668,11 +665,7 @@ load_options_cb (GtkWidget *w,
aod_data = g_new0 (LoadOptionsDialogData, 1);
aod_data->data = data;
- aod_data->builder = _gtk_builder_new_from_resource ("add-options.ui");
- if (aod_data->builder == NULL) {
- g_free (aod_data);
- return;
- }
+ aod_data->builder = gtk_builder_new_from_resource (ENGRAMPA_RESOURCE_UI_PATH G_DIR_SEPARATOR_S "add-options.ui");
/* Get the widgets. */