[emerillon/gtk3: 4/5] Removed no longer existing champlain properties/signals
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [emerillon/gtk3: 4/5] Removed no longer existing champlain properties/signals
- Date: Sat, 25 Jun 2011 12:39:28 +0000 (UTC)
commit 8156ec0a2789aa199b8e3adf33098d7fce09675c
Author: Johannes Schmid <jhs gnome org>
Date: Sat Jun 25 14:27:37 2011 +0200
Removed no longer existing champlain properties/signals
emerillon/window.c | 3 --
plugins/search/search.c | 48 -----------------------------------------------
2 files changed, 0 insertions(+), 51 deletions(-)
---
diff --git a/emerillon/window.c b/emerillon/window.c
index f758e6e..a39a128 100644
--- a/emerillon/window.c
+++ b/emerillon/window.c
@@ -895,9 +895,6 @@ build_ui (EmerillonWindow *self)
G_CALLBACK (state_changed_cb), self);
g_object_set (self->priv->view, "zoom-level", 1,
"kinetic-mode", TRUE,
-#if CHAMPLAIN_CHECK_VERSION (0, 4, 3)
- "show-scale", TRUE,
-#endif
NULL);
champlain_view_center_on (self->priv->view, 40, 0);
diff --git a/plugins/search/search.c b/plugins/search/search.c
index f16b75b..850820c 100644
--- a/plugins/search/search.c
+++ b/plugins/search/search.c
@@ -294,47 +294,6 @@ search_icon_activate_cb (GtkEntry *entry,
search_address (plugin);
}
-#if CHAMPLAIN_CHECK_VERSION(0, 4, 1)
-static void
-marker_selected_cb (ChamplainMarkerLayer *layer,
- SearchPlugin *plugin)
-{
- GtkTreeIter iter;
- ChamplainMarker *selected;
- GtkTreeSelection *selection;
- SearchPluginPrivate *priv = SEARCH_PLUGIN (plugin)->priv;
-
- selected = champlain_marker_layer_get_selected (layer);
-
- if (!selected)
- return;
-
- if (!gtk_tree_model_get_iter_first (priv->model, &iter))
- return;
-
- selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->treeview));
-
- do
- {
- ChamplainMarker *marker;
- gtk_tree_model_get (priv->model, &iter, COL_MARKER, &marker, -1);
-
- if (!marker)
- continue;
-
- if (marker == selected)
- {
- gtk_tree_selection_select_iter (selection, &iter);
- g_object_unref (marker);
- return;
- }
-
- g_object_unref (marker);
- }
- while (gtk_tree_model_iter_next (priv->model, &iter));
-}
-#endif
-
static void
row_selected_cb (GtkTreeSelection *selection,
SearchPlugin *plugin)
@@ -525,13 +484,6 @@ activated (EthosPlugin *plugin)
champlain_view_add_layer (priv->map_view,
CHAMPLAIN_LAYER(priv->layer));
-#if CHAMPLAIN_CHECK_VERSION(0, 4, 1)
- g_signal_connect (priv->layer,
- "changed",
- G_CALLBACK (marker_selected_cb),
- plugin);
-#endif
-
clutter_actor_show (CLUTTER_ACTOR (priv->layer));
g_object_unref (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]