diff options
author | Ajay Garg <ajay@activitycentral.com> | 2012-08-17 17:09:31 (GMT) |
---|---|---|
committer | Ajay Garg <ajay@activitycentral.com> | 2012-08-17 17:09:31 (GMT) |
commit | 5359946bce5eb75dfaf73f7c76f323d4176c2ab3 (patch) | |
tree | b2b6b6ce572b7eddcb00fe0e54661c124e2c18a2 | |
parent | b85c358523a7bc31af6c42d1203beb09887c9531 (diff) |
Multi-Select: Fixing the bug ==> Click a checkbox to switch too batch-mode;
click Batch-"Copy" button, BUT DO NOT SELECT ANY OF Journal/Documents/Mounted-Drives.
Then, checking/unchecking any of the checkboxes does not update the message info
Selected <x> of <y>".
-rw-r--r-- | rpms/sugar/0129-Multi-Select-Fixing-the-bug-Click-a-checkbox-to-swit.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/rpms/sugar/0129-Multi-Select-Fixing-the-bug-Click-a-checkbox-to-swit.patch b/rpms/sugar/0129-Multi-Select-Fixing-the-bug-Click-a-checkbox-to-swit.patch new file mode 100644 index 0000000..4a3104d --- /dev/null +++ b/rpms/sugar/0129-Multi-Select-Fixing-the-bug-Click-a-checkbox-to-swit.patch @@ -0,0 +1,47 @@ +From b8e91b839c80587f288c097641543f44741e7a9c Mon Sep 17 00:00:00 2001 +From: Ajay Garg <ajay@activitycentral.com> +Date: Fri, 17 Aug 2012 22:16:26 +0530 +Subject: [sugar PATCH] Multi-Select: Fixing the bug ==> Click a checkbox to switch + too batch-mode; click Batch-"Copy" button, BUT DO NOT + SELECT ANY OF Journal/Documents/Mounted-Drives. Then, + checking/unchecking any of the checkboxes does not update + the message info "Selected <x> of <y>". +Organization: Sugar Labs Foundation +Signed-off-by: Ajay Garg <ajay@activitycentral.com> +--- + + + src/jarabe/journal/palettes.py | 10 ++++++++-- + 1 files changed, 8 insertions(+), 2 deletions(-) + +diff --git a/src/jarabe/journal/palettes.py b/src/jarabe/journal/palettes.py +index 9434833..66dcadc 100644 +--- a/src/jarabe/journal/palettes.py ++++ b/src/jarabe/journal/palettes.py +@@ -270,6 +270,8 @@ class ActionItem(gobject.GObject): + self._batch_mode = batch_mode + self._auto_deselect_source_entries = \ + auto_deselect_source_entries ++ self._need_to_popup_options = \ ++ need_to_popup_options + self._operate_on_deselected_entries = \ + operate_on_deselected_entries + self._show_not_completed_ops_info = \ +@@ -402,8 +404,12 @@ class ActionItem(gobject.GObject): + (len(self._metadata_list) == 0) + + def _set_current_action_item_widget(self): +- global _current_action_item +- _current_action_item = self ++ """ ++ Only set this, if this widget achieves some effective action. ++ """ ++ if not self._need_to_popup_options: ++ global _current_action_item ++ _current_action_item = self + + def _pre_operate_per_action(self, obj, response_id): + """ +-- +1.7.4.4 + |