summaryrefslogtreecommitdiff
path: root/mate-screenshot/src
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-04-27 14:58:50 +0300
committermonsta <[email protected]>2017-04-27 14:58:50 +0300
commit5fa0c1c4ad56a0d28b99b3a8dcebdb6cb0ad2ce0 (patch)
treef5df500926d3df89d6993a9d3b4c51be73ca2c3a /mate-screenshot/src
parentda4378d2a8a6593bc233cca67c5329caecaba129 (diff)
downloadmate-utils-5fa0c1c4ad56a0d28b99b3a8dcebdb6cb0ad2ce0.tar.bz2
mate-utils-5fa0c1c4ad56a0d28b99b3a8dcebdb6cb0ad2ce0.tar.xz
mate-screenshot: fix showing busy cursor when saving area screenshot
invalid cast from plain struct to GtkWidget was causing a heap of runtime warnings when saving area screenshot, and no busy cursor was shown. fallout from 7d859a9e17f0c4f0b790e8b2a3d8ac25481d7fe6...
Diffstat (limited to 'mate-screenshot/src')
-rw-r--r--mate-screenshot/src/screenshot-dialog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mate-screenshot/src/screenshot-dialog.c b/mate-screenshot/src/screenshot-dialog.c
index cb9ffc33..3e120061 100644
--- a/mate-screenshot/src/screenshot-dialog.c
+++ b/mate-screenshot/src/screenshot-dialog.c
@@ -355,7 +355,7 @@ screenshot_dialog_set_busy (ScreenshotDialog *dialog,
GdkDisplay *display;
toplevel = screenshot_dialog_get_toplevel (dialog);
- display = gtk_widget_get_display (GTK_WIDGET (dialog));
+ display = gtk_widget_get_display (toplevel);
if (busy)
{