summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--src/gtkext/gtkbinarystrip.c2
-rw-r--r--src/gtkext/gtkgraphdisplay.c2
-rw-r--r--src/gui/panels/glance.c2
4 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 7061552..b17ec71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
17-08-21 Cyrille Bagard <nocbos@gmail.com>
+ * src/gtkext/gtkbinarystrip.c:
+ * src/gtkext/gtkgraphdisplay.c:
+ * src/gui/panels/glance.c:
+ Change cursors using up-to-date GDK functions.
+
+17-08-21 Cyrille Bagard <nocbos@gmail.com>
+
* src/analysis/db/certs.c:
Replace calls to deprecated functions building RSA keys.
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));
}