changeset 1127:ed7cbdc37a75

Widget GTK3 v/halign properties get set according to the sizing flags during widget packing. This makes alignment the same as on other platforms.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 30 Aug 2011 07:53:05 +0000
parents 72a36ef67291
children 7d7535f6bc4e
files gtk3/dw.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gtk3/dw.c	Tue Aug 30 07:29:30 2011 +0000
+++ b/gtk3/dw.c	Tue Aug 30 07:53:05 2011 +0000
@@ -8011,8 +8011,6 @@
    exit(exitcode);
 }
 
-#define DW_EXPAND (GTK_EXPAND | GTK_SHRINK | GTK_FILL)
-
 /* Internal box packing function called by the other 3 functions */
 void _dw_box_pack(HWND box, HWND item, int index, int width, int height, int hsize, int vsize, int pad, char *funcname)
 {
@@ -8103,7 +8101,9 @@
       g_object_set_data(G_OBJECT(item), "_dw_table", box);
       /* Set the expand attribute on the widgets now instead of the container */
       gtk_widget_set_vexpand(item, vsize);
+      gtk_widget_set_valign(item, vsize ? GTK_ALIGN_FILL : GTK_ALIGN_START);
       gtk_widget_set_hexpand(item, hsize);
+      gtk_widget_set_halign(item, hsize ? GTK_ALIGN_FILL : GTK_ALIGN_START);
       /* Use the margin property as padding */
       g_object_set(G_OBJECT(item), "margin", pad, NULL);
       /* Add to the grid using insert...