Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/wm.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-06-01 19:21:30 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-06-01 19:21:30 (GMT)
commit2b7ffe41d9e8160c7bda506efe9ad35971d599df (patch)
tree3b35d81db14c94327c30a32abbe8a614a56f8c17 /sugar/wm.py
parent5cc9a8c42437376ccef2fbe578a637f8ab3396b5 (diff)
Make bundle_id and activity_id window properties to
avoid races.
Diffstat (limited to 'sugar/wm.py')
-rw-r--r--sugar/wm.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/sugar/wm.py b/sugar/wm.py
index f5505c3..6610889 100644
--- a/sugar/wm.py
+++ b/sugar/wm.py
@@ -19,13 +19,13 @@ import gtk
import _sugarext
-def get_activity_id(wnck_window)
- window = gtk.gdk.window_foreign_new(window.get_xid())
+def get_activity_id(wnck_window):
+ window = gtk.gdk.window_foreign_new(wnck_window.get_xid())
return _sugarext.x11_get_string_property(
window, '_SUGAR_ACTIVITY_ID')
-def get_bundle_id(wnck_window, prop):
- window = gtk.gdk.window_foreign_new(window.get_xid())
+def get_bundle_id(wnck_window):
+ window = gtk.gdk.window_foreign_new(wnck_window.get_xid())
return _sugarext.x11_get_string_property(
window, '_SUGAR_BUNDLE_ID')
@@ -35,4 +35,4 @@ def set_activity_id(window, activity_id):
def set_bundle_id(window, bundle_id):
_sugarext.x11_set_string_property(
- window, '_SUGAR_BUNDLE_ID', activity_id)
+ window, '_SUGAR_BUNDLE_ID', bundle_id)