show frame shortly when adding object to clipboard #5098

This commit is contained in:
Simon Schampijer 2007-11-24 15:58:53 +01:00
parent 9ab0ef9e23
commit 357a2b31c9
3 changed files with 4 additions and 3 deletions

1
NEWS
View File

@ -1,3 +1,4 @@
* #5089: show frame shortly when adding object to clipboard (erikos)
* #5097: Fix pasting text between activities through the clipboard. (tomeu)
* #4660: Use improved PS API which streamlines ShareActivity process (smcv)

View File

@ -198,7 +198,7 @@ class Shell(gobject.GObject):
new_level = model.props.zoom_level
if new_level == ShellModel.ZOOM_HOME:
self._frame.show(Frame.MODE_HOME)
self._frame.show(Frame.MODE_NON_INTERACTIVE)
if self._zoom_level == ShellModel.ZOOM_HOME:
self._frame.hide()

View File

@ -85,7 +85,7 @@ class _KeyListener(object):
class Frame(object):
MODE_MOUSE = 0
MODE_KEYBOARD = 1
MODE_HOME = 2
MODE_NON_INTERACTIVE = 2
def __init__(self, shell):
self.mode = None
@ -239,7 +239,7 @@ class Frame(object):
def _clipboard_object_added_cb(self, cb_service, object_id, name):
if not self.visible:
self.show()
self.show(self.MODE_NON_INTERACTIVE)
gobject.timeout_add(2000, lambda: self.hide())
def _enter_notify_cb(self, window, event):