From 16ae921196f21a6f9c95f27fe94bf61f0df9eda1 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 30 Jan 2020 17:03:35 +0100 Subject: Terminate the application if the resource doesn't exists --- src/dlg-password.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/dlg-password.c') diff --git a/src/dlg-password.c b/src/dlg-password.c index 0ce51e5..4d7a52e 100644 --- a/src/dlg-password.c +++ b/src/dlg-password.c @@ -88,13 +88,7 @@ dlg_password (GtkWidget *widget, DialogData *data; data = g_new0 (DialogData, 1); - - data->builder = _gtk_builder_new_from_resource ("password.ui"); - if (data->builder == NULL) { - g_free (data); - return; - } - + data->builder = gtk_builder_new_from_resource (ENGRAMPA_RESOURCE_UI_PATH G_DIR_SEPARATOR_S "password.ui"); data->window = window; /* Get the widgets. */ -- cgit v1.2.1