summaryrefslogtreecommitdiff
path: root/src/eom-properties-dialog.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-07-30 15:04:48 +0200
committerVictor Kareh <[email protected]>2018-08-01 15:55:49 -0400
commit70fd47058ace7814ec7f83243a62254e887f88ab (patch)
treea4b0eae23f43aad85b8abe2270173fcb3044eb91 /src/eom-properties-dialog.c
parent8734d0e6e3f55598e3409c1e8d8b5a9b749ed5d6 (diff)
downloadeom-70fd47058ace7814ec7f83243a62254e887f88ab.tar.bz2
eom-70fd47058ace7814ec7f83243a62254e887f88ab.tar.xz
Load eom-image-properties-dialog.ui with a gresource
Diffstat (limited to 'src/eom-properties-dialog.c')
-rw-r--r--src/eom-properties-dialog.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/eom-properties-dialog.c b/src/eom-properties-dialog.c
index be376c9..a6c3cf0 100644
--- a/src/eom-properties-dialog.c
+++ b/src/eom-properties-dialog.c
@@ -569,13 +569,11 @@ eom_properties_dialog_class_init (EomPropertiesDialogClass *klass)
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
- gchar* data;
- gsize data_size;
- g_file_get_contents(g_build_filename (EOM_DATA_DIR, "eom-image-properties-dialog.ui", NULL), &data, &data_size, NULL);
- GBytes *bytes = g_bytes_new_static(data, data_size);
- gtk_widget_class_set_template((GtkWidgetClass *) klass, bytes);
-
GtkWidgetClass *wklass = (GtkWidgetClass*) klass;
+
+ gtk_widget_class_set_template_from_resource (wklass,
+ "/org/mate/eom/ui/eom-image-properties-dialog.ui");
+
gtk_widget_class_bind_template_child_private(wklass,
EomPropertiesDialog,
notebook);