diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-01-15 16:09:47 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-15 16:09:47 +0100 |
commit | 2de22faab6d8918f6d5001edeb3f794cac829710 (patch) | |
tree | b8dd8e221be8d6fdaefc4f5ea7299f0993e4ba87 /eel/eel-editable-label.c | |
parent | 76cad7a49fd7c5876e780bda4823d55a73ed2556 (diff) | |
download | caja-2de22faab6d8918f6d5001edeb3f794cac829710.tar.bz2 caja-2de22faab6d8918f6d5001edeb3f794cac829710.tar.xz |
GTK3 general: don't use gdk_cursor_unref()
taken from:
https://git.gnome.org/browse/nautilus/commit/?id=74a8f78
Diffstat (limited to 'eel/eel-editable-label.c')
-rw-r--r-- | eel/eel-editable-label.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c index 53c68df9..21dfd673 100644 --- a/eel/eel-editable-label.c +++ b/eel/eel-editable-label.c @@ -1926,12 +1926,14 @@ eel_editable_label_realize (GtkWidget *widget) gtk_widget_set_window (widget, window); gdk_window_set_user_data (window, widget); - gdk_cursor_unref (attributes.cursor); - #if GTK_CHECK_VERSION(3,0,0) + g_object_unref (attributes.cursor); + style = gtk_widget_get_style_context (widget); gtk_style_context_set_background (style, gtk_widget_get_window (widget)); #else + gdk_cursor_unref (attributes.cursor); + style = gtk_style_attach (gtk_widget_get_style (widget) , gtk_widget_get_window (widget)); gtk_widget_set_style (widget, style); |