[gnome-photos/wip/rishi/misc-fixes: 15/20] application, preview-menu: Add "Export"



commit 7dd5ddcd6ef784f2691428d9ba0d210ceb6e65e7
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Dec 21 19:07:36 2015 +0100

    application, preview-menu: Add "Export"
    
    Export/save is now an explicit action to be performed from the preview.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759363

 src/photos-application.c   |    4 +---
 src/photos-preview-menu.ui |    4 ++++
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 7f70d95..f99d56c 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -255,7 +255,6 @@ photos_application_actions_update (PhotosApplication *self)
   g_simple_action_set_enabled (priv->edit_cancel_action, enable);
   g_simple_action_set_enabled (priv->edit_done_action, enable);
   g_simple_action_set_enabled (priv->insta_action, enable);
-  g_simple_action_set_enabled (priv->save_action, enable);
   g_simple_action_set_enabled (priv->sharpen_action, enable);
   g_simple_action_set_enabled (priv->undo_action, enable);
 
@@ -282,6 +281,7 @@ photos_application_actions_update (PhotosApplication *self)
   g_simple_action_set_enabled (priv->open_action, enable);
   g_simple_action_set_enabled (priv->print_action, enable);
   g_simple_action_set_enabled (priv->properties_action, enable);
+  g_simple_action_set_enabled (priv->save_action, enable);
   g_simple_action_set_enabled (priv->set_bg_action, enable);
   g_simple_action_set_enabled (priv->set_ss_action, enable);
 }
@@ -896,8 +896,6 @@ photos_application_save_save (GObject *source_object, GAsyncResult *res, gpointe
       goto out;
     }
 
-  photos_mode_controller_go_back (self->priv->state->mode_cntrlr);
-
  out:
   g_application_release (G_APPLICATION (self));
 }
diff --git a/src/photos-preview-menu.ui b/src/photos-preview-menu.ui
index df41adf..b72ff3b 100644
--- a/src/photos-preview-menu.ui
+++ b/src/photos-preview-menu.ui
@@ -6,6 +6,10 @@
         <attribute name="label" translatable="yes">Open</attribute>
       </item>
       <item>
+        <attribute name="action">app.save-current</attribute>
+        <attribute name="label" translatable="yes">Export…</attribute>
+      </item>
+      <item>
         <attribute name="action">app.print-current</attribute>
         <attribute name="label" translatable="yes">Print…</attribute>
         <attribute name="accel">&lt;Primary&gt;p</attribute>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]