show frame shortly when adding object to clipboard #5098
This commit is contained in:
parent
9ab0ef9e23
commit
357a2b31c9
1
NEWS
1
NEWS
@ -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)
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user