diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-05-20 03:31:03 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-28 20:25:16 +0000 |
commit | 948347afa9b5f8da09ec5834c1c69c48c71212d6 (patch) | |
tree | f8537d16bc9db95722c4e4038c2f0a1932581c2f /gtk/gtkprintunixdialog.c | |
parent | 8af89b3380fac2ac29bf79155c18f5c26e74040e (diff) | |
download | gtk+-948347afa9b5f8da09ec5834c1c69c48c71212d6.tar.gz |
Stop using gtk_widget_is_toplevel
Diffstat (limited to 'gtk/gtkprintunixdialog.c')
-rw-r--r-- | gtk/gtkprintunixdialog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c index 4dfd03b03d..c9d695d276 100644 --- a/gtk/gtkprintunixdialog.c +++ b/gtk/gtkprintunixdialog.c @@ -581,10 +581,10 @@ get_toplevel (GtkWidget *widget) GtkWidget *toplevel = NULL; toplevel = gtk_widget_get_toplevel (widget); - if (!gtk_widget_is_toplevel (toplevel)) - return NULL; - else + if (GTK_IS_WINDOW (toplevel)) return GTK_WINDOW (toplevel); + else + return NULL; } static void |