tReplaced a GtkTable with a GtkVBox in the Drugs tab so that the ExpensiveStr stuff looks nicer. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit ba92a3b5696e2dfeb551f9e03006afa93b9b00d6
(DIR) parent 1fc011026aff98fcc558b9559b0d36df5fbe3079
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Sat, 31 Aug 2002 17:47:58 +0000
Replaced a GtkTable with a GtkVBox in the Drugs tab so that the ExpensiveStr
stuff looks nicer.
Diffstat:
M src/gui_client/optdialog.c | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
---
(DIR) diff --git a/src/gui_client/optdialog.c b/src/gui_client/optdialog.c
t@@ -833,31 +833,33 @@ void OptDialog(GtkWidget *widget, gpointer data)
label = gtk_label_new(_("Locations"));
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), hbox, label);
- table = gtk_table_new(4, 2, FALSE);
- gtk_table_set_row_spacings(GTK_TABLE(table), 5);
- gtk_table_set_col_spacings(GTK_TABLE(table), 5);
- gtk_container_set_border_width(GTK_CONTAINER(table), 7);
+ vbox2 = gtk_vbox_new(FALSE, 8);
+ gtk_container_set_border_width(GTK_CONTAINER(vbox2), 7);
hbox = CreateList("Drug", drugmembers);
- gtk_table_attach_defaults(GTK_TABLE(table), hbox, 0, 2, 0, 1);
+ gtk_box_pack_start(GTK_BOX(vbox2), hbox, TRUE, TRUE, 0);
hsep = gtk_hseparator_new();
- gtk_table_attach_defaults(GTK_TABLE(table), hsep, 0, 2, 1, 2);
+ gtk_box_pack_start(GTK_BOX(vbox2), hsep, FALSE, FALSE, 0);
+ table = gtk_table_new(2, 2, FALSE);
+ gtk_table_set_row_spacings(GTK_TABLE(table), 5);
+ gtk_table_set_col_spacings(GTK_TABLE(table), 5);
label = gtk_label_new(_("Expensive string 1"));
- gtk_table_attach(GTK_TABLE(table), label, 0, 1, 2, 3,
+ gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1,
GTK_SHRINK, GTK_SHRINK, 0, 0);
entry = NewConfigEntry("Drugs.ExpensiveStr1");
- gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 2, 3);
+ gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 0, 1);
label = gtk_label_new(_("Expensive string 2"));
- gtk_table_attach(GTK_TABLE(table), label, 0, 1, 3, 4,
+ gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2,
GTK_SHRINK, GTK_SHRINK, 0, 0);
entry = NewConfigEntry("Drugs.ExpensiveStr2");
- gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 3, 4);
+ gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 1, 2);
+ gtk_box_pack_start(GTK_BOX(vbox2), table, FALSE, FALSE, 0);
label = gtk_label_new(_("Drugs"));
- gtk_notebook_append_page(GTK_NOTEBOOK(notebook), table, label);
+ gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox2, label);
hbox = CreateList("Gun", gunmembers);
gtk_container_set_border_width(GTK_CONTAINER(hbox), 7);