Class: Gtk::PlacesSidebar
- Inherits:
-
Object
- Object
- Gtk::PlacesSidebar
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#add_shortcut(location) ⇒ nil
Applications may want to present some folders in the places sidebar if they could be immediately useful to users.
-
#get_nth_bookmark(n) ⇒ Gio::File
This function queries the bookmarks added by the user to the places sidebar, and returns one of them.
-
#list_shortcuts ⇒ GLib::SList
Gets the list of shortcuts.
-
#local_only ⇒ TrueClass
Returns the value previously set with gtk_places_sidebar_set_local_only().
- #local_only=(local_only) ⇒ TrueClass
-
#local_only? ⇒ TrueClass
Local-only.
-
#location ⇒ Gio::File
Location.
- #location=(location) ⇒ Gio::File
-
#new ⇒ Gtk::Widget
Creates a new Gtk::PlacesSidebar widget.
-
#open_flags ⇒ Gtk::PlacesOpenFlags
Open-flags.
- #open_flags=(open_flags) ⇒ Gtk::PlacesOpenFlags
-
#populate_all=(populate_all) ⇒ TrueClass
If :populate-all is true, the Gtk::PlacesSidebar::populate-popup signal is also emitted for popovers.
-
#populate_all? ⇒ TrueClass
If :populate-all is true, the Gtk::PlacesSidebar::populate-popup signal is also emitted for popovers.
-
#remove_shortcut(location) ⇒ nil
Removes an application-specific shortcut that has been previously been inserted with gtk_places_sidebar_add_shortcut().
-
#set_drop_targets_visible(visible, context) ⇒ nil
Make the GtkPlacesSidebar show drop targets, so it can show the available drop targets and a “new bookmark” row.
-
#show_connect_to_server ⇒ TrueClass
Returns the value previously set with gtk_places_sidebar_set_show_connect_to_server().
- #show_connect_to_server=(show_connect_to_server) ⇒ TrueClass
-
#show_connect_to_server? ⇒ TrueClass
Show-connect-to-server.
-
#show_desktop ⇒ TrueClass
Returns the value previously set with gtk_places_sidebar_set_show_desktop().
- #show_desktop=(show_desktop) ⇒ TrueClass
-
#show_desktop? ⇒ TrueClass
Show-desktop.
-
#show_enter_location ⇒ TrueClass
Returns the value previously set with gtk_places_sidebar_set_show_enter_location().
- #show_enter_location=(show_enter_location) ⇒ TrueClass
-
#show_enter_location? ⇒ TrueClass
Show-enter-location.
-
#show_other_locations ⇒ TrueClass
Returns the value previously set with gtk_places_sidebar_set_show_other_locations().
- #show_other_locations=(show_other_locations) ⇒ TrueClass
-
#show_other_locations? ⇒ TrueClass
Show-other-locations.
-
#show_recent ⇒ TrueClass
Returns the value previously set with gtk_places_sidebar_set_show_recent().
- #show_recent=(show_recent) ⇒ TrueClass
-
#show_recent? ⇒ TrueClass
Show-recent.
-
#show_starred_location ⇒ TrueClass
Returns the value previously set with gtk_places_sidebar_set_show_starred_location().
- #show_starred_location=(show_starred_location) ⇒ TrueClass
-
#show_starred_location? ⇒ TrueClass
Show-starred-location.
-
#show_trash ⇒ TrueClass
Returns the value previously set with gtk_places_sidebar_set_show_trash().
- #show_trash=(show_trash) ⇒ TrueClass
-
#show_trash? ⇒ TrueClass
Show-trash.
Instance Method Details
#add_shortcut(location) ⇒ nil
Applications may want to present some folders in the places sidebar if they could be immediately useful to users. For example, a drawing program could add a “/usr/share/clipart” location when the sidebar is being used in an “Insert Clipart” dialog box.
This function adds the specified location to a special place for immutable shortcuts. The shortcuts are application-specific; they are not shared across applications, and they are not persistent. If this function is called multiple times with different locations, then they are added to the sidebar’s list in the same order as the function is called.
#get_nth_bookmark(n) ⇒ Gio::File
This function queries the bookmarks added by the user to the places sidebar, and returns one of them. This function is used by Gtk::FileChooser to implement the “Alt-1”, “Alt-2”, etc. shortcuts, which activate the cooresponding bookmark. nil if no such index exist. Note that the indices start at 0, even though the file chooser starts them with the keyboard shortcut “Alt-1”.
#list_shortcuts ⇒ GLib::SList
Gets the list of shortcuts.
#local_only ⇒ TrueClass
Returns the value previously set with gtk_places_sidebar_set_local_only().
#local_only=(local_only) ⇒ TrueClass
#local_only? ⇒ TrueClass
Returns local-only.
#location ⇒ Gio::File
Returns location.
#location=(location) ⇒ Gio::File
#new ⇒ Gtk::Widget
Creates a new Gtk::PlacesSidebar widget.
The application should connect to at least the Gtk::PlacesSidebar::open-location signal to be notified when the user makes a selection in the sidebar.
#open_flags ⇒ Gtk::PlacesOpenFlags
Returns open-flags.
#open_flags=(open_flags) ⇒ Gtk::PlacesOpenFlags
#populate_all=(populate_all) ⇒ TrueClass
If :populate-all is true, the Gtk::PlacesSidebar::populate-popup signal is also emitted for popovers.
#populate_all? ⇒ TrueClass
If :populate-all is true, the Gtk::PlacesSidebar::populate-popup signal is also emitted for popovers.
#remove_shortcut(location) ⇒ nil
Removes an application-specific shortcut that has been previously been inserted with gtk_places_sidebar_add_shortcut(). If the location is not a shortcut in the sidebar, then nothing is done.
#set_drop_targets_visible(visible, context) ⇒ nil
Make the GtkPlacesSidebar show drop targets, so it can show the available drop targets and a “new bookmark” row. This improves the Drag-and-Drop experience of the user and allows applications to show all available drop targets at once.
This needs to be called when the application is aware of an ongoing drag that might target the sidebar. The drop-targets-visible state will be unset automatically if the drag finishes in the GtkPlacesSidebar. You only need to unset the state when the drag ends on some other widget on your application.
#show_connect_to_server ⇒ TrueClass
Returns the value previously set with gtk_places_sidebar_set_show_connect_to_server()
#show_connect_to_server=(show_connect_to_server) ⇒ TrueClass
#show_connect_to_server? ⇒ TrueClass
Returns show-connect-to-server.
#show_desktop ⇒ TrueClass
Returns the value previously set with gtk_places_sidebar_set_show_desktop()
#show_desktop=(show_desktop) ⇒ TrueClass
#show_desktop? ⇒ TrueClass
Returns show-desktop.
#show_enter_location ⇒ TrueClass
Returns the value previously set with gtk_places_sidebar_set_show_enter_location()
#show_enter_location=(show_enter_location) ⇒ TrueClass
#show_enter_location? ⇒ TrueClass
Returns show-enter-location.
#show_other_locations ⇒ TrueClass
Returns the value previously set with gtk_places_sidebar_set_show_other_locations()
#show_other_locations=(show_other_locations) ⇒ TrueClass
#show_other_locations? ⇒ TrueClass
Returns show-other-locations.
#show_recent ⇒ TrueClass
Returns the value previously set with gtk_places_sidebar_set_show_recent()
#show_recent=(show_recent) ⇒ TrueClass
#show_recent? ⇒ TrueClass
Returns show-recent.
#show_starred_location ⇒ TrueClass
Returns the value previously set with gtk_places_sidebar_set_show_starred_location()
#show_starred_location=(show_starred_location) ⇒ TrueClass
#show_starred_location? ⇒ TrueClass
Returns show-starred-location.
#show_trash ⇒ TrueClass
Returns the value previously set with gtk_places_sidebar_set_show_trash()
#show_trash=(show_trash) ⇒ TrueClass
#show_trash? ⇒ TrueClass
Returns show-trash.