Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2008-08-27 21:03:17 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2008-08-27 21:03:17 (GMT)
commita7a8435b4dab72e4d725e96fe4541c485fae7d7f (patch)
tree03a21c8d82f4ae4d439158caf12a5ef8e99e1a26 /src
parent10c8530d4f6c78e9281e367b1deceae450226edb (diff)
Silly errors in the sugar window type handling.
Diffstat (limited to 'src')
-rw-r--r--src/model/homemodel.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/homemodel.py b/src/model/homemodel.py
index 58da5b0..6cd5bda 100644
--- a/src/model/homemodel.py
+++ b/src/model/homemodel.py
@@ -25,8 +25,8 @@ from sugar.activity import get_registry
from model.homeactivity import HomeActivity
-def _get_sugar_window_type(self, window):
- window = gtk.gdk.window_foreign_new(window.get_xid())
+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
@@ -184,7 +184,7 @@ class HomeModel(gobject.GObject):
home_activity.set_window(window)
- if self._get_sugar_window_type(window) != 'launcher':
+ if _get_sugar_window_type(window) != 'launcher':
self.emit('launch-completed', home_activity)
if self._active_activity is None: