|
|
eb81ee |
From f34f684103d16520fd22777377c630a947c7de0c Mon Sep 17 00:00:00 2001
|
|
|
eb81ee |
From: David King <dking@redhat.com>
|
|
|
eb81ee |
Date: Wed, 4 May 2016 19:43:52 +0100
|
|
|
eb81ee |
Subject: [PATCH] Fix Add Files dialog button sensitivity
|
|
|
eb81ee |
|
|
|
eb81ee |
When the Add Files dialog has previously been opened and there are
|
|
|
eb81ee |
selected files, the selection is restored for subsequent views of the
|
|
|
eb81ee |
dialog. However, the sensitivity of the Add button is only updated when
|
|
|
eb81ee |
manually selecting a file, as the dialog only updates the sensitivity
|
|
|
eb81ee |
in response to the GtkCellRendererToggle for the selected state being
|
|
|
eb81ee |
changed. When setting a list of selected files on the dialog, as done
|
|
|
eb81ee |
when restoring the list of selected files on subsequent views of the
|
|
|
eb81ee |
dialog, the Add button is only ever set to be insensitive.
|
|
|
eb81ee |
|
|
|
eb81ee |
Fix this by updating the Add button sensitivity after the list of files
|
|
|
eb81ee |
has been loaded.
|
|
|
eb81ee |
|
|
|
eb81ee |
https://bugzilla.gnome.org/show_bug.cgi?id=738177
|
|
|
eb81ee |
---
|
|
|
eb81ee |
src/fr-file-selector-dialog.c | 1 +
|
|
|
eb81ee |
1 file changed, 1 insertion(+)
|
|
|
eb81ee |
|
|
|
eb81ee |
diff --git a/src/fr-file-selector-dialog.c b/src/fr-file-selector-dialog.c
|
|
|
eb81ee |
index 0e87b02..017df88 100644
|
|
|
eb81ee |
--- a/src/fr-file-selector-dialog.c
|
|
|
eb81ee |
+++ b/src/fr-file-selector-dialog.c
|
|
|
eb81ee |
@@ -882,6 +882,7 @@ get_folder_content_done_cb (GError *error,
|
|
|
eb81ee |
|
|
|
eb81ee |
gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (GET_WIDGET ("files_liststore")), sort_column_id, sort_order);
|
|
|
eb81ee |
set_current_folder (self, load_data->folder);
|
|
|
eb81ee |
+ _update_sensitivity (self);
|
|
|
eb81ee |
|
|
|
eb81ee |
if (load_data->dialog->priv->current_operation == load_data)
|
|
|
eb81ee |
load_data->dialog->priv->current_operation = NULL;
|
|
|
eb81ee |
--
|
|
|
eb81ee |
2.8.2
|
|
|
eb81ee |
|