diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-01-21 04:15:57 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-21 04:15:57 +0100 |
commit | 52d5bb9f398df3c7760006083c6969f3194c3e84 (patch) | |
tree | 025bdd577a819bdaa2b9dfe4ab1b2e24312cc089 /eel | |
parent | e810ad1a06fecc9188951b348b0ea736dbafaa4e (diff) | |
download | caja-52d5bb9f398df3c7760006083c6969f3194c3e84.tar.bz2 caja-52d5bb9f398df3c7760006083c6969f3194c3e84.tar.xz |
editable-labels: don't use deprecated gdk_cursor_new ()
Diffstat (limited to 'eel')
-rw-r--r-- | eel/eel-editable-label.c | 4 |
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 | |