[gnome-photos] view: Set the active object when "item-activated" is emitted



commit ac239dc434eb19df703e4325c704d8438c6178d7
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Jul 28 16:28:24 2012 +0200

    view: Set the active object when "item-activated" is emitted

 src/photos-view.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-view.c b/src/photos-view.c
index e1653e5..a678ee5 100644
--- a/src/photos-view.c
+++ b/src/photos-view.c
@@ -43,7 +43,8 @@ G_DEFINE_TYPE (PhotosView, photos_view, GD_TYPE_MAIN_VIEW);
 static void
 photos_view_item_activated (GdMainView *main_view, const gchar * id, const GtkTreePath *path, gpointer user_data)
 {
-  /* TODO: DocumentManager */
+  PhotosView *self = PHOTOS_VIEW (main_view);
+  photos_base_manager_set_active_object_by_id (self->priv->item_mngr, id);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]