diff options
author | waker <wakeroid@gmail.com> | 2013-08-25 15:58:30 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2013-08-25 15:58:30 +0200 |
commit | 626fdaa517fad63206fb20b994d73e5be9c2428d (patch) | |
tree | 95d511f40926e490854c74dd2e8ca59db721590b | |
parent | 068f3b3a8aca2c744265a39944c4fcf99d4d9082 (diff) |
gtkui: make hvbox fill+expand+homogeneous by default
-rw-r--r-- | plugins/gtkui/widgets.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/gtkui/widgets.c b/plugins/gtkui/widgets.c index 9f72928c..cbb9358e 100644 --- a/plugins/gtkui/widgets.c +++ b/plugins/gtkui/widgets.c @@ -2456,6 +2456,7 @@ w_hvbox_load (struct ddb_gtkui_widget_s *w, const char *type, const char *s) { if (!strcmp (key, "expand")) { const char *s = val; int n = 0; + hvbox->expand = 0; char t[MAX_TOKEN]; while (n < 64) { s = gettoken (s, t); @@ -2471,6 +2472,7 @@ w_hvbox_load (struct ddb_gtkui_widget_s *w, const char *type, const char *s) { else if (!strcmp (key, "fill")) { const char *s = val; int n = 0; + hvbox->fill = 0; char t[MAX_TOKEN]; while (n < 64) { s = gettoken (s, t); @@ -2712,6 +2714,9 @@ w_hbox_create (void) { w->base.save = w_hvbox_save; w->base.init = w_hvbox_init; w->box = gtk_hbox_new (TRUE, 3); + w->homogeneous = 1; + w->expand = -1; + w->fill = -1; gtk_widget_show (w->box); gtk_container_add (GTK_CONTAINER (w->base.widget), w->box); @@ -2737,6 +2742,9 @@ w_vbox_create (void) { w->base.save = w_hvbox_save; w->base.init = w_hvbox_init; w->box = gtk_vbox_new (TRUE, 3); + w->homogeneous = 1; + w->expand = -1; + w->fill = -1; gtk_widget_show (w->box); gtk_container_add (GTK_CONTAINER (w->base.widget), w->box); |