From 2c20a1007b1cb8450b62b15588b445b2e412a6e3 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 19 Oct 2007 12:48:03 +0300 Subject: [PATCH] Clean GPS info panel, remove old widgets. Move time to top. --- src/gps-panels.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/gps-panels.c b/src/gps-panels.c index 3844e29..9773a35 100644 --- a/src/gps-panels.c +++ b/src/gps-panels.c @@ -33,20 +33,19 @@ static GtkWidget *text_speed; static GtkWidget *text_alt; static GtkWidget *text_dop; static GtkWidget *text_time; -static GtkWidget *sat_panel; static void gps_clear_text_fields(void); GtkWidget * gps_info_panel(void) { -GtkWidget *label, *vbox; +GtkWidget *vbox; vbox = gtk_vbox_new(FALSE, 0); -label = gtk_label_new(" "); -gtk_widget_set_size_request(GTK_WIDGET(label), -1, 10); -gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, TRUE, 0); +text_time = gtk_label_new(NULL); +gtk_widget_set_size_request(GTK_WIDGET(text_time), -1, 30); +gtk_box_pack_start(GTK_BOX(vbox), text_time, FALSE, TRUE, 0); text_lat = gtk_label_new(NULL); gtk_widget_set_size_request(GTK_WIDGET(text_lat), -1, 30); @@ -68,14 +67,6 @@ text_dop = gtk_label_new(NULL); gtk_widget_set_size_request(GTK_WIDGET(text_dop), -1, 30); gtk_box_pack_start(GTK_BOX(vbox), text_dop, FALSE, TRUE, 0); -sat_panel = gtk_drawing_area_new(); -gtk_widget_set_size_request(sat_panel, -1, 100); -gtk_box_pack_start(GTK_BOX(vbox), sat_panel, TRUE, TRUE, 0); - -text_time = gtk_label_new(NULL); -gtk_widget_set_size_request(GTK_WIDGET(text_time), -1, 30); -gtk_box_pack_start(GTK_BOX(vbox), text_time, FALSE, TRUE, 0); - _gps_signal=gtk_gps_new(GTK_GPS_MODE_SKY, &_gps); gtk_widget_set_size_request(_gps_signal, -1, 100); gtk_box_pack_start(GTK_BOX(vbox), _gps_signal, TRUE, TRUE, 0); -- 2.39.5