]> err.no Git - mapper/commitdiff
Add distance label
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 9 Aug 2007 16:22:42 +0000 (19:22 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 9 Aug 2007 16:22:42 +0000 (19:22 +0300)
src/ui-common.c
src/ui-common.h

index 0abb97648d93357015cb221cf7b731035ce34c36..871843946320c6f0aee7e7a72f7679f44e4fe276 100644 (file)
@@ -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);
 
index 208f36f0c0545d593072763ef4a7b5af354b97e1..d13fc77054322c7e1186ccbe15b3e4ce658f3c06 100644 (file)
@@ -199,6 +199,7 @@ struct _info_banner {
        GtkWidget *container;
        GtkWidget *location;
        GtkWidget *speed;
+       GtkWidget *distance;
 };
 struct _info_banner info_banner;