changeset 1679:1867687f2fcb

libchamplain compatibility fix
author nadvornik
date Sun, 28 Jun 2009 11:55:54 +0000
parents 1e3bbaa772b9
children 025a9139b15d
files src/bar_gps.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/bar_gps.c	Sun Jun 28 09:25:47 2009 +0000
+++ b/src/bar_gps.c	Sun Jun 28 11:55:54 2009 +0000
@@ -693,9 +693,13 @@
 	scrolled = gtk_scrolled_window_new(NULL, NULL);
 	vbox = gtk_vbox_new(FALSE, 0);
 
+#ifdef GTK_CHAMPLAIN_EMBED
 	gpswidget = gtk_champlain_embed_new ();
 	view = gtk_champlain_embed_get_view (GTK_CHAMPLAIN_EMBED (gpswidget));
-
+#else
+	view = champlain_view_new();
+	gpswidget = champlain_view_embed_new(CHAMPLAIN_VIEW(view));
+#endif
 	viewport = gtk_viewport_new(NULL, NULL);
 	
 	gtk_container_add(GTK_CONTAINER(viewport), gpswidget);