summaryrefslogtreecommitdiff
path: root/image-converter/caja-image-resizer.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-31 15:09:47 +0100
committerraveit65 <[email protected]>2021-01-28 21:11:52 +0100
commit734703786e9770ca4415d18d2451afa505a2b126 (patch)
tree00954d8412673a70831754b655de529184a059a3 /image-converter/caja-image-resizer.c
parent751c8f01c39808b7c0a1e3dc30476c7752c99285 (diff)
downloadcaja-extensions-734703786e9770ca4415d18d2451afa505a2b126.tar.bz2
caja-extensions-734703786e9770ca4415d18d2451afa505a2b126.tar.xz
caja-image-resizer: use gtk_builder_new_from_resource
Diffstat (limited to 'image-converter/caja-image-resizer.c')
-rw-r--r--image-converter/caja-image-resizer.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/image-converter/caja-image-resizer.c b/image-converter/caja-image-resizer.c
index 1117fa0..0979a1a 100644
--- a/image-converter/caja-image-resizer.c
+++ b/image-converter/caja-image-resizer.c
@@ -337,16 +337,9 @@ static void
caja_image_resizer_init (CajaImageResizer *resizer)
{
GtkBuilder *builder;
- GError *err = NULL;
- builder = gtk_builder_new ();
+ builder = gtk_builder_new_from_resource ("/org/mate/caja/extensions/imageconverter/caja-image-resize.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-resize.ui", &err) == 0) {
- g_warning ("%s", err->message);
- g_error_free (err);
- return;
- }
/* Grab some widgets */
resizer->resize_dialog = GTK_DIALOG (gtk_builder_get_object (builder, "resize_dialog"));