diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-08-21 08:15:09 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-08-21 08:15:09 (GMT) |
commit | 62eb3b9716f4d3ecbb7727c7a01c0564129f0111 (patch) | |
tree | 400ab0cff527b5dab7c86800792444b038ef5514 /src | |
parent | 3c5b02bde6754f2db27a8b413739711396690e1c (diff) |
Changed cursors using up-to-date GDK functions.
Diffstat (limited to 'src')
-rw-r--r-- | src/gtkext/gtkbinarystrip.c | 2 | ||||
-rw-r--r-- | src/gtkext/gtkgraphdisplay.c | 2 | ||||
-rw-r--r-- | src/gui/panels/glance.c | 2 |
3 files changed, 3 insertions, 3 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)); diff --git a/src/gui/panels/glance.c b/src/gui/panels/glance.c index 519bc33..27d3b46 100644 --- a/src/gui/panels/glance.c +++ b/src/gui/panels/glance.c @@ -726,7 +726,7 @@ static gboolean on_button_press_over_glance(GtkWidget *widget, GdkEventButton *e if (panel->valid) { - 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)); } |