# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1314690785 0 # Node ID ed7cbdc37a75a092b0f22149a14da20e2adf73e0 # Parent 72a36ef67291aaeeff3c5c9d60c36e99f2707a9d Widget GTK3 v/halign properties get set according to the sizing flags during widget packing. This makes alignment the same as on other platforms. diff -r 72a36ef67291 -r ed7cbdc37a75 gtk3/dw.c --- 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...