[Freeciv-Dev] (PR#9667) CMA GUI Bug
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=9667 >
Attached patch changes alignment of CMA tab. The bug occurs no more. So
this looks like a bug in GTK.
Any GTK2 hackers here?
--
mateusz
Index: cma_fe.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/cma_fe.c,v
retrieving revision 1.19
diff -u -r1.19 cma_fe.c
--- cma_fe.c 20 Jul 2004 16:27:07 -0000 1.19
+++ cma_fe.c 13 Aug 2004 09:24:51 -0000
@@ -144,6 +144,7 @@
GtkListStore *store;
GtkCellRenderer *rend;
GtkWidget *view;
+ GtkWidget *vbox1;
cmafec_get_fe_parameter(pcity, ¶m);
pdialog = fc_malloc(sizeof(struct cma_dialog));
@@ -161,7 +162,8 @@
gtk_box_pack_start(GTK_BOX(pdialog->shell), page, TRUE, TRUE, 0);
vbox = gtk_vbox_new(FALSE, 2);
- gtk_box_pack_start(GTK_BOX(page), vbox, TRUE, TRUE, 0);
+ vbox1 = vbox;
+
sw = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw),
@@ -224,6 +226,7 @@
vbox = gtk_vbox_new(FALSE, 0);
gtk_box_pack_start(GTK_BOX(page), vbox, FALSE, FALSE, 2);
+ gtk_box_pack_start(GTK_BOX(page), vbox1, TRUE, TRUE, 0);
/* Result */
|
|