Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Load EomMultipleSaveAsDialog from GResource
  • Loading branch information
fxri authored and raveit65 committed Aug 13, 2018
1 parent b5172a3 commit b1fb22d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion data/Makefile.am
Expand Up @@ -22,7 +22,6 @@ gsettings_SCHEMAS = org.mate.eom.gschema.xml

uidir = $(pkgdatadir)
ui_DATA = \
eom-multiple-save-as-dialog.ui \
eom-preferences-dialog.ui \
eom-toolbar.xml

Expand All @@ -33,6 +32,7 @@ EXTRA_DIST = \
$(ui_DATA) \
eom.css \
eom-image-properties-dialog.ui \
eom-multiple-save-as-dialog.ui \
eom-ui.xml \
metadata-sidebar.ui \
$(DESKTOP_IN_FILES) \
Expand Down
10 changes: 1 addition & 9 deletions src/eom-save-as-dialog-helper.c
Expand Up @@ -201,21 +201,13 @@ set_default_values (GtkWidget *dlg, GFile *base_file)
GtkWidget*
eom_save_as_dialog_new (GtkWindow *main, GList *images, GFile *base_file)
{
char *filepath;
GtkBuilder *xml;
GtkWidget *dlg;
SaveAsData *data;
GtkWidget *label;

filepath = g_build_filename (EOM_DATA_DIR,
"eom-multiple-save-as-dialog.ui",
NULL);

xml = gtk_builder_new ();
xml = gtk_builder_new_from_resource ("/org/gnome/eog/ui/eom-multiple-save-as-dialog.ui");
gtk_builder_set_translation_domain (xml, GETTEXT_PACKAGE);
g_assert (gtk_builder_add_from_file (xml, filepath, NULL));

g_free (filepath);

dlg = GTK_WIDGET (g_object_ref (gtk_builder_get_object (xml, "eom_multiple_save_as_dialog")));
gtk_window_set_transient_for (GTK_WINDOW (dlg), GTK_WINDOW (main));
Expand Down
1 change: 1 addition & 0 deletions src/eom.gresource.xml
Expand Up @@ -3,6 +3,7 @@
<gresource prefix="/org/mate/eom/ui">
<file>eom.css</file>
<file compressed="true" preprocess="xml-stripblanks">eom-image-properties-dialog.ui</file>
<file compressed="true" preprocess="xml-stripblanks">eom-multiple-save-as-dialog.ui</file>
<file compressed="true" preprocess="xml-stripblanks">eom-ui.xml</file>
<file compressed="true" preprocess="xml-stripblanks">metadata-sidebar.ui</file>
</gresource>
Expand Down

0 comments on commit b1fb22d

Please sign in to comment.