[gnome-photos/wip/rishi/edit-mode: 33/33] icons, main-toolbar: Add an edit button
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/edit-mode: 33/33] icons, main-toolbar: Add an edit button
- Date: Wed, 11 Nov 2015 18:44:39 +0000 (UTC)
commit b0d01b05091f67ae7d98ada27ce05635a0bfec65
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Nov 11 19:31:58 2015 +0100
icons, main-toolbar: Add an edit button
src/photos-icons.h | 1 +
src/photos-main-toolbar.c | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-icons.h b/src/photos-icons.h
index 717aee6..6eb2dee 100644
--- a/src/photos-icons.h
+++ b/src/photos-icons.h
@@ -39,6 +39,7 @@ G_BEGIN_DECLS
#define PHOTOS_ICON_IMAGE_AUTO_ADJUST_SYMBOLIC "image-auto-adjust-symbolic"
#define PHOTOS_ICON_IMAGE_ADJUST_COLOR_SYMBOLIC "image-adjust-color-symbolic"
#define PHOTOS_ICON_IMAGE_CROP_SYMBOLIC "image-crop-symbolic"
+#define PHOTOS_ICON_IMAGE_EDIT_SYMBOLIC "image-edit-symbolic"
#define PHOTOS_ICON_IMAGE_FILTER_SYMBOLIC "image-filter-symbolic"
#define PHOTOS_ICON_IMAGE_X_GENERIC_SYMBOLIC "image-x-generic-symbolic"
diff --git a/src/photos-main-toolbar.c b/src/photos-main-toolbar.c
index e11c665..2cac268 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -559,6 +559,7 @@ photos_main_toolbar_populate_for_preview (PhotosMainToolbar *self)
PhotosMainToolbarPrivate *priv = self->priv;
GMenu *preview_menu;
GtkWidget *back_button;
+ GtkWidget *edit_button;
GtkWidget *image;
GtkWidget *menu_button;
GApplication *app;
@@ -583,6 +584,10 @@ photos_main_toolbar_populate_for_preview (PhotosMainToolbar *self)
g_simple_action_set_enabled (priv->gear_menu, TRUE);
+ edit_button = gtk_button_new_from_icon_name (PHOTOS_ICON_IMAGE_EDIT_SYMBOLIC, GTK_ICON_SIZE_BUTTON);
+ gtk_actionable_set_action_name (GTK_ACTIONABLE (edit_button), "app.edit-current");
+ gtk_header_bar_pack_end (GTK_HEADER_BAR (priv->toolbar), edit_button);
+
priv->favorite_button = gtk_button_new ();
gtk_header_bar_pack_end (GTK_HEADER_BAR (priv->toolbar), priv->favorite_button);
g_signal_connect_swapped (priv->favorite_button,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]