tThe sound name column is now auto-sized so that the longer sound names are ful… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 824fdbb71f4970bc6f0ae1df82aaec375d0e1692 | |
parent 735b2bb32d3ab493d1c802717a6b94aea606084f | |
Author: Ben Webb <[email protected]> | |
Date: Sat, 5 Oct 2002 19:51:27 +0000 | |
The sound name column is now auto-sized so that the longer sound names are | |
fully visible. | |
Diffstat: | |
M src/gui_client/optdialog.c | 4 ++++ | |
1 file changed, 4 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/src/gui_client/optdialog.c b/src/gui_client/optdialog.c | |
t@@ -723,6 +723,7 @@ void OptDialog(GtkWidget *widget, gpointer data) | |
GtkWidget *scrollwin; | |
GtkAccelGroup *accel_group; | |
gchar *sound_titles[2]; | |
+ int width; | |
struct ConfigMembers locmembers[] = { | |
{ N_("Police presence"), "PolicePresence" }, | |
t@@ -1009,4 +1010,7 @@ void OptDialog(GtkWidget *widget, gpointer data) | |
gtk_container_add(GTK_CONTAINER(dialog), vbox); | |
gtk_widget_show_all(dialog); | |
+ | |
+ width = gtk_clist_optimal_column_width(GTK_CLIST(clist), 0); | |
+ gtk_clist_set_column_width(GTK_CLIST(clist), 0, width); | |
} |