[gthumb] implemented "activated" function



commit 869f8f781040836074d2514fa0afc328dcf59add
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Feb 21 22:32:21 2010 +0100

    implemented "activated" function

 gthumb/gth-icon-view.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-icon-view.c b/gthumb/gth-icon-view.c
index 1067f62..d98daa2 100644
--- a/gthumb/gth-icon-view.c
+++ b/gthumb/gth-icon-view.c
@@ -145,9 +145,15 @@ static void
 gth_icon_view_real_activated (GthFileView *base,
 			      int          pos)
 {
-	GthIconView * self;
-	self = GTH_ICON_VIEW (base);
+	GthIconView *self = GTH_ICON_VIEW (base);
+	GtkTreePath *path;
+
 	g_return_if_fail (pos >= 0);
+
+	path = gtk_tree_path_new_from_indices (pos, -1);
+	gtk_icon_view_item_activated (GTK_ICON_VIEW (self), path);
+
+	gtk_tree_path_free (path);
 }
 
 



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