summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2012-10-17 14:52:10 -0500
committerFederico Mena Quintero <federico@gnome.org>2012-10-17 14:52:10 -0500
commite466f089a66eb3d169d32bbae85c01cd69a2d1ce (patch)
treea2fd1cadfd26ac99342bde3863e063494f5f8183
parent9ecd0d7918862f2d84f49bf7e5613957741ceacc (diff)
downloadgtk+-bgo141154-filechooser-icon-view.tar.gz
Use the correct function to count selected rowsbgo141154-filechooser-icon-view
-rw-r--r--gtk/gtkfilechooserdefault.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index b32a6552e3..8e6c5e0753 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;