summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2019-07-24 13:31:51 +0200
committerCosimo Cecchi <cosimoc@gnome.org>2019-07-24 15:58:14 +0200
commit55d2613bbce30f88575b524a65933af58d756ec8 (patch)
treefbf6171ff39e5c1b6f02fe08290d33eb56ac0bb8
parent5ba08bfadfba3ce6f7455435336d702ff264b2d3 (diff)
downloadgnome-screenshot-55d2613bbce30f88575b524a65933af58d756ec8.tar.gz
dialog: use correct pointer as GtkWidget
Avoids critical warnings.
-rw-r--r--src/screenshot-dialog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screenshot-dialog.c b/src/screenshot-dialog.c
index 9527b77..40e560b 100644
--- a/src/screenshot-dialog.c
+++ b/src/screenshot-dialog.c
@@ -318,7 +318,7 @@ screenshot_dialog_set_busy (ScreenshotDialog *dialog,
g_autoptr(GdkCursor) cursor = NULL;
GdkDisplay *display;
/* Change cursor to busy */
- display = gtk_widget_get_display (GTK_WIDGET (dialog));
+ display = gtk_widget_get_display (GTK_WIDGET (dialog->dialog));
cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
gdk_window_set_cursor (window, cursor);
}