mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
filechoosernativeportal: Stop using an invisible
A label works just as well here, it turns out.
This commit is contained in:
parent
721e598e99
commit
aad44999f3
@ -39,7 +39,6 @@
|
|||||||
#include "gtkheaderbar.h"
|
#include "gtkheaderbar.h"
|
||||||
#include "gtklabel.h"
|
#include "gtklabel.h"
|
||||||
#include "gtkmain.h"
|
#include "gtkmain.h"
|
||||||
#include "gtkinvisible.h"
|
|
||||||
#include "gtkfilechooserentry.h"
|
#include "gtkfilechooserentry.h"
|
||||||
#include "gtkfilefilterprivate.h"
|
#include "gtkfilefilterprivate.h"
|
||||||
#include "gtkwindowprivate.h"
|
#include "gtkwindowprivate.h"
|
||||||
@ -391,9 +390,7 @@ window_handle_exported (GtkWindow *window,
|
|||||||
|
|
||||||
if (data->modal)
|
if (data->modal)
|
||||||
{
|
{
|
||||||
GdkDisplay *display = gtk_widget_get_display (GTK_WIDGET (window));
|
data->grab_widget = gtk_label_new ("");
|
||||||
|
|
||||||
data->grab_widget = gtk_invisible_new_for_display (display);
|
|
||||||
gtk_grab_add (GTK_WIDGET (data->grab_widget));
|
gtk_grab_add (GTK_WIDGET (data->grab_widget));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user