summaryrefslogtreecommitdiff
path: root/image-converter/caja-image-rotator.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-rotator.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-rotator.c')
-rw-r--r--image-converter/caja-image-rotator.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/image-converter/caja-image-rotator.c b/image-converter/caja-image-rotator.c
index 0186f0d..7ba0271 100644
--- a/image-converter/caja-image-rotator.c
+++ b/image-converter/caja-image-rotator.c
@@ -345,19 +345,14 @@ caja_image_rotator_init(CajaImageRotator *rotator)
CajaImageRotatorPrivate *priv = caja_image_rotator_get_instance_private (rotator);
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-rotate.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-rotate.ui", &err) == 0) {
g_warning ("%s", err->message);
g_error_free (err);
return;