Skip to content

Commit

Permalink
libchamplain compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Jun 28, 2009
1 parent cf4208a commit 8bb4841
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bar_gps.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,9 +693,13 @@ GtkWidget *bar_pane_gps_new(const gchar *id, const gchar *title, const gchar *ma
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);
Expand Down

0 comments on commit 8bb4841

Please sign in to comment.