summaryrefslogtreecommitdiff
path: root/image-converter/caja-image-resizer.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-03-10 09:31:53 +0100
committerraveit65 <[email protected]>2020-03-14 14:31:30 +0100
commitd014b696b3ca43a1521f85b3313890844fe41c3a (patch)
tree5b3e57da8e0c0c45dd7f1d4685d4c5945950d2b3 /image-converter/caja-image-resizer.c
parentf6dd91097d31b7967c3926985045ceb8a8708666 (diff)
downloadcaja-extensions-d014b696b3ca43a1521f85b3313890844fe41c3a.tar.bz2
caja-extensions-d014b696b3ca43a1521f85b3313890844fe41c3a.tar.xz
image-converter: use gresources for UI files
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;