]> err.no Git - mapper/commitdiff
Fix gps panel displaying bug. Show both GPS sky and signal panels.
authorKaj-Michael Lang <milang@tal.org>
Tue, 30 Oct 2007 18:59:44 +0000 (20:59 +0200)
committerKaj-Michael Lang <milang@tal.org>
Tue, 30 Oct 2007 18:59:44 +0000 (20:59 +0200)
src/ui-common.c

index 98a2a92e62bb98a9064b24aa73f1834473c7d627..506dc04c5a02f0d5afeda5bb7d2254eecce0fa5e 100644 (file)
@@ -787,6 +787,8 @@ vbox = gtk_vbox_new(FALSE, 0);
 label = gtk_label_new("Gps");
 _gps_sat_view = gtk_gps_new(GTK_GPS_MODE_SKY, &_gps);
 gtk_box_pack_start(GTK_BOX(vbox), _gps_sat_view, TRUE, TRUE, 0);
+_gps_sat_view = gtk_gps_new(GTK_GPS_MODE_SIGNAL, &_gps);
+gtk_box_pack_start(GTK_BOX(vbox), _gps_sat_view, TRUE, TRUE, 0);
 ui_notebook.gps=gtk_notebook_append_page(notebook, vbox, label);
 
 /* Heading Tab */
@@ -829,8 +831,6 @@ menu_init_cmenu();
 /* Initialize our line styles. */
 update_gcs();
 
-gps_show_info();
-
 _last_spoken_phrase = g_strdup("");
 memset(&_autoroute_data, 0, sizeof(_autoroute_data));
 
@@ -871,6 +871,8 @@ route_find_nearest_point();
 gtk_widget_show_all(GTK_WIDGET(vbox_main));
 gtk_widget_show_all(GTK_WIDGET(_window));
 
+gps_show_info();
+
 gtk_idle_add((GSourceFunc)window_present, NULL);
 }