[libchamplain] Update deprecated gdk_cursor method



commit 8b354847fee850b3d3850938c8543c627dab2d66
Author: Nayan Deshmukh <nayan26deshmukh gmail com>
Date:   Wed Mar 30 20:11:43 2016 +0530

    Update deprecated gdk_cursor method
    
    Update the deprecated gdk_cursor_new() method
    with the gdk_cursor_new_for_display() method
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763909

 champlain-gtk/gtk-champlain-embed.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/champlain-gtk/gtk-champlain-embed.c b/champlain-gtk/gtk-champlain-embed.c
index f0fcf96..bb39dd5 100644
--- a/champlain-gtk/gtk-champlain-embed.c
+++ b/champlain-gtk/gtk-champlain-embed.c
@@ -224,6 +224,7 @@ gtk_champlain_embed_init (GtkChamplainEmbed *embed)
 {
   GtkChamplainEmbedPrivate *priv = GET_PRIVATE (embed);
   ClutterActor *stage;
+  GdkDisplay *display;
 
   embed->priv = priv;
 
@@ -246,8 +247,9 @@ gtk_champlain_embed_init (GtkChamplainEmbed *embed)
       G_CALLBACK (mouse_button_cb),
       embed);
   /* Setup cursors */
-  priv->cursor_hand_open = gdk_cursor_new (GDK_HAND1);
-  priv->cursor_hand_closed = gdk_cursor_new (GDK_FLEUR);
+  display = gdk_display_get_default ();
+  priv->cursor_hand_open = gdk_cursor_new_for_display (display, GDK_HAND1);
+  priv->cursor_hand_closed = gdk_cursor_new_for_display (display, GDK_FLEUR);
 
   priv->view = NULL;
   set_view (embed, CHAMPLAIN_VIEW (champlain_view_new ()));


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