Example #1
0
	def activate(self, leaf):
		clip = gtk.clipboard_get(gtk.gdk.SELECTION_CLIPBOARD)
		interface.copy_to_clipboard(leaf, clip)
		xte_paste_argv = ['xte', 'usleep 300000', 'keydown Control_L',
		                  'key v', 'keyup Control_L']
		if not utils.spawn_async(xte_paste_argv):
			raise CommandMissingError('xte')
Example #2
0
	def activate(self, leaf):
		clip = gtk.clipboard_get(gtk.gdk.SELECTION_CLIPBOARD)
		interface.copy_to_clipboard(leaf, clip)
		xte_paste_argv = ['xte', INIT_DELAY, 'keydown Control_L',
		                  'key v', 'keyup Control_L']
		try:
			utils.spawn_async_raise(xte_paste_argv)
		except utils.SpawnError as exc:
			raise OperationError(exc)
Example #3
0
 def activate(self, leaf):
     clip = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
     interface.copy_to_clipboard(leaf, clip)
     xte_paste_argv = ['xte', INIT_DELAY, 'keydown Control_L',
                       'key v', 'keyup Control_L']
     try:
         utils.spawn_async_raise(xte_paste_argv)
     except utils.SpawnError as exc:
         raise OperationError(exc)
Example #4
0
	def _entry_copy_clipboard(self, entry):
		# Copy current selection to clipboard
		# delegate to text entry when in text mode

		if self.get_in_text_mode():
			return False
		selection = self.current.get_current()
		if selection is None:
			return False
		clip = gtk.clipboard_get(gtk.gdk.SELECTION_CLIPBOARD)
		return interface.copy_to_clipboard(selection, clip)
Example #5
0
	def activate(self, leaf):
		clip = gtk.clipboard_get(gtk.gdk.SELECTION_CLIPBOARD)
		interface.copy_to_clipboard(leaf, clip)
Example #6
0
 def activate(self, leaf, ctx):
     clip = gtk.Clipboard(
         selection=gtk.gdk.SELECTION_CLIPBOARD,
         display=ctx.environment.get_screen().get_display())
     interface.copy_to_clipboard(leaf, clip)
Example #7
0
 def activate(self, leaf, ctx):
     clip = gtk.Clipboard(selection=gtk.gdk.SELECTION_CLIPBOARD,
                          display=ctx.environment.get_screen().get_display())
     interface.copy_to_clipboard(leaf, clip)
Example #8
0
 def activate(self, leaf, ctx):
     clip = Gtk.Clipboard.get_for_display(
         ctx.environment.get_screen().get_display(),
         Gdk.SELECTION_CLIPBOARD)
     interface.copy_to_clipboard(leaf, clip)