]> cgit.babelmonkeys.de Git - jubjub.git/blobdiff - data/gtk/roster.ui
Allow showing offline contacts in the GTK UI
[jubjub.git] / data / gtk / roster.ui
index b2e05df7de367b0586b5404a4686bb5eb0e52146..4223a851cfdc6cf5b3a1514a30547bd51b8164f4 100644 (file)
       <column type="gchararray"/>
       <!-- column-name jid -->
       <column type="gchararray"/>
+      <!-- column-name show -->
+      <column type="gchararray"/>
+      <!-- column-name status -->
+      <column type="gchararray"/>
+      <!-- column-name avatar -->
+      <column type="GdkPixbuf"/>
     </columns>
   </object>
+  <object class="GtkTreeModelFilter" id="RosterTreeModelFilter">
+    <property name="child_model">RosterTreeStore</property>
+  </object>
   <object class="GtkWindow" id="RosterWindow">
     <property name="can_focus">False</property>
     <property name="title" translatable="yes">JubJub</property>
                 <property name="can_focus">False</property>
                 <property name="label" translatable="yes">_Ansicht</property>
                 <property name="use_underline">True</property>
+                <child type="submenu">
+                  <object class="GtkMenu" id="menu3">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <child>
+                      <object class="GtkCheckMenuItem" id="showOfflineCheckMenuItem">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="label" translatable="yes">Show _Offline Contacts</property>
+                        <property name="use_underline">True</property>
+                        <accelerator key="o" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+                      </object>
+                    </child>
+                  </object>
+                </child>
               </object>
             </child>
             <child>
                 <property name="label" translatable="yes">_Hilfe</property>
                 <property name="use_underline">True</property>
                 <child type="submenu">
-                  <object class="GtkMenu" id="menu3">
+                  <object class="GtkMenu" id="menu4">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
                     <child>
               <object class="GtkTreeView" id="RosterTreeView">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
-                <property name="model">RosterTreeStore</property>
+                <property name="model">RosterTreeModelFilter</property>
+                <property name="headers_visible">False</property>
                 <property name="search_column">0</property>
+                <property name="tooltip_column">3</property>
                 <child internal-child="selection">
                   <object class="GtkTreeSelection" id="RosterTreeViewSelection"/>
                 </child>
                 <child>
                   <object class="GtkTreeViewColumn" id="RosterTreeViewColumn1">
-                    <property name="title" translatable="yes">Name</property>
+                    <property name="title" translatable="yes">Status</property>
+                    <property name="expand">True</property>
                     <child>
                       <object class="GtkCellRendererText" id="cellrenderertext1"/>
                       <attributes>
-                        <attribute name="text">0</attribute>
+                        <attribute name="text">2</attribute>
                       </attributes>
                     </child>
                   </object>
                 </child>
                 <child>
                   <object class="GtkTreeViewColumn" id="RosterTreeViewColumn2">
-                    <property name="title" translatable="yes">JID</property>
+                    <property name="title" translatable="yes">Name</property>
+                    <property name="expand">True</property>
                     <child>
                       <object class="GtkCellRendererText" id="cellrenderertext2"/>
                       <attributes>
-                        <attribute name="text">1</attribute>
+                        <attribute name="text">0</attribute>
+                      </attributes>
+                    </child>
+                  </object>
+                </child>
+                <child>
+                  <object class="GtkTreeViewColumn" id="RosterTreeViewColumn3">
+                    <property name="sizing">fixed</property>
+                    <property name="fixed_width">32</property>
+                    <property name="title" translatable="yes">Avatar</property>
+                    <child>
+                      <object class="GtkCellRendererPixbuf" id="cellrendererpixbuf1">
+                        <property name="width">32</property>
+                        <property name="height">32</property>
+                      </object>
+                      <attributes>
+                        <attribute name="pixbuf">4</attribute>
                       </attributes>
                     </child>
                   </object>
           </packing>
         </child>
         <child>
-          <object class="GtkComboBox" id="PresenceCombobox">
+          <object class="GtkComboBox" id="PresenceComboBox">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="model">PresenceListStore</property>
-            <property name="has_entry">True</property>
-            <property name="entry_text_column">1</property>
             <property name="id_column">0</property>
             <property name="active_id">unavailable</property>
-            <child internal-child="entry">
-              <object class="GtkEntry" id="PresenceComboBoxEntry">
-                <property name="can_focus">False</property>
-                <property name="editable">False</property>
-              </object>
+            <child>
+              <object class="GtkCellRendererText" id="cellrenderertext3"/>
+              <attributes>
+                <attribute name="text">1</attribute>
+              </attributes>
             </child>
           </object>
           <packing>