[gnome-builder/wip/gtk4-port] plugins/find-other-file: show arrow for directories



commit 71d9ec4435ed04ac9c81d142cd769e7ba567e0d7
Author: Christian Hergert <chergert redhat com>
Date:   Mon May 16 16:18:21 2022 -0700

    plugins/find-other-file: show arrow for directories
    
    To indicate that we will be opening something (a new `ls` view currently).
    In the future, I'd like this to dive down into a directory view from the
    popover instead of the `ls` view though.

 .../find-other-file/gbp-find-other-file-popover-row.ui        | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/src/plugins/find-other-file/gbp-find-other-file-popover-row.ui 
b/src/plugins/find-other-file/gbp-find-other-file-popover-row.ui
index f7c8d419b..80933032c 100644
--- a/src/plugins/find-other-file/gbp-find-other-file-popover-row.ui
+++ b/src/plugins/find-other-file/gbp-find-other-file-popover-row.ui
@@ -21,6 +21,7 @@
         <child>
           <object class="GtkLabel">
             <property name="halign">start</property>
+            <property name="hexpand">true</property>
             <property name="ellipsize">start</property>
             <binding name="label">
               <lookup name="display-name" type="GbpFoundFile">
@@ -29,6 +30,16 @@
             </binding>
           </object>
         </child>
+        <child>
+          <object class="GtkImage">
+            <property name="icon-name">go-next-symbolic</property>
+            <binding name="visible">
+              <lookup name="is-directory" type="GbpFoundFile">
+                <lookup name="item">GtkListItem</lookup>
+              </lookup>
+            </binding>
+          </object>
+        </child>
       </object>
     </property>
   </template>


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