[gnome-photos] selection-toolbar: Fix button positions



commit 3b0ef84f3fb886b5faebc829a1a225cefa1d9d16
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Jan 13 08:33:24 2014 +0100

    selection-toolbar: Fix button positions
    
    GtkActionBar (and current GtkHeaderBar) has different pack_end
    semantics than GtkHeaderBar in GTK+ 3.10.x.

 src/photos-selection-toolbar.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/photos-selection-toolbar.c b/src/photos-selection-toolbar.c
index bb59273..ece149d 100644
--- a/src/photos-selection-toolbar.c
+++ b/src/photos-selection-toolbar.c
@@ -457,14 +457,6 @@ photos_selection_toolbar_init (PhotosSelectionToolbar *self)
                     G_CALLBACK (photos_selection_toolbar_trash_clicked),
                     self);
 
-  priv->toolbar_collection = gd_header_simple_button_new ();
-  gd_header_button_set_label (GD_HEADER_BUTTON (priv->toolbar_collection), _("Add to Album"));
-  gtk_action_bar_pack_end (GTK_ACTION_BAR (toolbar), priv->toolbar_collection);
-  g_signal_connect (priv->toolbar_collection,
-                    "clicked",
-                    G_CALLBACK (photos_selection_toolbar_collection_clicked),
-                    self);
-
   priv->toolbar_properties = gd_header_simple_button_new ();
   gd_header_button_set_label (GD_HEADER_BUTTON (priv->toolbar_properties), _("Properties"));
   gtk_action_bar_pack_end (GTK_ACTION_BAR (toolbar), priv->toolbar_properties);
@@ -473,6 +465,14 @@ photos_selection_toolbar_init (PhotosSelectionToolbar *self)
                     G_CALLBACK (photos_selection_toolbar_properties_clicked),
                     self);
 
+  priv->toolbar_collection = gd_header_simple_button_new ();
+  gd_header_button_set_label (GD_HEADER_BUTTON (priv->toolbar_collection), _("Add to Album"));
+  gtk_action_bar_pack_end (GTK_ACTION_BAR (toolbar), priv->toolbar_collection);
+  g_signal_connect (priv->toolbar_collection,
+                    "clicked",
+                    G_CALLBACK (photos_selection_toolbar_collection_clicked),
+                    self);
+
   gtk_widget_show_all (GTK_WIDGET (self));
 
   priv->item_mngr = photos_item_manager_dup_singleton ();


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