[gtk+] inspector: Make sure something is focusable on the stats page



commit c5b7f9f11c4e23cc6717500127a475ff591a1197
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Dec 10 22:41:45 2014 -0500

    inspector: Make sure something is focusable on the stats page
    
    Without this, the focus will not be inside the top_stack when
    we switch to the statistics page and it shows the excuse. This
    in turn will make the next page not take focus as expected when
    switching away from the statistics page again.

 gtk/inspector/statistics.ui |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gtk/inspector/statistics.ui b/gtk/inspector/statistics.ui
index 42eb311..820a39b 100644
--- a/gtk/inspector/statistics.ui
+++ b/gtk/inspector/statistics.ui
@@ -153,11 +153,17 @@
           </packing>
         </child>
         <child>
-          <object class="GtkLabel">
+          <object class="GtkBox">
             <property name="visible">True</property>
+            <property name="can-focus">True</property>
             <property name="halign">center</property>
             <property name="valign">center</property>
-            <property name="label" translatable="yes">Enable statistics with 
GOBJECT_DEBUG=instance-count</property>
+            <child>
+              <object class="GtkLabel">
+                <property name="visible">True</property>
+                <property name="label" translatable="yes">Enable statistics with 
GOBJECT_DEBUG=instance-count</property>
+              </object>
+            </child>
           </object>
           <packing>
             <property name="name">excuse</property>


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