[bijiben] mainToolbar: make the New button align
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [bijiben] mainToolbar: make the New button align
- Date: Sun,  8 Sep 2013 22:03:39 +0000 (UTC)
commit e9eee18da4e2d61e0aad4bb38e15bea0609e21c1
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Mon Sep 9 00:02:29 2013 +0200
    mainToolbar: make the New button align
 src/bjb-main-toolbar.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/bjb-main-toolbar.c b/src/bjb-main-toolbar.c
index 9e42887..b525fb6 100644
--- a/src/bjb-main-toolbar.c
+++ b/src/bjb-main-toolbar.c
@@ -382,6 +382,7 @@ populate_bar_for_standard(BjbMainToolbar *self)
   BijiCollection *coll;
   GtkWidget *select_image;
   gboolean rtl;
+  GtkSizeGroup *size;
 
   rtl = (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL);
 
@@ -430,6 +431,12 @@ populate_bar_for_standard(BjbMainToolbar *self)
   g_signal_connect (priv->select,"clicked",
                     G_CALLBACK(on_selection_mode_clicked),self);
 
+  /* Align buttons */
+  size = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL);
+  gtk_size_group_add_widget (GTK_SIZE_GROUP (size), priv->select);
+  gtk_size_group_add_widget (GTK_SIZE_GROUP (size), priv->new);
+  g_object_unref (size);
+
   /* Show close button */
   gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (self), TRUE);
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]