[gtk+/bgo141154-filechooser-icon-view: 23/23] Use the correct function to count selected rows



commit e466f089a66eb3d169d32bbae85c01cd69a2d1ce
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Oct 17 14:52:10 2012 -0500

    Use the correct function to count selected rows

 gtk/gtkfilechooserdefault.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index b32a655..8e6c5e0 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -4189,11 +4189,9 @@ file_list_drag_motion_cb (GtkWidget             *widget,
 static void
 check_copy_file_location_sensitivity (GtkFileChooserDefault *impl)
 {
-  GtkTreeSelection *selection;
   gboolean active;
 
-  selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (impl->browse_files_tree_view));
-  if (gtk_tree_selection_count_selected_rows (selection) == 0)
+  if (current_selection_count_selected_rows (impl) == 0)
     active = FALSE;
   else
     active = TRUE;



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