From c0fe14ce08fdaa10556ddc496cc6ace1ec27fd4b Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 9 Aug 2007 19:22:42 +0300 Subject: [PATCH] Add distance label --- src/ui-common.c | 4 +++- src/ui-common.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui-common.c b/src/ui-common.c index 0abb976..8718439 100644 --- a/src/ui-common.c +++ b/src/ui-common.c @@ -865,10 +865,12 @@ void mapper_init(gint argc, gchar ** argv) info_banner.container=gtk_hbox_new(FALSE, 0); info_banner.location=gtk_label_new(""); info_banner.speed=gtk_label_new(""); - gtk_label_set_max_width_chars(info_banner.speed, 16); + info_banner.distance=gtk_label_new(""); + gtk_label_set_max_width_chars(info_banner.speed, 10); gtk_label_set_width_chars(info_banner.speed, 14); gtk_box_pack_start(GTK_BOX(info_banner.container), info_banner.speed, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(info_banner.container), info_banner.location, TRUE, TRUE, 0); + gtk_box_pack_start(GTK_BOX(info_banner.container), info_banner.distance, FALSE, FALSE, 0); mapvbox = gtk_vbox_new(FALSE, 0); diff --git a/src/ui-common.h b/src/ui-common.h index 208f36f..d13fc77 100644 --- a/src/ui-common.h +++ b/src/ui-common.h @@ -199,6 +199,7 @@ struct _info_banner { GtkWidget *container; GtkWidget *location; GtkWidget *speed; + GtkWidget *distance; }; struct _info_banner info_banner; -- 2.39.5