[Xfce4-commits] [panel-plugins/xfce4-clipman-plugin] 25/37: Fix paste-on-activate when invoked with keyboard
noreply at xfce.org
noreply at xfce.org
Mon Mar 23 23:30:20 CET 2020
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-clipman-plugin.
commit a6f05a6f93a1e8183123d5fef2ce6163ede513ad
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sat Mar 21 23:52:24 2020 +0100
Fix paste-on-activate when invoked with keyboard
---
panel-plugin/xfce4-clipman-history.c | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/panel-plugin/xfce4-clipman-history.c b/panel-plugin/xfce4-clipman-history.c
index 9b0f3d9..e0d763e 100644
--- a/panel-plugin/xfce4-clipman-history.c
+++ b/panel-plugin/xfce4-clipman-history.c
@@ -273,6 +273,16 @@ clipman_history_settings_cb (void)
}
}
+static gboolean
+clipman_history_paste_on_activate (gpointer user_data)
+{
+ guint paste_on_activate = GPOINTER_TO_UINT (user_data);
+
+ cb_paste_on_activate (paste_on_activate);
+
+ return FALSE;
+}
+
static void
clipman_history_dialog_finalize (MyPlugin *plugin,
GtkWidget *window)
@@ -289,9 +299,9 @@ clipman_history_dialog_finalize (MyPlugin *plugin,
gtk_widget_destroy (plugin->dialog);
if (paste_on_activate > 0)
- {
- cb_paste_on_activate (paste_on_activate);
- }
+ {
+ g_timeout_add (10, G_SOURCE_FUNC (clipman_history_paste_on_activate), GUINT_TO_POINTER (paste_on_activate));
+ }
g_slice_free (MyPlugin, plugin);
xfconf_shutdown ();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list