tThe display of combatants in the Fight dialog now behaves rather more sensibly… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit bbf78e913710efb8fa6baaf791a6c6e0459d6621 | |
parent 44b6cd80642f6513d1aa7ee88f4a20bd07890b93 | |
Author: Ben Webb <[email protected]> | |
Date: Sat, 2 Mar 2002 18:56:06 +0000 | |
The display of combatants in the Fight dialog now behaves rather more | |
sensibly when resized. | |
Diffstat: | |
M src/gui_client/gtk_client.c | 16 ++++++++-------- | |
1 file changed, 8 insertions(+), 8 deletions(-) | |
--- | |
diff --git a/src/gui_client/gtk_client.c b/src/gui_client/gtk_client.c | |
t@@ -820,8 +820,8 @@ static void CreateFightDialog(void) | |
vbox = gtk_vbox_new(FALSE, 7); | |
table = gtk_table_new(2, 4, FALSE); | |
- gtk_table_set_row_spacings(GTK_TABLE(table), 5); | |
- gtk_table_set_col_spacings(GTK_TABLE(table), 5); | |
+ gtk_table_set_row_spacings(GTK_TABLE(table), 7); | |
+ gtk_table_set_col_spacings(GTK_TABLE(table), 10); | |
hsep = gtk_hseparator_new(); | |
gtk_table_attach_defaults(GTK_TABLE(table), hsep, 0, 4, 1, 2); | |
t@@ -957,11 +957,11 @@ static void UpdateCombatant(gchar *DefendName, int Defen… | |
/* Display of the current player's name during combat */ | |
compt->name = gtk_label_new(DefendName[0] ? DefendName : _("You")); | |
- gtk_table_attach_defaults(GTK_TABLE(table), compt->name, 0, 1, | |
- RowIndex, RowIndex + 1); | |
+ gtk_table_attach(GTK_TABLE(table), compt->name, 0, 1, | |
+ RowIndex, RowIndex + 1, GTK_SHRINK, GTK_SHRINK, 0, 0); | |
compt->bitches = gtk_label_new(DefendBitches >= 0 ? BitchText : ""); | |
- gtk_table_attach_defaults(GTK_TABLE(table), compt->bitches, 1, 2, | |
- RowIndex, RowIndex + 1); | |
+ gtk_table_attach(GTK_TABLE(table), compt->bitches, 1, 2, | |
+ RowIndex, RowIndex + 1, GTK_SHRINK, GTK_SHRINK, 0, 0); | |
compt->healthprog = gtk_progress_bar_new(); | |
gtk_progress_bar_set_orientation(GTK_PROGRESS_BAR(compt->healthprog), | |
GTK_PROGRESS_LEFT_TO_RIGHT); | |
t@@ -970,8 +970,8 @@ static void UpdateCombatant(gchar *DefendName, int DefendB… | |
gtk_table_attach_defaults(GTK_TABLE(table), compt->healthprog, 2, 3, | |
RowIndex, RowIndex + 1); | |
compt->healthlabel = gtk_label_new(HealthText); | |
- gtk_table_attach_defaults(GTK_TABLE(table), compt->healthlabel, 3, 4, | |
- RowIndex, RowIndex + 1); | |
+ gtk_table_attach(GTK_TABLE(table), compt->healthlabel, 3, 4, | |
+ RowIndex, RowIndex + 1, GTK_SHRINK, GTK_SHRINK, 0, 0); | |
gtk_widget_show(compt->name); | |
gtk_widget_show(compt->bitches); | |
gtk_widget_show(compt->healthprog); |