]> cgit.babelmonkeys.de Git - jubjub.git/blob - data/gtk/roster.ui
GTK+: Clean up menus
[jubjub.git] / data / gtk / roster.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2 <interface>
3   <!-- interface-requires gtk+ 3.0 -->
4   <object class="GtkListStore" id="PresenceListStore">
5     <columns>
6       <!-- column-name id -->
7       <column type="gchararray"/>
8       <!-- column-name status -->
9       <column type="gchararray"/>
10     </columns>
11     <data>
12       <row>
13         <col id="0">chat</col>
14         <col id="1" translatable="yes">Free for Chat</col>
15       </row>
16       <row>
17         <col id="0">available</col>
18         <col id="1" translatable="yes">Online</col>
19       </row>
20       <row>
21         <col id="0">away</col>
22         <col id="1" translatable="yes">Away</col>
23       </row>
24       <row>
25         <col id="0">xa</col>
26         <col id="1" translatable="yes">Extended Away</col>
27       </row>
28       <row>
29         <col id="0">dnd</col>
30         <col id="1" translatable="yes">Do Not Disturb</col>
31       </row>
32       <row>
33         <col id="0">unavailable</col>
34         <col id="1" translatable="yes">Offline</col>
35       </row>
36     </data>
37   </object>
38   <object class="GtkTreeStore" id="RosterTreeStore">
39     <columns>
40       <!-- column-name name -->
41       <column type="gchararray"/>
42       <!-- column-name jid -->
43       <column type="gchararray"/>
44       <!-- column-name show -->
45       <column type="gchararray"/>
46       <!-- column-name status -->
47       <column type="gchararray"/>
48       <!-- column-name avatar -->
49       <column type="GdkPixbuf"/>
50     </columns>
51   </object>
52   <object class="GtkTreeModelFilter" id="RosterTreeModelFilter">
53     <property name="child_model">RosterTreeStore</property>
54   </object>
55   <object class="GtkWindow" id="RosterWindow">
56     <property name="can_focus">False</property>
57     <property name="title" translatable="yes">JubJub</property>
58     <property name="default_height">300</property>
59     <signal name="destroy" handler="on_roster_window_destroy" swapped="no"/>
60     <child>
61       <object class="GtkBox" id="box1">
62         <property name="visible">True</property>
63         <property name="can_focus">False</property>
64         <property name="orientation">vertical</property>
65         <child>
66           <object class="GtkMenuBar" id="menubar1">
67             <property name="visible">True</property>
68             <property name="can_focus">False</property>
69             <child>
70               <object class="GtkMenuItem" id="menuitemactions">
71                 <property name="visible">True</property>
72                 <property name="can_focus">False</property>
73                 <property name="label" translatable="yes">A_ctions</property>
74                 <property name="use_underline">True</property>
75                 <child type="submenu">
76                   <object class="GtkMenu" id="menu1">
77                     <property name="visible">True</property>
78                     <property name="can_focus">False</property>
79                     <child>
80                       <object class="GtkSeparatorMenuItem" id="separatormenuitem1">
81                         <property name="visible">True</property>
82                         <property name="can_focus">False</property>
83                       </object>
84                     </child>
85                     <child>
86                       <object class="GtkImageMenuItem" id="imagemenuitemquit">
87                         <property name="label">gtk-quit</property>
88                         <property name="visible">True</property>
89                         <property name="can_focus">False</property>
90                         <property name="use_underline">True</property>
91                         <property name="use_stock">True</property>
92                         <signal name="activate" handler="gtk_main_quit" swapped="no"/>
93                       </object>
94                     </child>
95                   </object>
96                 </child>
97               </object>
98             </child>
99             <child>
100               <object class="GtkMenuItem" id="menuitemview">
101                 <property name="visible">True</property>
102                 <property name="can_focus">False</property>
103                 <property name="label" translatable="yes">_View</property>
104                 <property name="use_underline">True</property>
105                 <child type="submenu">
106                   <object class="GtkMenu" id="menu3">
107                     <property name="visible">True</property>
108                     <property name="can_focus">False</property>
109                     <child>
110                       <object class="GtkCheckMenuItem" id="showOfflineCheckMenuItem">
111                         <property name="visible">True</property>
112                         <property name="can_focus">False</property>
113                         <property name="label" translatable="yes">Show _Offline Contacts</property>
114                         <property name="use_underline">True</property>
115                         <accelerator key="o" signal="activate" modifiers="GDK_CONTROL_MASK"/>
116                       </object>
117                     </child>
118                   </object>
119                 </child>
120               </object>
121             </child>
122             <child>
123               <object class="GtkMenuItem" id="menuitemhelp">
124                 <property name="visible">True</property>
125                 <property name="can_focus">False</property>
126                 <property name="label" translatable="yes">_Help</property>
127                 <property name="use_underline">True</property>
128                 <child type="submenu">
129                   <object class="GtkMenu" id="menu4">
130                     <property name="visible">True</property>
131                     <property name="can_focus">False</property>
132                     <child>
133                       <object class="GtkImageMenuItem" id="imagemenuitem10">
134                         <property name="label">gtk-about</property>
135                         <property name="visible">True</property>
136                         <property name="can_focus">False</property>
137                         <property name="use_underline">True</property>
138                         <property name="use_stock">True</property>
139                       </object>
140                     </child>
141                   </object>
142                 </child>
143               </object>
144             </child>
145           </object>
146           <packing>
147             <property name="expand">False</property>
148             <property name="fill">True</property>
149             <property name="position">0</property>
150           </packing>
151         </child>
152         <child>
153           <object class="GtkScrolledWindow" id="scrolledwindow1">
154             <property name="visible">True</property>
155             <property name="can_focus">True</property>
156             <property name="shadow_type">in</property>
157             <child>
158               <object class="GtkTreeView" id="RosterTreeView">
159                 <property name="visible">True</property>
160                 <property name="can_focus">True</property>
161                 <property name="model">RosterTreeModelFilter</property>
162                 <property name="headers_visible">False</property>
163                 <property name="search_column">0</property>
164                 <property name="tooltip_column">3</property>
165                 <child internal-child="selection">
166                   <object class="GtkTreeSelection" id="RosterTreeViewSelection"/>
167                 </child>
168                 <child>
169                   <object class="GtkTreeViewColumn" id="RosterTreeViewColumn1">
170                     <property name="title" translatable="yes">Status</property>
171                     <property name="expand">True</property>
172                     <child>
173                       <object class="GtkCellRendererText" id="cellrenderertext1"/>
174                       <attributes>
175                         <attribute name="text">2</attribute>
176                       </attributes>
177                     </child>
178                   </object>
179                 </child>
180                 <child>
181                   <object class="GtkTreeViewColumn" id="RosterTreeViewColumn2">
182                     <property name="title" translatable="yes">Name</property>
183                     <property name="expand">True</property>
184                     <child>
185                       <object class="GtkCellRendererText" id="cellrenderertext2"/>
186                       <attributes>
187                         <attribute name="text">0</attribute>
188                       </attributes>
189                     </child>
190                   </object>
191                 </child>
192                 <child>
193                   <object class="GtkTreeViewColumn" id="RosterTreeViewColumn3">
194                     <property name="sizing">fixed</property>
195                     <property name="fixed_width">32</property>
196                     <property name="title" translatable="yes">Avatar</property>
197                     <child>
198                       <object class="GtkCellRendererPixbuf" id="cellrendererpixbuf1">
199                         <property name="width">32</property>
200                         <property name="height">32</property>
201                       </object>
202                       <attributes>
203                         <attribute name="pixbuf">4</attribute>
204                       </attributes>
205                     </child>
206                   </object>
207                 </child>
208               </object>
209             </child>
210           </object>
211           <packing>
212             <property name="expand">True</property>
213             <property name="fill">True</property>
214             <property name="position">1</property>
215           </packing>
216         </child>
217         <child>
218           <object class="GtkComboBox" id="PresenceComboBox">
219             <property name="visible">True</property>
220             <property name="can_focus">False</property>
221             <property name="model">PresenceListStore</property>
222             <property name="id_column">0</property>
223             <property name="active_id">unavailable</property>
224             <child>
225               <object class="GtkCellRendererText" id="cellrenderertext3"/>
226               <attributes>
227                 <attribute name="text">1</attribute>
228               </attributes>
229             </child>
230           </object>
231           <packing>
232             <property name="expand">False</property>
233             <property name="fill">True</property>
234             <property name="position">2</property>
235           </packing>
236         </child>
237       </object>
238     </child>
239   </object>
240 </interface>