[Xfce4-commits] r29695 - in xfdesktop/trunk: . settings
Brian Tarricone
kelnos at xfce.org
Thu Apr 2 09:02:16 CEST 2009
Author: kelnos
Date: 2009-04-02 07:02:16 +0000 (Thu, 02 Apr 2009)
New Revision: 29695
Modified:
xfdesktop/trunk/NEWS
xfdesktop/trunk/settings/main.c
Log:
auto-select images as they're added to the list (bug 5014)
Modified: xfdesktop/trunk/NEWS
===================================================================
--- xfdesktop/trunk/NEWS 2009-04-02 06:43:49 UTC (rev 29694)
+++ xfdesktop/trunk/NEWS 2009-04-02 07:02:16 UTC (rev 29695)
@@ -10,6 +10,8 @@
default in 'delete single' dialog (bug 5140).
* Reload the desktop when the first image is added to an image
list (bug 5001).
+ * Auto-select new images as they are added to the settings dialog's
+ image list (bug 5014).
Xfce 4.6.0
Modified: xfdesktop/trunk/settings/main.c
===================================================================
--- xfdesktop/trunk/settings/main.c 2009-04-02 06:43:49 UTC (rev 29694)
+++ xfdesktop/trunk/settings/main.c 2009-04-02 07:02:16 UTC (rev 29695)
@@ -855,6 +855,12 @@
COL_FILENAME, filename,
-1);
+ /* auto-select the first one added */
+ if(l == filenames) {
+ GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(panel->image_treeview));
+ gtk_tree_selection_select_iter(sel, &iter);
+ }
+
pdata->iters = g_slist_prepend(pdata->iters, gtk_tree_iter_copy(&iter));
g_free(filename);
More information about the Xfce4-commits
mailing list