Mercurial > dwindows
comparison gtk3/dw.c @ 1125:95d7eb4e85c6
The shrink flag on GtkPanded (splitbar) in GTK 3 causes tons
of crazy issues with the new no widget shrink policy.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 30 Aug 2011 06:32:43 +0000 |
parents | aff4aeca858f |
children | 72a36ef67291 |
comparison
equal
deleted
inserted
replaced
1124:aff4aeca858f | 1125:95d7eb4e85c6 |
---|---|
9346 DW_MUTEX_LOCK; | 9346 DW_MUTEX_LOCK; |
9347 if(type == DW_HORZ) | 9347 if(type == DW_HORZ) |
9348 tmp = gtk_hpaned_new(); | 9348 tmp = gtk_hpaned_new(); |
9349 else | 9349 else |
9350 tmp = gtk_vpaned_new(); | 9350 tmp = gtk_vpaned_new(); |
9351 gtk_paned_pack1(GTK_PANED(tmp), topleft, TRUE, TRUE); | 9351 gtk_paned_pack1(GTK_PANED(tmp), topleft, TRUE, FALSE); |
9352 gtk_paned_pack2(GTK_PANED(tmp), bottomright, TRUE, TRUE); | 9352 gtk_paned_pack2(GTK_PANED(tmp), bottomright, TRUE, FALSE); |
9353 g_object_set_data(G_OBJECT(tmp), "_dw_id", GINT_TO_POINTER(id)); | 9353 g_object_set_data(G_OBJECT(tmp), "_dw_id", GINT_TO_POINTER(id)); |
9354 *percent = 50.0; | 9354 *percent = 50.0; |
9355 g_object_set_data(G_OBJECT(tmp), "_dw_percent", (gpointer)percent); | 9355 g_object_set_data(G_OBJECT(tmp), "_dw_percent", (gpointer)percent); |
9356 g_signal_connect(G_OBJECT(tmp), "size-allocate", G_CALLBACK(_splitbar_size_allocate), NULL); | 9356 g_signal_connect(G_OBJECT(tmp), "size-allocate", G_CALLBACK(_splitbar_size_allocate), NULL); |
9357 gtk_widget_show(tmp); | 9357 gtk_widget_show(tmp); |