[gtk/inspector-controllers: 2/7] inspector: Redo the controllers page




commit 0537b167ca92d96192c744e8a78878679551e6d1
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jan 20 18:51:01 2021 -0500

    inspector: Redo the controllers page
    
    Use a column view, and only show the widgets own
    controllers.

 gtk/inspector/controllers.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/gtk/inspector/controllers.c b/gtk/inspector/controllers.c
index 5f0fb92242..08144f1e10 100644
--- a/gtk/inspector/controllers.c
+++ b/gtk/inspector/controllers.c
@@ -24,13 +24,8 @@
 #include "gtkdropdown.h"
 #include "gtkbox.h"
 #include "gtkcustomsorter.h"
-#include "gtkflattenlistmodel.h"
-#include "gtkframe.h"
 #include "gtkgesture.h"
 #include "gtklabel.h"
-#include "gtklistbox.h"
-#include "gtkmaplistmodel.h"
-#include "gtkpropertylookuplistmodelprivate.h"
 #include "gtkscrolledwindow.h"
 #include "gtksortlistmodel.h"
 #include "gtkstack.h"
@@ -277,6 +272,7 @@ gtk_inspector_controllers_set_object (GtkInspectorControllers *self,
 
   if (!GTK_IS_WIDGET (object))
     {
+      gtk_column_view_set_model (GTK_COLUMN_VIEW (self->view), NULL);
       g_object_set (page, "visible", FALSE, NULL);
       return;
     }


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