diff options
author | piernov <piernov@piernov.org> | 2011-10-27 11:48:50 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2011-10-27 11:48:50 +0200 |
commit | fc9dc454d641252e65be4fb8f5a0b8102f774d1c (patch) | |
tree | 569355f0c7fa2c1d5b6908cca8bb0c94d5ceb17b /gthumb/map_view_libchamplain-0.12.patch | |
parent | b26820eab013edb3a68bc51a2eec925a3c0e7926 (diff) | |
parent | b507be8fd06c55721cb98c0c181eb2fabc65097b (diff) | |
download | gnome3-fc9dc454d641252e65be4fb8f5a0b8102f774d1c.tar.gz gnome3-fc9dc454d641252e65be4fb8f5a0b8102f774d1c.tar.bz2 gnome3-fc9dc454d641252e65be4fb8f5a0b8102f774d1c.tar.xz gnome3-fc9dc454d641252e65be4fb8f5a0b8102f774d1c.zip |
Merge branch 'master' of ssh://kiao.no-ip.info:443/~/gnome3
Diffstat (limited to 'gthumb/map_view_libchamplain-0.12.patch')
-rw-r--r-- | gthumb/map_view_libchamplain-0.12.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/gthumb/map_view_libchamplain-0.12.patch b/gthumb/map_view_libchamplain-0.12.patch new file mode 100644 index 0000000..984b8af --- /dev/null +++ b/gthumb/map_view_libchamplain-0.12.patch @@ -0,0 +1,57 @@ +--- extensions/map_view/gth-map-view.c.old 2011-10-27 01:16:24.357188552 +0200 ++++ extensions/map_view/gth-map-view.c 2011-10-27 01:16:44.981589032 +0200 +@@ -36,11 +36,11 @@ + + + struct _GthMapViewPrivate { +- GtkWidget *no_gps_label; +- GtkWidget *embed; +- ChamplainView *map_view; +- ChamplainLayer *marker_layer; +- ClutterActor *marker; ++ GtkWidget *no_gps_label; ++ GtkWidget *embed; ++ ChamplainView *map_view; ++ ChamplainMarkerLayer *marker_layer; ++ ClutterActor *marker; + }; + + +@@ -177,10 +177,10 @@ + gtk_widget_show (self->priv->embed); + + position = decimal_coordinates_to_string (latitude, longitude); +- champlain_marker_set_text (CHAMPLAIN_MARKER (self->priv->marker), position); ++ champlain_label_set_text (CHAMPLAIN_LABEL (self->priv->marker), position); + g_free (position); + +- champlain_base_marker_set_position (CHAMPLAIN_BASE_MARKER (self->priv->marker), latitude, longitude); ++ champlain_location_set_location (CHAMPLAIN_LOCATION (self->priv->marker), latitude, longitude); + champlain_view_center_on (CHAMPLAIN_VIEW (self->priv->map_view), latitude, longitude); + } + else { +@@ -280,18 +280,17 @@ + self->priv->map_view = gtk_champlain_embed_get_view (GTK_CHAMPLAIN_EMBED (self->priv->embed)); + g_object_set (G_OBJECT (self->priv->map_view), + "reactive", TRUE, +- "scroll-mode", CHAMPLAIN_SCROLL_MODE_KINETIC, + "zoom-level", 5, +- "show-scale", TRUE, ++ "kinetic-mode", TRUE, + NULL); + +- self->priv->marker_layer = champlain_layer_new (); +- champlain_view_add_layer (self->priv->map_view, self->priv->marker_layer); +- champlain_layer_show (self->priv->marker_layer); ++ self->priv->marker_layer = champlain_marker_layer_new (); ++ champlain_view_add_layer (self->priv->map_view, CHAMPLAIN_LAYER (self->priv->marker_layer)); ++ clutter_actor_show (CLUTTER_ACTOR (self->priv->marker_layer)); + +- self->priv->marker = champlain_marker_new_with_text ("", "Sans 10", NULL, NULL); ++ self->priv->marker = champlain_label_new_with_text ("", "Sans 10", NULL, NULL); + clutter_actor_show (self->priv->marker); +- champlain_layer_add_marker (self->priv->marker_layer, CHAMPLAIN_BASE_MARKER (self->priv->marker)); ++ champlain_marker_layer_add_marker (self->priv->marker_layer, CHAMPLAIN_MARKER (self->priv->marker)); + + gtk_widget_show_all (self->priv->embed); + gtk_widget_hide (self->priv->embed); |