Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-09-01 09:54:34 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2009-09-01 09:54:34 (GMT)
commita9748800c72a69fdaa2201461a8ce5bf263af70a (patch)
tree92ac3e5b88fcf186ebe9022f60f46bcb87da98b5 /src
parenta73de30dd3f0ebf2d60297ddb0ed5f7c1269d713 (diff)
Trap X errors when calling property_get #571
Diffstat (limited to 'src')
-rw-r--r--src/jarabe/model/shell.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/jarabe/model/shell.py b/src/jarabe/model/shell.py
index 7f86c2f..d967e53 100644
--- a/src/jarabe/model/shell.py
+++ b/src/jarabe/model/shell.py
@@ -35,14 +35,6 @@ _SERVICE_NAME = "org.laptop.Activity"
_SERVICE_PATH = "/org/laptop/Activity"
_SERVICE_INTERFACE = "org.laptop.Activity"
-def get_sugar_window_type(wnck_window):
- window = gtk.gdk.window_foreign_new(wnck_window.get_xid())
- prop_info = window.property_get('_SUGAR_WINDOW_TYPE', 'STRING')
- if prop_info is None:
- return None
- else:
- return prop_info[2]
-
class Activity(gobject.GObject):
"""Activity which appears in the "Home View" of the Sugar shell
@@ -469,7 +461,7 @@ class ShellModel(gobject.GObject):
else:
home_activity.set_window(window)
- if get_sugar_window_type(window) != 'launcher':
+ if wm.get_sugar_window_type(window) != 'launcher':
home_activity.props.launching = False
self.emit('launch-completed', home_activity)