gps->display_mode=display_mode;
gps->data=data;
widget=GTK_WIDGET(gps);
-g_signal_connect(G_OBJECT(widget), "button_press_event", G_CALLBACK(gtk_gps_cb_button_press), NULL);
+
+/* Allow switching if mode is combined */
+if (display_mode==GTK_GPS_MODE_COMBINED) {
+ g_signal_connect(G_OBJECT(widget), "button_press_event", G_CALLBACK(gtk_gps_cb_button_press), NULL);
+ display_mode=GTK_GPS_MODE_SKY;
+}
gps->context=gtk_widget_get_pango_context(widget);
gps->layout=pango_layout_new(gps->context);