From 751c8f01c39808b7c0a1e3dc30476c7752c99285 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 31 Dec 2020 15:07:29 +0100 Subject: caja-image-rotator: use gtk_builder_new_from_resource --- image-converter/caja-image-rotator.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/image-converter/caja-image-rotator.c b/image-converter/caja-image-rotator.c index f6c0ad5..d5fbaeb 100644 --- a/image-converter/caja-image-rotator.c +++ b/image-converter/caja-image-rotator.c @@ -337,16 +337,9 @@ static void caja_image_rotator_init (CajaImageRotator *rotator) { GtkBuilder *builder; - GError *err = NULL; - builder = gtk_builder_new (); + builder = gtk_builder_new_from_resource ("/org/mate/caja/extensions/imageconverter/caja-image-rotate.ui"); gtk_builder_set_translation_domain (builder, GETTEXT_PACKAGE); - /* If we're unable to load the xml file */ - if (gtk_builder_add_from_resource (builder, "/org/mate/caja/extensions/imageconverter/caja-image-rotate.ui", &err) == 0) { - g_warning ("%s", err->message); - g_error_free (err); - return; - } /* Grab some widgets */ rotator->rotate_dialog = GTK_DIALOG (gtk_builder_get_object (builder, "rotate_dialog")); -- cgit v1.2.1