Updating branch refs/heads/master
to c3a8627cc04b75b81f68e13176480183ed483715 (commit)
from c6625faef9122e9a4567eba5346949ba038c7ffe (commit)
commit c3a8627cc04b75b81f68e13176480183ed483715
Author: Mike Massonnet <[email protected]>
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);
}
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits