summaryrefslogtreecommitdiff
path: root/mate-dictionary/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-08-07 11:10:10 +0200
committerraveit65 <[email protected]>2016-09-01 08:21:46 +0200
commit7d859a9e17f0c4f0b790e8b2a3d8ac25481d7fe6 (patch)
tree4a025beb91143d2a41863861b79083cde1a20a63 /mate-dictionary/src
parent8819ce43d5dcdfd102fd63f7a5ae7713a9e25b04 (diff)
downloadmate-utils-7d859a9e17f0c4f0b790e8b2a3d8ac25481d7fe6.tar.bz2
mate-utils-7d859a9e17f0c4f0b790e8b2a3d8ac25481d7fe6.tar.xz
avoid deprecated gdk_cursor_new ()
Diffstat (limited to 'mate-dictionary/src')
-rw-r--r--mate-dictionary/src/gdict-window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mate-dictionary/src/gdict-window.c b/mate-dictionary/src/gdict-window.c
index cec563f6..3c716080 100644
--- a/mate-dictionary/src/gdict-window.c
+++ b/mate-dictionary/src/gdict-window.c
@@ -316,13 +316,16 @@ static void
gdict_window_lookup_start_cb (GdictContext *context,
GdictWindow *window)
{
+ GdkDisplay *display;
gchar *message;
+ display = gtk_widget_get_display (GTK_WIDGET (window));
+
if (!window->word)
return;
if (!window->busy_cursor)
- window->busy_cursor = gdk_cursor_new (GDK_WATCH);
+ window->busy_cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
message = g_strdup_printf (_("Searching for '%s'..."), window->word);