[xchat-gnome] fe-gnome: avoid gtk_clipboard_get()
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [xchat-gnome] fe-gnome: avoid gtk_clipboard_get()
- Date: Thu, 29 May 2014 12:03:15 +0000 (UTC)
commit 735236e889162efaa6be4d7a52637d48204d2d55
Author: Ryan Lortie <desrt desrt ca>
Date: Thu May 29 14:00:24 2014 +0200
fe-gnome: avoid gtk_clipboard_get()
This function is not multihead-safe, so use the per-display one instead.
src/fe-gnome/xtext.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/fe-gnome/xtext.c b/src/fe-gnome/xtext.c
index 93b201f..861cd9c 100644
--- a/src/fe-gnome/xtext.c
+++ b/src/fe-gnome/xtext.c
@@ -1588,7 +1588,8 @@ gtk_xtext_set_clip_owner (GtkWidget * xtext, GdkEventButton * event)
str = gtk_xtext_selection_get_text (GTK_XTEXT (xtext), &len);
if (str)
{
- gtk_clipboard_set_text (gtk_clipboard_get (GDK_SELECTION_CLIPBOARD), str, len);
+ gtk_clipboard_set_text (gtk_clipboard_get_for_display (gtk_widget_get_display (xtext),
+ GDK_SELECTION_CLIPBOARD), str, len);
free (str);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]