[gnumeric] A better fix for toolbars expansion.
- From: Jean BrÃfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] A better fix for toolbars expansion.
- Date: Wed, 3 Aug 2011 07:00:59 +0000 (UTC)
commit d99fcc6b97f42b91914bc6804dd0b2a7fc9fe2f8
Author: Jean Brefort <jean brefort normalesup org>
Date: Wed Aug 3 09:04:58 2011 +0200
A better fix for toolbars expansion.
src/wbc-gtk.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/wbc-gtk.c b/src/wbc-gtk.c
index 07b4d80..570bd9b 100644
--- a/src/wbc-gtk.c
+++ b/src/wbc-gtk.c
@@ -4013,6 +4013,10 @@ set_toolbar_style_for_position (GtkToolbar *tb, GtkPositionType pos)
gtk_handle_box_set_handle_position (GTK_HANDLE_BOX (box),
hdlpos[pos]);
}
+ if (pos == GTK_POS_TOP || pos == GTK_POS_BOTTOM)
+ g_object_set (G_OBJECT (tb), "hexpand", TRUE, "vexpand", FALSE, NULL);
+ else
+ g_object_set (G_OBJECT (tb), "vexpand", TRUE, "hexpand", FALSE, NULL);
}
static void
@@ -4258,7 +4262,6 @@ cb_add_menus_toolbars (G_GNUC_UNUSED GtkUIManager *ui,
G_CALLBACK (cb_handlebox_button_press),
gtk);
- g_object_set (G_OBJECT (w), "hexpand", TRUE, NULL);
gtk_container_add (GTK_CONTAINER (box), w);
gtk_widget_show_all (box);
if (!visible)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]