[Xfce4-commits] <xfce4-clipman-plugin:master> Set empty text on the clipboard when clearing history
Mike Massonnet
noreply at xfce.org
Wed Feb 5 20:34:01 CET 2014
Updating branch refs/heads/master
to c3a8627cc04b75b81f68e13176480183ed483715 (commit)
from c6625faef9122e9a4567eba5346949ba038c7ffe (commit)
commit c3a8627cc04b75b81f68e13176480183ed483715
Author: Mike Massonnet <mmassonnet at xfce.org>
Date: Wed Feb 5 20:25:46 2014 +0100
Set empty text on the clipboard when clearing history
Call gtk_clipboard_text with an empty string before calling
gtk_clipboard_clear. gtk_clipboard_clear must only be called after
owning the clipboard.
panel-plugin/menu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/panel-plugin/menu.c b/panel-plugin/menu.c
index a1af28b..64405da 100644
--- a/panel-plugin/menu.c
+++ b/panel-plugin/menu.c
@@ -261,9 +261,11 @@ cb_clear_history (ClipmanMenu *menu)
clipman_history_clear (menu->priv->history);
clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
+ gtk_clipboard_set_text (clipboard, "", 1);
gtk_clipboard_clear (clipboard);
clipboard = gtk_clipboard_get (GDK_SELECTION_PRIMARY);
+ gtk_clipboard_set_text (clipboard, "", 1);
gtk_clipboard_clear (clipboard);
}
More information about the Xfce4-commits
mailing list