placesview: add view for fixed drives and networks
Places sidebar shows XDG directories, mounted and unmounted devices, connected networks, bookmarks and actions like 'Connect to server' and 'Insert location', which causes the sidebar to grow very quickly and look cluttered. Because of that, new mockups for the sidebar try to simplify it. To make the sidebar simpler, the new mockups propose that it should only handle connected networks and removable devices such as flash drives and USB devices, and delegates other devices for external widgets through the 'Other Locations' item. To handle fixed devices and manage network connections, add a new widget named GtkPlacesView, based on Nautilus mockups to keep consistency between GNOME file management tools - in this case, between Nautilus and the bundled Gtk's file chooser. https://bugzilla.gnome.org/show_bug.cgi?id=752034
This commit is contained in:
		
							
								
								
									
										107
									
								
								gtk/ui/gtkplacesviewrow.ui
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										107
									
								
								gtk/ui/gtkplacesviewrow.ui
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,107 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <interface> | ||||
|   <requires lib="gtk+" version="3.16"/> | ||||
|   <template class="GtkPlacesViewRow" parent="GtkListBoxRow"> | ||||
|     <property name="width_request">100</property> | ||||
|     <property name="visible">True</property> | ||||
|     <property name="can_focus">True</property> | ||||
|     <style> | ||||
|       <class name="volume-row" /> | ||||
|     </style> | ||||
|     <child> | ||||
|       <object class="GtkEventBox" id="event_box"> | ||||
|         <property name="visible">True</property> | ||||
|         <child> | ||||
|           <object class="GtkBox" id="box"> | ||||
|             <property name="visible">True</property> | ||||
|             <property name="can_focus">False</property> | ||||
|             <property name="margin_start">12</property> | ||||
|             <property name="margin_end">12</property> | ||||
|             <property name="margin_top">6</property> | ||||
|             <property name="margin_bottom">6</property> | ||||
|             <property name="border_width">0</property> | ||||
|             <property name="spacing">18</property> | ||||
|             <child> | ||||
|               <object class="GtkImage" id="icon_image"> | ||||
|                 <property name="visible">True</property> | ||||
|                 <property name="can_focus">False</property> | ||||
|                 <property name="pixel_size">32</property> | ||||
|               </object> | ||||
|               <packing> | ||||
|                 <property name="expand">False</property> | ||||
|                 <property name="fill">True</property> | ||||
|                 <property name="position">0</property> | ||||
|               </packing> | ||||
|             </child> | ||||
|             <child> | ||||
|               <object class="GtkLabel" id="name_label"> | ||||
|                 <property name="visible">True</property> | ||||
|                 <property name="can_focus">False</property> | ||||
|                 <property name="hexpand">True</property> | ||||
|                 <property name="xalign">0</property> | ||||
|               </object> | ||||
|               <packing> | ||||
|                 <property name="expand">False</property> | ||||
|                 <property name="fill">True</property> | ||||
|                 <property name="position">1</property> | ||||
|               </packing> | ||||
|             </child> | ||||
|             <child> | ||||
|               <object class="GtkLabel" id="path_label"> | ||||
|                 <property name="visible">True</property> | ||||
|                 <property name="can_focus">False</property> | ||||
|                 <property name="justify">right</property> | ||||
|                 <property name="ellipsize">middle</property> | ||||
|                 <property name="xalign">1</property> | ||||
|                 <style> | ||||
|                   <class name="dim-label"/> | ||||
|                 </style> | ||||
|               </object> | ||||
|               <packing> | ||||
|                 <property name="expand">False</property> | ||||
|                 <property name="fill">True</property> | ||||
|                 <property name="position">2</property> | ||||
|               </packing> | ||||
|             </child> | ||||
|             <child> | ||||
|               <object class="GtkButton" id="eject_button"> | ||||
|                 <property name="visible">False</property> | ||||
|                 <property name="halign">end</property> | ||||
|                 <property name="valign">center</property> | ||||
|                 <property name="tooltip-text" translatable="yes">Unmount</property> | ||||
|                 <child> | ||||
|                   <object class="GtkImage"> | ||||
|                     <property name="visible">True</property> | ||||
|                     <property name="icon_name">media-eject-symbolic</property> | ||||
|                     <property name="icon_size">1</property> | ||||
|                   </object> | ||||
|                 </child> | ||||
|                 <style> | ||||
|                   <class name="image-button"/> | ||||
|                   <class name="sidebar-button"/> | ||||
|                 </style> | ||||
|               </object> | ||||
|               <packing> | ||||
|                 <property name="expand">False</property> | ||||
|                 <property name="fill">True</property> | ||||
|                 <property name="position">3</property> | ||||
|               </packing> | ||||
|             </child> | ||||
|             <child> | ||||
|               <object class="GtkSpinner" id="busy_spinner"> | ||||
|                 <property name="visible">False</property> | ||||
|                 <property name="can_focus">False</property> | ||||
|                 <property name="active">True</property> | ||||
|               </object> | ||||
|               <packing> | ||||
|                 <property name="expand">False</property> | ||||
|                 <property name="fill">True</property> | ||||
|                 <property name="position">4</property> | ||||
|               </packing> | ||||
|             </child> | ||||
|           </object> | ||||
|         </child> | ||||
|       </object> | ||||
|     </child> | ||||
|   </template> | ||||
| </interface> | ||||
		Reference in New Issue
	
	Block a user
	 Georges Basile Stavracas Neto
					Georges Basile Stavracas Neto