When blocking a contact which is not in the roster, the contact is removed and the ChatControl is closed (if any).
		
			
				
	
	
		
			147 lines
		
	
	
	
		
			5.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			147 lines
		
	
	
	
		
			5.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="UTF-8"?>
 | |
| <!-- Generated with glade 3.22.1 -->
 | |
| <interface>
 | |
|   <requires lib="gtk+" version="3.20"/>
 | |
|   <object class="GtkListStore" id="blocking_store">
 | |
|     <columns>
 | |
|       <!-- column-name jid -->
 | |
|       <column type="gchararray"/>
 | |
|     </columns>
 | |
|   </object>
 | |
|   <object class="GtkGrid" id="blocking_grid">
 | |
|     <property name="width_request">400</property>
 | |
|     <property name="height_request">300</property>
 | |
|     <property name="visible">True</property>
 | |
|     <property name="can_focus">False</property>
 | |
|     <property name="border_width">18</property>
 | |
|     <property name="row_spacing">5</property>
 | |
|     <property name="column_spacing">10</property>
 | |
|     <child>
 | |
|       <object class="GtkButtonBox">
 | |
|         <property name="visible">True</property>
 | |
|         <property name="can_focus">False</property>
 | |
|         <property name="halign">start</property>
 | |
|         <property name="spacing">5</property>
 | |
|         <property name="layout_style">start</property>
 | |
|         <child>
 | |
|           <object class="GtkButton" id="add_button">
 | |
|             <property name="visible">True</property>
 | |
|             <property name="can_focus">True</property>
 | |
|             <property name="receives_default">True</property>
 | |
|             <signal name="clicked" handler="_on_add" swapped="no"/>
 | |
|             <child>
 | |
|               <object class="GtkImage">
 | |
|                 <property name="visible">True</property>
 | |
|                 <property name="can_focus">False</property>
 | |
|                 <property name="icon_name">list-add-symbolic</property>
 | |
|               </object>
 | |
|             </child>
 | |
|           </object>
 | |
|           <packing>
 | |
|             <property name="expand">False</property>
 | |
|             <property name="fill">True</property>
 | |
|             <property name="position">0</property>
 | |
|             <property name="non_homogeneous">True</property>
 | |
|           </packing>
 | |
|         </child>
 | |
|         <child>
 | |
|           <object class="GtkButton" id="remove_button">
 | |
|             <property name="visible">True</property>
 | |
|             <property name="can_focus">True</property>
 | |
|             <property name="receives_default">True</property>
 | |
|             <signal name="clicked" handler="_on_remove" swapped="no"/>
 | |
|             <child>
 | |
|               <object class="GtkImage">
 | |
|                 <property name="visible">True</property>
 | |
|                 <property name="can_focus">False</property>
 | |
|                 <property name="icon_name">list-remove-symbolic</property>
 | |
|               </object>
 | |
|             </child>
 | |
|           </object>
 | |
|           <packing>
 | |
|             <property name="expand">True</property>
 | |
|             <property name="fill">True</property>
 | |
|             <property name="position">1</property>
 | |
|             <property name="non_homogeneous">True</property>
 | |
|           </packing>
 | |
|         </child>
 | |
|       </object>
 | |
|       <packing>
 | |
|         <property name="left_attach">0</property>
 | |
|         <property name="top_attach">1</property>
 | |
|       </packing>
 | |
|     </child>
 | |
|     <child>
 | |
|       <object class="GtkButton" id="save_button">
 | |
|         <property name="label">Save</property>
 | |
|         <property name="visible">True</property>
 | |
|         <property name="can_focus">True</property>
 | |
|         <property name="receives_default">True</property>
 | |
|         <property name="halign">end</property>
 | |
|         <property name="always_show_image">True</property>
 | |
|         <signal name="clicked" handler="_on_save" swapped="no"/>
 | |
|         <style>
 | |
|           <class name="suggested-action"/>
 | |
|         </style>
 | |
|       </object>
 | |
|       <packing>
 | |
|         <property name="left_attach">1</property>
 | |
|         <property name="top_attach">1</property>
 | |
|       </packing>
 | |
|     </child>
 | |
|     <child>
 | |
|       <object class="GtkOverlay" id="overlay">
 | |
|         <property name="visible">True</property>
 | |
|         <property name="can_focus">False</property>
 | |
|         <child>
 | |
|           <object class="GtkScrolledWindow">
 | |
|             <property name="height_request">150</property>
 | |
|             <property name="visible">True</property>
 | |
|             <property name="can_focus">True</property>
 | |
|             <property name="hexpand">True</property>
 | |
|             <property name="vexpand">True</property>
 | |
|             <property name="shadow_type">in</property>
 | |
|             <child>
 | |
|               <object class="GtkTreeView" id="block_view">
 | |
|                 <property name="visible">True</property>
 | |
|                 <property name="can_focus">True</property>
 | |
|                 <property name="model">blocking_store</property>
 | |
|                 <property name="search_column">0</property>
 | |
|                 <child internal-child="selection">
 | |
|                   <object class="GtkTreeSelection" id="treeview-selection2"/>
 | |
|                 </child>
 | |
|                 <child>
 | |
|                   <object class="GtkTreeViewColumn" id="treeviewcolumn1">
 | |
|                     <property name="title" translatable="yes">Jabber ID</property>
 | |
|                     <property name="expand">True</property>
 | |
|                     <property name="clickable">True</property>
 | |
|                     <property name="sort_indicator">True</property>
 | |
|                     <property name="sort_column_id">0</property>
 | |
|                     <child>
 | |
|                       <object class="GtkCellRendererText" id="cellrenderertext3">
 | |
|                         <property name="editable">True</property>
 | |
|                         <property name="placeholder_text">user@example.org</property>
 | |
|                         <signal name="edited" handler="_jid_edited" swapped="no"/>
 | |
|                       </object>
 | |
|                       <attributes>
 | |
|                         <attribute name="text">0</attribute>
 | |
|                       </attributes>
 | |
|                     </child>
 | |
|                   </object>
 | |
|                 </child>
 | |
|               </object>
 | |
|             </child>
 | |
|           </object>
 | |
|           <packing>
 | |
|             <property name="index">-1</property>
 | |
|           </packing>
 | |
|         </child>
 | |
|       </object>
 | |
|       <packing>
 | |
|         <property name="left_attach">0</property>
 | |
|         <property name="top_attach">0</property>
 | |
|         <property name="width">2</property>
 | |
|       </packing>
 | |
|     </child>
 | |
|   </object>
 | |
| </interface>
 |