summaryrefslogtreecommitdiff
path: root/image-converter/caja-image-resizer.c
diff options
context:
space:
mode:
Diffstat (limited to 'image-converter/caja-image-resizer.c')
-rw-r--r--image-converter/caja-image-resizer.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/image-converter/caja-image-resizer.c b/image-converter/caja-image-resizer.c
index 713e21b..0685466 100644
--- a/image-converter/caja-image-resizer.c
+++ b/image-converter/caja-image-resizer.c
@@ -334,19 +334,14 @@ caja_image_resizer_init(CajaImageResizer *resizer)
CajaImageResizerPrivate *priv = caja_image_resizer_get_instance_private (resizer);
GtkBuilder *ui;
- gchar *path;
- guint result;
GError *err = NULL;
/* Let's create our gtkbuilder and load the xml file */
ui = gtk_builder_new ();
gtk_builder_set_translation_domain (ui, GETTEXT_PACKAGE);
- path = g_build_filename (DATADIR, PACKAGE, "caja-image-resize.ui", NULL);
- result = gtk_builder_add_from_file (ui, path, &err);
- g_free (path);
/* If we're unable to load the xml file */
- if (result == 0) {
+ if (gtk_builder_add_from_resource (ui, "/org/mate/caja/extensions/imageconverter/caja-image-resize.ui", &err) == 0) {
g_warning ("%s", err->message);
g_error_free (err);
return;