[gnome-flashback] desktop: make sure we show properties for all selected icons



commit 469857e686970cc2c5e32951a226cbb2db756b52
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Nov 17 14:26:54 2019 +0200

    desktop: make sure we show properties for all selected icons

 gnome-flashback/libdesktop/gf-icon.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-flashback/libdesktop/gf-icon.c b/gnome-flashback/libdesktop/gf-icon.c
index bead321..9cd111e 100644
--- a/gnome-flashback/libdesktop/gf-icon.c
+++ b/gnome-flashback/libdesktop/gf-icon.c
@@ -241,7 +241,7 @@ properties_cb (GtkMenuItem *item,
   file = gf_icon_get_file (self);
   uris[0] = g_file_get_uri (file);
 
-  for (l = selected_icons, i = 1; l != NULL; l = l->next, i++)
+  for (l = selected_icons, i = 1; l != NULL; l = l->next)
     {
       GfIcon *icon;
 
@@ -250,7 +250,7 @@ properties_cb (GtkMenuItem *item,
         continue;
 
       file = gf_icon_get_file (icon);
-      uris[i] = g_file_get_uri (file);
+      uris[i++] = g_file_get_uri (file);
     }
 
   gf_icon_view_show_item_properties (priv->icon_view,


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