Fixed Star Browser to use all modes.

pull/3/head
Pat Suwalski 2004-03-18 04:55:54 +00:00
parent 040799bfcb
commit 127cd2c930
1 changed files with 6 additions and 5 deletions

View File

@ -1581,10 +1581,11 @@ static const char * const cstitles[]=
"Type" "Type"
}; };
static const char * const radioLabels[]= static const char * const starBrowserLabels[]=
{ {
"Nearest", "Nearest",
"Brightest", "Brightest (App.)",
"Brightest (Abs.)",
"With Planets", "With Planets",
NULL NULL
}; };
@ -2006,7 +2007,7 @@ static void menuStarBrowser()
gtk_container_add(GTK_CONTAINER(frame), hbox); gtk_container_add(GTK_CONTAINER(frame), hbox);
// List viewing preference settings // List viewing preference settings
GtkWidget *vbox = gtk_vbox_new(FALSE, CELSPACING); GtkWidget *vbox = gtk_vbox_new(FALSE, 0);
GtkWidget *hbox2 = gtk_hbox_new(FALSE, CELSPACING); GtkWidget *hbox2 = gtk_hbox_new(FALSE, CELSPACING);
GtkWidget *label = gtk_label_new("Maximum Stars Displayed in List"); GtkWidget *label = gtk_label_new("Maximum Stars Displayed in List");
gtk_box_pack_start(GTK_BOX(hbox2), label, TRUE, FALSE, 0); gtk_box_pack_start(GTK_BOX(hbox2), label, TRUE, FALSE, 0);
@ -2032,8 +2033,8 @@ static void menuStarBrowser()
} }
// Radio Buttons // Radio Buttons
vbox = gtk_vbox_new(TRUE, CELSPACING); vbox = gtk_vbox_new(TRUE, 0);
makeRadioItems(radioLabels, vbox, GTK_SIGNAL_FUNC(radioClicked), NULL, NULL); makeRadioItems(starBrowserLabels, vbox, GTK_SIGNAL_FUNC(radioClicked), NULL, NULL);
gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 0);
// Common Buttons // Common Buttons