Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/rpms/sugar-toolkit/0032-uy-1242-Batch-Operations-on-Journal-Entries-Copy-Era.patch
blob: a90d6f50ee94dc779ed5cae3f42a96a30b78fa11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 5dbb5faff06b4d4d9c70e05fcc38f39e91ade796 Mon Sep 17 00:00:00 2001
From: Ajay Garg <ajay@activitycentral.com>
Date: Sat, 4 Feb 2012 17:27:39 +0530
Subject: [PATCH 32/33] uy#1242: Batch Operations on Journal Entries (Copy,
 Erase)
Organization: Sugar Labs Foundation

---
 src/sugar/graphics/window.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
 mode change 100644 => 100755 src/sugar/graphics/window.py

diff --git a/src/sugar/graphics/window.py b/src/sugar/graphics/window.py
old mode 100644
new mode 100755
index b269efc..0f5ebf6
--- a/src/sugar/graphics/window.py
+++ b/src/sugar/graphics/window.py
@@ -224,6 +224,11 @@ class Window(gtk.Window):
             else:
                 self.__vbox.reorder_child(alert, 0)
 
+    def add_alert_and_callback(self, alert, callback, data):
+        self.add_alert(alert)
+        if callback is not None:
+            gobject.idle_add(callback, data)
+
     def remove_alert(self, alert):
         if alert in self._alerts:
             self._alerts.remove(alert)
-- 
1.7.4.4