[file-roller] Revert "window: use gdk_cursor_new_for_display()"



commit 87a1f64415341b3d86e189fd6383e1706767f0c4
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Sep 18 09:37:06 2016 +0200

    Revert "window: use gdk_cursor_new_for_display()"
    
    This reverts commit b36dcb5817003f317dbddbc8870ae901c6e5a192.
    Respect the hard code freeze.

 src/fr-window.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 004cdc5..9552215 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -3887,16 +3887,12 @@ file_motion_notify_callback (GtkWidget *widget,
                                       NULL, NULL, NULL);
 
        if (window->priv->list_hover_path != NULL)
-               cursor = gdk_cursor_new_for_display (gtk_widget_get_display (GTK_WIDGET (window)),
-                                                    GDK_HAND2);
+               cursor = gdk_cursor_new (GDK_HAND2);
        else
                cursor = NULL;
 
        gdk_window_set_cursor (event->window, cursor);
 
-       if (cursor != NULL)
-               g_object_unref (cursor);
-
        /* only redraw if the hover row has changed */
        if (!(last_hover_path == NULL && window->priv->list_hover_path == NULL) &&
            (!(last_hover_path != NULL && window->priv->list_hover_path != NULL) ||


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]