From 4a2599eb68b953e6f59765a9c9f5569afc0743d3 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Tue, 30 Oct 2007 20:59:44 +0200 Subject: [PATCH] Fix gps panel displaying bug. Show both GPS sky and signal panels. --- src/ui-common.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui-common.c b/src/ui-common.c index 98a2a92..506dc04 100644 --- a/src/ui-common.c +++ b/src/ui-common.c @@ -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); } -- 2.39.5