[gnome-photos/wip/rishi/edit-mode: 20/20] preview-nav-buttons: Add buttons for using the Instagram operations



commit 3403e9020b9bec62388caec0db98f4acbd2d0ec3
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu May 28 09:47:55 2015 +0200

    preview-nav-buttons: Add buttons for using the Instagram operations

 src/photos-preview-nav-buttons.c |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-preview-nav-buttons.c b/src/photos-preview-nav-buttons.c
index 18bf3b6..43d06d3 100644
--- a/src/photos-preview-nav-buttons.c
+++ b/src/photos-preview-nav-buttons.c
@@ -33,6 +33,7 @@
 #include "photos-enums.h"
 #include "photos-icons.h"
 #include "photos-mode-controller.h"
+#include "photos-operation-insta-common.h"
 #include "photos-preview-model.h"
 #include "photos-preview-nav-buttons.h"
 #include "photos-search-context.h"
@@ -395,6 +396,26 @@ photos_preview_nav_buttons_constructed (GObject *object)
   gtk_actionable_set_action_name (GTK_ACTIONABLE (button), "app.gray-current");
   gtk_box_pack_start (button_area, button, FALSE, FALSE, 0);
 
+  button = gtk_button_new_with_label (_("1977"));
+  gtk_actionable_set_action_name (GTK_ACTIONABLE (button), "app.insta-current");
+  gtk_actionable_set_action_target (GTK_ACTIONABLE (button), "n", (gint16) 
PHOTOS_OPERATION_INSTA_PRESET_1977);
+  gtk_box_pack_start (button_area, button, FALSE, FALSE, 0);
+
+  button = gtk_button_new_with_label (_("Brannan"));
+  gtk_actionable_set_action_name (GTK_ACTIONABLE (button), "app.insta-current");
+  gtk_actionable_set_action_target (GTK_ACTIONABLE (button), "n", (gint16) 
PHOTOS_OPERATION_INSTA_PRESET_BRANNAN);
+  gtk_box_pack_start (button_area, button, FALSE, FALSE, 0);
+
+  button = gtk_button_new_with_label (_("Gotham"));
+  gtk_actionable_set_action_name (GTK_ACTIONABLE (button), "app.insta-current");
+  gtk_actionable_set_action_target (GTK_ACTIONABLE (button), "n", (gint16) 
PHOTOS_OPERATION_INSTA_PRESET_GOTHAM);
+  gtk_box_pack_start (button_area, button, FALSE, FALSE, 0);
+
+  button = gtk_button_new_with_label (_("Nashville"));
+  gtk_actionable_set_action_name (GTK_ACTIONABLE (button), "app.insta-current");
+  gtk_actionable_set_action_target (GTK_ACTIONABLE (button), "n", (gint16) 
PHOTOS_OPERATION_INSTA_PRESET_NASHVILLE);
+  gtk_box_pack_start (button_area, button, FALSE, FALSE, 0);
+
   priv->prev_widget = gtk_revealer_new ();
   gtk_widget_set_halign (priv->prev_widget, GTK_ALIGN_START);
   gtk_widget_set_margin_start (priv->prev_widget, 30);


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