| 1 <?xml version="1.0" encoding="UTF-8"?> |
|
| 2 <!-- |
|
| 3 Pidgin - Internet Messenger |
|
| 4 Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
| 5 |
|
| 6 This program is free software; you can redistribute it and/or |
|
| 7 modify it under the terms of the GNU General Public License |
|
| 8 as published by the Free Software Foundation; either version 2 |
|
| 9 of the License, or (at your option) any later version. |
|
| 10 |
|
| 11 This program is distributed in the hope that it will be useful, |
|
| 12 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 14 GNU General Public License for more details. |
|
| 15 |
|
| 16 You should have received a copy of the GNU General Public License |
|
| 17 along with this library; if not, see <https://www.gnu.org/licenses/>. |
|
| 18 --> |
|
| 19 <interface> |
|
| 20 <requires lib="gtk" version="4.0"/> |
|
| 21 <requires lib="Adw" version="1.0"/> |
|
| 22 <requires lib="pidgin" version="3.0"/> |
|
| 23 <!-- interface-license-type gplv2 --> |
|
| 24 <!-- interface-name Pidgin --> |
|
| 25 <!-- interface-description Internet Messenger --> |
|
| 26 <!-- interface-copyright Pidgin Developers <devel@pidgin.im> --> |
|
| 27 <object class="GListStore" id="base_model"> |
|
| 28 <property name="item-type">PidginDisplayItem</property> |
|
| 29 <child> |
|
| 30 <object class="PidginDisplayItem"> |
|
| 31 <property name="id">__contacts__</property> |
|
| 32 <property name="title" translatable="1">Contacts</property> |
|
| 33 <property name="widget"> |
|
| 34 <object class="GtkScrolledWindow"> |
|
| 35 <child> |
|
| 36 <object class="PidginContactList" id="contact_list"/> |
|
| 37 </child> |
|
| 38 </object> |
|
| 39 </property> |
|
| 40 </object> |
|
| 41 </child> |
|
| 42 <child> |
|
| 43 <object class="PidginDisplayItem"> |
|
| 44 <property name="id">__notifications__</property> |
|
| 45 <property name="title" translatable="1">Notifications</property> |
|
| 46 <property name="widget"> |
|
| 47 <object class="GtkScrolledWindow"> |
|
| 48 <child> |
|
| 49 <object class="PidginNotificationList" id="notification_list"> |
|
| 50 <property name="orientation">vertical</property> |
|
| 51 </object> |
|
| 52 </child> |
|
| 53 </object> |
|
| 54 </property> |
|
| 55 <binding name="needs-attention"> |
|
| 56 <lookup name="needs-attention">notification_list</lookup> |
|
| 57 </binding> |
|
| 58 <binding name="badge-number"> |
|
| 59 <lookup name="notification-count">notification_list</lookup> |
|
| 60 </binding> |
|
| 61 </object> |
|
| 62 </child> |
|
| 63 <child> |
|
| 64 <object class="PidginDisplayItem"> |
|
| 65 <property name="id">__plugins__</property> |
|
| 66 <property name="title" translatable="1">Plugins</property> |
|
| 67 <property name="widget"> |
|
| 68 <object class="GtkBox"> |
|
| 69 <property name="orientation">vertical</property> |
|
| 70 <child> |
|
| 71 <object class="PidginInfoPane"> |
|
| 72 <property name="title" translatable="yes">Plugins</property> |
|
| 73 <child> |
|
| 74 <object class="GtkBox"> |
|
| 75 <property name="margin-end">6</property> |
|
| 76 <property name="orientation">horizontal</property> |
|
| 77 <property name="spacing">6</property> |
|
| 78 <property name="valign">center</property> |
|
| 79 <child> |
|
| 80 <object class="GtkButton"> |
|
| 81 <property name="tooltip-text" translatable="yes">Refresh</property> |
|
| 82 <!-- we can't actually refresh the gplugin pluging list right now, so we just show an insensitive button to remind us to fix it later. --> |
|
| 83 <property name="sensitive">false</property> |
|
| 84 <child> |
|
| 85 <object class="GtkImage"> |
|
| 86 <property name="icon-name">view-refresh-symbolic</property> |
|
| 87 </object> |
|
| 88 </child> |
|
| 89 </object> |
|
| 90 </child> |
|
| 91 </object> |
|
| 92 </child> |
|
| 93 </object> |
|
| 94 </child> |
|
| 95 <child> |
|
| 96 <object class="GPluginGtkView" id="plugin_list"> |
|
| 97 <property name="orientation">vertical</property> |
|
| 98 </object> |
|
| 99 </child> |
|
| 100 </object> |
|
| 101 </property> |
|
| 102 </object> |
|
| 103 </child> |
|
| 104 <child> |
|
| 105 <object class="PidginDisplayItem"> |
|
| 106 <property name="id">__conversations__</property> |
|
| 107 <property name="title" translatable="1">Conversations</property> |
|
| 108 <property name="widget"> |
|
| 109 <object class="AdwStatusPage"> |
|
| 110 <property name="icon-name">mail-send-symbolic</property> |
|
| 111 <property name="title" translatable="1">Conversations</property> |
|
| 112 <property name="description" translatable="1">When you send a message to a friend or join a chat it will show up here!</property> |
|
| 113 </object> |
|
| 114 </property> |
|
| 115 <property name="children"> |
|
| 116 <object class="GListStore" id="conversation_model"> |
|
| 117 <property name="item-type">PidginDisplayItem</property> |
|
| 118 </object> |
|
| 119 </property> |
|
| 120 </object> |
|
| 121 </child> |
|
| 122 </object> |
|
| 123 <template class="PidginDisplayWindow" parent="GtkApplicationWindow"> |
|
| 124 <property name="show-menubar">1</property> |
|
| 125 <property name="default-height">450</property> |
|
| 126 <property name="default-width">950</property> |
|
| 127 <child> |
|
| 128 <object class="GtkEventControllerKey"> |
|
| 129 <property name="propagation-phase">capture</property> |
|
| 130 <signal name="key-pressed" handler="pidgin_display_window_key_pressed_cb"/> |
|
| 131 </object> |
|
| 132 </child> |
|
| 133 <child> |
|
| 134 <object class="GtkBox" id="vbox"> |
|
| 135 <property name="orientation">vertical</property> |
|
| 136 <child> |
|
| 137 <object class="GtkPaned" id="paned"> |
|
| 138 <property name="vexpand">1</property> |
|
| 139 <property name="focusable">1</property> |
|
| 140 <property name="position">220</property> |
|
| 141 <child> |
|
| 142 <object class="GtkBox"> |
|
| 143 <property name="margin-top">6</property> |
|
| 144 <property name="margin-start">6</property> |
|
| 145 <property name="margin-end">6</property> |
|
| 146 <property name="margin-bottom">6</property> |
|
| 147 <property name="orientation">vertical</property> |
|
| 148 <property name="spacing">6</property> |
|
| 149 <child> |
|
| 150 <object class="GtkScrolledWindow"> |
|
| 151 <property name="vexpand">1</property> |
|
| 152 <property name="focusable">1</property> |
|
| 153 <property name="propagate-natural-width">1</property> |
|
| 154 <style> |
|
| 155 <class name="sidebar"/> |
|
| 156 </style> |
|
| 157 <child> |
|
| 158 <object class="GtkListView" id="view"> |
|
| 159 <property name="model"> |
|
| 160 <object class="GtkSingleSelection" id="selection_model"> |
|
| 161 <property name="autoselect">1</property> |
|
| 162 <property name="can-unselect">0</property> |
|
| 163 <signal name="notify::selected-item" handler="pidgin_display_window_selected_item_changed_cb"/> |
|
| 164 </object> |
|
| 165 </property> |
|
| 166 <property name="factory"> |
|
| 167 <object class="GtkBuilderListItemFactory"> |
|
| 168 <property name="resource">/im/pidgin/Pidgin3/display-item.ui</property> |
|
| 169 </object> |
|
| 170 </property> |
|
| 171 </object> |
|
| 172 </child> |
|
| 173 </object> |
|
| 174 </child> |
|
| 175 </object> |
|
| 176 </child> |
|
| 177 <child> |
|
| 178 <object class="AdwBin" id="bin"> |
|
| 179 <property name="vexpand">1</property> |
|
| 180 <property name="hexpand">1</property> |
|
| 181 </object> |
|
| 182 </child> |
|
| 183 </object> |
|
| 184 </child> |
|
| 185 </object> |
|
| 186 </child> |
|
| 187 </template> |
|
| 188 </interface> |
|