[sugar] [PATCH] Fixing timestamp issue on wnck.Window.activate()
Marco Pesenti Gritti
Wed Jun 4 13:08:42 EDT 2008
- # wnck.Window.activate() expects a timestamp, but we don't
- # always have one, and libwnck will complain if we pass "0",
- # and matchbox doesn't look at the timestamp anyway. So we
- # just always pass "1".
Since you can't be sure of where present() will be called from (an
event or not), I'd rather pass in a timestamp to method.
Same as above, and you are exceeding 80 cols.
home_model = self._model.get_home()
next_activity = home_model.get_next_activity()
Same as above.
+ # This is being called in response to a user generated click,
+ # so I guess gtk.get_current_event_time() is OK here.
+ # See libwnck/test-wnck.c for an example
I think the comment is not necessary.
More information about the Sugar-devel