[gtk/adaptive-emojichooser: 2/3] emojichooser: Allow the section buttons to wrap




commit 6be41773a5892a2f6bf75efcfb814c38cdd483da
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Dec 21 22:45:48 2020 -0500

    emojichooser: Allow the section buttons to wrap
    
    Use a flowbox instead of a horizontal box for
    the section buttons at the bottom, so they can
    wrap and allow for narrow layout.

 gtk/ui/gtkemojichooser.ui | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtk/ui/gtkemojichooser.ui b/gtk/ui/gtkemojichooser.ui
index 823fd026d5..2d14a7e804 100644
--- a/gtk/ui/gtkemojichooser.ui
+++ b/gtk/ui/gtkemojichooser.ui
@@ -217,7 +217,9 @@
                       </object>
                     </child>
                     <child>
-                      <object class="GtkBox">
+                      <object class="GtkFlowBox">
+                        <property name="min-children-per-line">5</property>
+                        <property name="max-children-per-line">10</property>
                         <style>
                           <class name="emoji-toolbar"/>
                         </style>


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