[gtk/less-invisible: 2/2] filechoosernativeportal: Stop using an invisible



commit aad44999f306d9f17903f45b11b3e41a4757e24a
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 5 10:44:36 2019 -0500

    filechoosernativeportal: Stop using an invisible
    
    A label works just as well here, it turns out.

 gtk/gtkfilechoosernativeportal.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/gtk/gtkfilechoosernativeportal.c b/gtk/gtkfilechoosernativeportal.c
index e658d70fcd..3fa5145f7c 100644
--- a/gtk/gtkfilechoosernativeportal.c
+++ b/gtk/gtkfilechoosernativeportal.c
@@ -39,7 +39,6 @@
 #include "gtkheaderbar.h"
 #include "gtklabel.h"
 #include "gtkmain.h"
-#include "gtkinvisible.h"
 #include "gtkfilechooserentry.h"
 #include "gtkfilefilterprivate.h"
 #include "gtkwindowprivate.h"
@@ -391,9 +390,7 @@ window_handle_exported (GtkWindow  *window,
 
   if (data->modal)
     {
-      GdkDisplay *display = gtk_widget_get_display (GTK_WIDGET (window));
-
-      data->grab_widget = gtk_invisible_new_for_display (display);
+      data->grab_widget = gtk_label_new ("");
       gtk_grab_add (GTK_WIDGET (data->grab_widget));
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]