summaryrefslogtreecommitdiff
path: root/src/gtkext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-08-21 08:15:09 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-08-21 08:15:09 (GMT)
commit62eb3b9716f4d3ecbb7727c7a01c0564129f0111 (patch)
tree400ab0cff527b5dab7c86800792444b038ef5514 /src/gtkext
parent3c5b02bde6754f2db27a8b413739711396690e1c (diff)
Changed cursors using up-to-date GDK functions.
Diffstat (limited to 'src/gtkext')
-rw-r--r--src/gtkext/gtkbinarystrip.c2
-rw-r--r--src/gtkext/gtkgraphdisplay.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gtkext/gtkbinarystrip.c b/src/gtkext/gtkbinarystrip.c
index bc5a6ec..aedeab3 100644
--- a/src/gtkext/gtkbinarystrip.c
+++ b/src/gtkext/gtkbinarystrip.c
@@ -185,7 +185,7 @@ static void gtk_binary_strip_realize(GtkWidget *widget)
GTK_WIDGET_CLASS(gtk_binary_strip_parent_class)->realize(widget);
- cursor = gdk_cursor_new(GDK_HAND1);
+ cursor = gdk_cursor_new_for_display(gdk_display_get_default(), GDK_HAND1);
gdk_window_set_cursor(gtk_widget_get_window(widget), cursor);
g_object_unref(cursor);
diff --git a/src/gtkext/gtkgraphdisplay.c b/src/gtkext/gtkgraphdisplay.c
index ee3853f..1d88e42 100644
--- a/src/gtkext/gtkgraphdisplay.c
+++ b/src/gtkext/gtkgraphdisplay.c
@@ -509,7 +509,7 @@ static gboolean gtk_graph_display_button_press(GtkWidget *widget, GdkEventButton
display->ref_h = gtk_adjustment_get_value(hadj);
display->ref_v = gtk_adjustment_get_value(vadj);
- cursor = gdk_cursor_new(GDK_FLEUR);
+ cursor = gdk_cursor_new_for_display(gdk_display_get_default(), GDK_FLEUR);
gdk_window_set_cursor(gtk_widget_get_window(widget), cursor);
g_object_unref(G_OBJECT(cursor));