[emerillon/gtk3] search-plugin: make selected marker behave as gtk+ 2.x version.
- From: Andreas Henriksson <ah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [emerillon/gtk3] search-plugin: make selected marker behave as gtk+ 2.x version.
- Date: Fri, 5 Aug 2011 01:30:47 +0000 (UTC)
commit 3bdf8f75ea37fced4cf764025b08d226846d7d54
Author: Andreas Henriksson <andreas fatal se>
Date: Thu Aug 4 22:11:13 2011 +0200
search-plugin: make selected marker behave as gtk+ 2.x version.
All markers for found locations should be visible directly after
search and row activated should highligt the selected location....
Atleast this is what emerillon used to do before.
plugins/search/search.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/plugins/search/search.c b/plugins/search/search.c
index 73281cb..4d7b22b 100644
--- a/plugins/search/search.c
+++ b/plugins/search/search.c
@@ -191,9 +191,7 @@ result_cb (RestProxyCall *call,
champlain_location_set_location (CHAMPLAIN_LOCATION(marker),
flat,
flon);
- clutter_container_add_actor (CLUTTER_CONTAINER (priv->layer),
- CLUTTER_ACTOR (marker));
- clutter_actor_show (CLUTTER_ACTOR (marker));
+ champlain_marker_layer_add_marker (priv->layer, CHAMPLAIN_MARKER(marker));
/* Create the row item */
gtk_list_store_append (GTK_LIST_STORE (priv->model), &iter);
@@ -316,7 +314,8 @@ row_selected_cb (GtkTreeSelection *selection,
if (!marker)
return;
- champlain_marker_layer_add_marker (priv->layer, marker);
+ champlain_marker_layer_unselect_all_markers (priv->layer);
+ champlain_marker_set_selected (marker, TRUE);
g_object_unref (marker);
}
@@ -569,4 +568,4 @@ peas_register_types (PeasObjectModule *module)
peas_object_module_register_extension_type (module,
PEAS_TYPE_ACTIVATABLE,
SEARCH_TYPE_PLUGIN);
-}
\ No newline at end of file
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]