From 58a2ae397a51c41ec192ca592446a394e7511976 Mon Sep 17 00:00:00 2001 From: Ajay Garg Date: Thu, 20 Dec 2012 17:09:34 +0000 Subject: sdxo#2813: patch file for sugar-update-control. --- (limited to '0006-sdxo-2813-When-cancel-button-is-pressed-exit-the-sec.patch') diff --git a/0006-sdxo-2813-When-cancel-button-is-pressed-exit-the-sec.patch b/0006-sdxo-2813-When-cancel-button-is-pressed-exit-the-sec.patch new file mode 100644 index 0000000..45a80ae --- /dev/null +++ b/0006-sdxo-2813-When-cancel-button-is-pressed-exit-the-sec.patch @@ -0,0 +1,33 @@ +From d2295abdda5835beaa2d1a0b881fea78afc8e56f Mon Sep 17 00:00:00 2001 +From: Ajay Garg +Date: Thu, 20 Dec 2012 15:07:29 +0530 +Subject: [PATCH] sdxo#2813: When "cancel" button is pressed, exit the + section-view, because anyways, the reloading logic doesn't + work fine. +Organization: Sugar Labs Foundation +Signed-off-by: Ajay Garg +--- + src/view.py | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +diff --git a/src/view.py b/src/view.py +index 45df197..18c1aa0 100755 +--- a/src/view.py ++++ b/src/view.py +@@ -586,9 +586,10 @@ class ActivityUpdater(SectionView): + Thread(target=do_download).start() + + def cancel_cb(self, widget, event, data=None): +- """Callback when the cancel button is clicked.""" +- self.progress_pane.cancelling() +- self._cancel_func() ++ """Callback when the cancel button is clicked. ++ Do the same thing that you would have done had you exited the ++ section-view""" ++ get_control_panel()._section_toolbar.accept_button.emit('clicked') + + def refresh_cb(self, widget, event, clear_cache=True): + """Invoked when the 'refresh' button is clicked.""" +-- +1.7.11.7 + -- cgit v0.9.1