summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eel/eel-editable-label.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index f20f67d9..f957fb90 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -1914,6 +1914,7 @@ static void
eel_editable_label_realize (GtkWidget *widget)
{
EelEditableLabel *label;
+ GdkDisplay *display;
GdkWindowAttr attributes;
gint attributes_mask;
GtkAllocation allocation;
@@ -1938,7 +1939,8 @@ eel_editable_label_realize (GtkWidget *widget)
#if !GTK_CHECK_VERSION(3,0,0)
attributes.colormap = gtk_widget_get_colormap (widget);
#endif
- attributes.cursor = gdk_cursor_new (GDK_XTERM);
+ display = gtk_widget_get_display (GTK_WIDGET (label));
+ attributes.cursor = gdk_cursor_new_for_display (display, GDK_XTERM);
attributes.event_mask = gtk_widget_get_events (widget) |
(GDK_EXPOSURE_MASK |
GDK_BUTTON_PRESS_MASK |