Mercurial > pidgin
diff pidgin/gtkimhtml.c @ 26812:3c06cd0e1717
Avoid overwriting the PRIMARY clipboard when we select-on-focus the status text for easy editing. Fixes #8781.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sun, 03 May 2009 23:49:25 +0000 |
parents | c791a82b5bb5 |
children | 7c58f6f50f16 |
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c Sun May 03 23:46:18 2009 +0000 +++ b/pidgin/gtkimhtml.c Sun May 03 23:49:25 2009 +0000 @@ -5884,3 +5884,16 @@ g_signal_connect(G_OBJECT(imhtml), "message_send", G_CALLBACK(return_add_newline_cb), NULL); } + +void gtk_imhtml_set_populate_primary_clipboard(GtkIMHtml *imhtml, gboolean populate) +{ + if (populate) { + g_signal_handlers_unblock_matched(imhtml->text_buffer, + G_SIGNAL_MATCH_FUNC, 0, 0, NULL, + mark_set_so_update_selection_cb, NULL); + } else { + g_signal_handlers_block_matched(imhtml->text_buffer, + G_SIGNAL_MATCH_FUNC, 0, 0, NULL, + mark_set_so_update_selection_cb, NULL); + } +}