| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?xml version="1.0" encoding="UTF-8"?>
- <interface>
- <requires lib="gtk" version="4.0"/>
- <requires lib="Adw" version="1.0"/>
- <template class="OupisWindow" parent="AdwApplicationWindow">
- <property name="title" translatable="yes">Oupis</property>
- <property name="default-width">800</property>
- <property name="default-height">600</property>
- <property name="content">
- <object class="AdwToolbarView">
- <child type="top">
- <object class="AdwHeaderBar">
- <child type="start">
- <object class="GtkSearchEntry" id="searchentry">
- <property name="placeholder-text" translatable="yes">Search…</property>
- <property name="margin-start">10</property>
- <signal name="activate" handler="oupis_window__search_request"/>
- </object>
- </child>
- <child type="end">
- <object class="GtkMenuButton">
- <property name="primary">True</property>
- <property name="icon-name">open-menu-symbolic</property>
- <property name="tooltip-text" translatable="yes">Main Menu</property>
- <property name="menu-model">primary_menu</property>
- </object>
- </child>
- </object>
- </child>
- <property name="content">
- <object class="GtkScrolledWindow" id="scrolledwindow">
- <property name="hexpand" >TRUE</property>
- <property name="vexpand" >TRUE</property>
- <child>
- <object class="GtkListView" id="listview">
- <property name="model">
- <object class="GtkSingleSelection" id="singleselection">
- <property name="model">
- <object class="GListStore" id="liststore">
- <property name="item-type">GFile</property>
- </object>
- </property>
- </object>
- </property>
- <signal name="activate" handler="listview_activate"/>
- <property name="factory">
- <object class="GtkBuilderListItemFactory">
- <property name="bytes">
- <![CDATA[
- <?xml version="1.0" encoding="UTF-8"?>
- <interface>
- <template class="GtkListItem">
- <property name="child">
- <object class="GtkBox">
- <property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
- <property name="spacing">20</property>
- <child>
- <object class="GtkImage">
- <binding name="gicon">
- <closure type="GIcon" function="get_icon">
- <lookup name="item">GtkListItem</lookup>
- </closure>
- </binding>
- </object>
- </child>
- <child>
- <object class="GtkLabel">
- <property name="hexpand">TRUE</property>
- <property name="xalign">0</property>
- <binding name="label">
- <closure type="gchararray" function="get_file_name">
- <lookup name="item">GtkListItem</lookup>
- </closure>
- </binding>
- </object>
- </child>
- </object>
- </property>
- </template>
- </interface>
- ]]>
- </property>
- </object>
- </property>
- </object>
- </child>
- </object>
- </property>
- </object>
- </property>
- </template>
- <menu id="primary_menu">
- <section>
- <item>
- <attribute name="label" translatable="yes">_Preferences</attribute>
- <attribute name="action">app.preferences</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
- <attribute name="action">app.shortcuts</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">_About Oupis</attribute>
- <attribute name="action">app.about</attribute>
- </item>
- </section>
- </menu>
- </interface>
|