cheese r541 - in trunk: . src
- From: dgsiegel svn gnome org
- To: svn-commits-list gnome org
- Subject: cheese r541 - in trunk: . src
- Date: Sat, 1 Mar 2008 23:37:55 +0000 (GMT)
Author: dgsiegel
Date: Sat Mar 1 23:37:55 2008
New Revision: 541
URL: http://svn.gnome.org/viewvc/cheese?rev=541&view=rev
Log:
select a thumb near the deleted item, fixes bug #505442
Modified:
trunk/ChangeLog
trunk/src/cheese-thumb-view.c
Modified: trunk/src/cheese-thumb-view.c
==============================================================================
--- trunk/src/cheese-thumb-view.c (original)
+++ trunk/src/cheese-thumb-view.c Sat Mar 1 23:37:55 2008
@@ -156,7 +156,13 @@
}
g_free (path);
g_free (filename);
- gtk_list_store_remove (priv->store, &iter);
+ gboolean valid = gtk_list_store_remove (priv->store, &iter);
+ if (valid)
+ {
+ GtkTreePath *tree_path = gtk_tree_model_get_path (GTK_TREE_MODEL (priv->store), &iter);
+ gtk_icon_view_select_path (GTK_ICON_VIEW (thumb_view), tree_path);
+ gtk_tree_path_free(tree_path);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]