tOptions dialog now displays OK/Cancel in a manner consistent with the rest of … | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 7c626d36f6b8972f7d1297ebdf4ea0a5eb2dc81d | |
parent 31a88101118d81248f3cea1afcb9f21bf5257fbc | |
Author: Ben Webb <[email protected]> | |
Date: Mon, 25 Mar 2002 16:59:59 +0000 | |
Options dialog now displays OK/Cancel in a manner consistent with the rest | |
of dopewars. | |
Diffstat: | |
M src/gui_client/optdialog.c | 10 +++++----- | |
1 file changed, 5 insertions(+), 5 deletions(-) | |
--- | |
diff --git a/src/gui_client/optdialog.c b/src/gui_client/optdialog.c | |
t@@ -667,7 +667,7 @@ static GtkWidget *CreateList(gchar *structname, struct Con… | |
void OptDialog(GtkWidget *widget, gpointer data) | |
{ | |
GtkWidget *dialog, *notebook, *table, *label, *check, *entry; | |
- GtkWidget *hbox, *vbox, *hsep, *button; | |
+ GtkWidget *hbox, *vbox, *hsep, *button, *hbbox; | |
struct ConfigMembers locmembers[] = { | |
{ "Police presence", "PolicePresence" }, | |
t@@ -842,21 +842,21 @@ void OptDialog(GtkWidget *widget, gpointer data) | |
hsep = gtk_hseparator_new(); | |
gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); | |
- hbox = gtk_hbox_new(TRUE, 10); | |
+ hbbox = my_hbbox_new(); | |
button = gtk_button_new_from_stock(GTK_STOCK_OK); | |
gtk_signal_connect(GTK_OBJECT(button), "clicked", | |
GTK_SIGNAL_FUNC(OKCallback), (gpointer)dialog); | |
- gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, TRUE, 0); | |
+ gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); | |
button = gtk_button_new_from_stock(GTK_STOCK_CANCEL); | |
gtk_signal_connect_object(GTK_OBJECT(button), "clicked", | |
GTK_SIGNAL_FUNC(gtk_widget_destroy), | |
(gpointer)dialog); | |
gtk_signal_connect(GTK_OBJECT(dialog), "destroy", | |
GTK_SIGNAL_FUNC(FinishOptDialog), NULL); | |
- gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, TRUE, 0); | |
+ gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); | |
- gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); | |
+ gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); | |
gtk_container_add(GTK_CONTAINER(dialog), vbox); | |