tPack the URL widget in an hbox so that it doesn't stretch to fill the whole wi… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit fe3b37415dbe09d99dc6e4c119e83ef9ac2ee1c0 | |
parent faee18e474f691a1d193d180da899b8c486d69e4 | |
Author: Ben Webb <[email protected]> | |
Date: Fri, 15 Feb 2002 17:24:19 +0000 | |
Pack the URL widget in an hbox so that it doesn't stretch to fill the whole | |
window | |
Diffstat: | |
M src/gtk_client.c | 18 ++++++++++++++---- | |
1 file changed, 14 insertions(+), 4 deletions(-) | |
--- | |
diff --git a/src/gtk_client.c b/src/gtk_client.c | |
t@@ -1926,7 +1926,7 @@ char GtkLoop(int *argc,char **argv[],gboolean ReturnOnFa… | |
} | |
void display_intro(GtkWidget *widget,gpointer data) { | |
- GtkWidget *dialog,*label,*table,*OKButton,*vbox,*hsep; | |
+ GtkWidget *dialog, *label, *table, *OKButton, *vbox, *hbox, *hsep; | |
gchar *VersionStr; | |
const int rows=6,cols=3; | |
int i,j; | |
t@@ -1989,9 +1989,19 @@ _("\nFor information on the command line options, type … | |
"options.\n")); | |
gtk_box_pack_start(GTK_BOX(vbox),label,FALSE,FALSE,0); | |
- label=gtk_url_new("http://dopewars.sourceforge.net/", | |
- "http://dopewars.sourceforge.net/"); | |
- gtk_box_pack_start(GTK_BOX(vbox),label,FALSE,FALSE,0); | |
+ /* There must surely be a nicer way of making the URL | |
+ * centred - but I can't think of one... | |
+ */ | |
+ hbox = gtk_hbox_new(FALSE, 0); | |
+ label = gtk_label_new(""); | |
+ gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, FALSE, 0); | |
+ label = gtk_url_new("http://dopewars.sourceforge.net/", | |
+ "http://dopewars.sourceforge.net/", | |
+ WebBrowser); | |
+ gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); | |
+ label = gtk_label_new(""); | |
+ gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, FALSE, 0); | |
+ gtk_box_pack_start(GTK_BOX(vbox),hbox,FALSE,FALSE,0); | |
hsep=gtk_hseparator_new(); | |
gtk_box_pack_start(GTK_BOX(vbox),hsep,FALSE,FALSE,0); |