From b02b78e70ff6b938c253404e2ca0b1788f7b4df1 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Tue, 26 Feb 2008 19:02:09 +0200 Subject: [PATCH] Add Quick POI tab --- src/ui-common.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/ui-common.c b/src/ui-common.c index e1affdd..140f73a 100644 --- a/src/ui-common.c +++ b/src/ui-common.c @@ -36,13 +36,14 @@ #include "dialogs.h" #include "settings-gui.h" #include "map-repo.h" +#include "poi-gui.h" /* Callbacks */ #include "cb.h" /* Default size */ #define WINDOW_SIZE_X 800 -#define WINDOW_SIZE_Y 600 +#define WINDOW_SIZE_Y 480 static GtkWidget *menu_bar; static GtkWidget *toolbar; @@ -59,9 +60,12 @@ struct ui_notebook_struct { gint heading; gint route; gint track; + gint qpoi; }; struct ui_notebook_struct ui_notebook; +static poi_quick_data tqp; + /* A GPS icon would be nice.. anyone ? */ #ifndef GTK_STOCK_INFO @@ -709,6 +713,13 @@ g_signal_connect(G_OBJECT(route_tree_view), "row-activated", G_CALLBACK(route_wa #endif ui_notebook.route=gtk_notebook_append_page(notebook, vbox, label); +/* Quick POI Tab */ +label=gtk_label_new("Quick POI"); +tqp.fixed=FALSE; +tqp.close=FALSE; +vbox=poi_quick_button_box(&tqp); +ui_notebook.qpoi=gtk_notebook_append_page(notebook, vbox, label); + menu_maps_add_repos(); menu_init_cmenu(); -- 2.39.5