[gthumb] implemented "activated" function
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] implemented "activated" function
- Date: Sun, 21 Feb 2010 21:35:25 +0000 (UTC)
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]