mapper_ui_init(void)
{
GtkWidget *hbox, *mapvbox, *label, *vbox_main;
-GtkWidget *gpsvbox;
+GtkWidget *gpsvbox, *headingvbox;
GtkNotebook *notebook;
GdkColor color;
GError *error = NULL;
gtk_notebook_append_page(notebook, mapvbox, label);
gtk_widget_show_all(GTK_WIDGET(mapvbox));
+/* GPS Tab */
gpsvbox = gtk_vbox_new(FALSE, 0);
label = gtk_label_new("Gps");
_gps_sat_view = gtk_gps_new(GTK_GPS_MODE_SKY, &_gps);
gtk_notebook_append_page(notebook, gpsvbox, label);
gtk_widget_show_all(GTK_WIDGET(gpsvbox));
+/* Heading */
+headingvbox = gtk_vbox_new(FALSE, 0);
+label = gtk_label_new("Heading");
+_tab_compass = gtk_compass_new(&_gps);
+gtk_box_pack_start(GTK_BOX(headingvbox), _tab_compass, TRUE, TRUE, 0);
+gtk_notebook_append_page(notebook, headingvbox, label);
+gtk_widget_show_all(GTK_WIDGET(headingvbox));
+
_gps_widget = gps_info_panel();
gtk_widget_set_size_request(GTK_WIDGET(_gps_widget), 180, 0);
gtk_paned_add1(GTK_PANED(hbox), _gps_widget);
GtkWidget *_gps_widget;
-/* GPS Panel View widget */
+/* GPS Tab widget */
GtkWidget *_gps_sat_view;
-/* Compass panel widget */
+/* Heading Tab widget */
+GtkWidget *_tab_compass;
+
+/* Panel widgets */
GtkWidget *_gps_compass;
GtkWidget *_gps_signal;