summaryrefslogtreecommitdiff
path: root/src/nautilus-bookmark-list.h
Commit message (Collapse)AuthorAgeFilesLines
* bookmark-list: port to G_DECLARE* type declarationSirbu Lavinia Stefania2016-09-291-26/+5
| | | | | | | | | | | | | Currently we are using the old GObject class declarations, which have two problems. One problem is that we cannot use smart pointers like g_autoptr. The other problem is the boilerplate code generated that makes the code less readable, so harder to understand. To fix this use G_DECLARE* type. https://bugzilla.gnome.org/show_bug.cgi?id=771838
* general: merge libnautilus-private to srcwip/csoriano/private-to-srcCarlos Soriano2016-04-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And fix make distcheck. Although libnautilus-private seem self contained, it was actually depending on the files on src/ for dnd. Not only that, but files in libnautilus-private also were depending on dnd files, which you can guess it's wrong. Before the desktop split, this was working because the files were distributed, but now was a problem since we reestructured the code, and now nautilus being a library make distcheck stop working. First solution was try to fix this inter dependency of files, but at some point I realized that there was no real point on splitting some of those files, because for example, is perfectly fine for dnd to need to access the window functions, and it's perfectly fine for the widgets in the private library to need to access to all dnd functions. So seems to me the private library of nautilus is somehow an artificial split, which provides more problems than solutions. We needed libnautilus-private to have a private library that we could isolate from extensions, but I don't think it worth given the problems it provides, and also, this not so good logical split. Right now, since with the desktop split we created a libnautilus to be used by the desktop part of nautilus, extensions have access to all the API of nautilus. We will think in future how this can be handled if we want. So for now, merge the libnautilus-private into src, and let's rethink a better logic to split the code and the private parts of nautilus than what we had. Thanks a lot to Rafael Fonseca for helping in get this done. https://bugzilla.gnome.org/show_bug.cgi?id=765543
* general: remove vim modelinesCarlos Soriano2016-04-041-1/+0
| | | | | | | | | | | | | Vim and emacs modelines are used to specify some of the code style in the code. However, this is misleading and poorly supported since nautilus had a mix of code style for some time. Also, the mode lines doesn't specify the whole code style, so we will need to use a different tool as well to specify the whole code style. For that, we can just use a different tool for everything. So remove the mode lines, and in a short future we will reestyle the nautilus code to have a single code style, and use a tool like editorconfig to specify the whole code style.
* bookmarks: remove bookmarks managerCarlos Soriano2015-12-161-11/+0
| | | | | | | | | | | | | | | | | | | | | | | Current bookmark manager is mostly a "show the internals in the UI", with just showing the properties in a text base way. Users can already accomplish the key functions of the manager through the sidebar: you can rename, remove, and reorder through drag and drop. The only thing you can't do with the sidebar is edit the path of a bookmark, but I would argue that that's problematic anyway (since you can break bookmarks that way, and it is much less error-prone to navigate to the location and bookmark it than hand edit a location field). The fact that the only way to open the bookmark manager is through a keyboard shortcut is probably a sign that it isn't really getting used anyway, and that it isn't worth the trouble of fixing it up. So remove it and instead, if needed, focus on improving bookmarks management in the sidebar. https://bugzilla.gnome.org/show_bug.cgi?id=759504
* bookmark-list: use internal list for clientsCarlos Soriano2015-12-161-0/+1
| | | | | So we will be able to remove some of the public API, since we can use GList functions.
* Don't mention FSF addressCosimo Cecchi2014-02-171-2/+1
| | | | | | Use the website instead. https://bugzilla.gnome.org/show_bug.cgi?id=721518
* places-sidebar: use the bookmark display nameCosimo Cecchi2012-10-221-1/+2
| | | | | | Instead of the XDG directory name; this makes name edits from the Bookmarks window apply correctly to the sidebar. Likewise, allow renaming of XDG bookmarks from the context menu.
* bookmark-list: add a can_bookmark() methodCosimo Cecchi2012-10-221-0/+2
| | | | Using the previously added API.
* bookmark-list: change item_with_uri() API to use a GFile insteadCosimo Cecchi2012-10-221-2/+2
| | | | | Avoid GFile<->URI roundtrips if possible. Also, this will allow us to use the same API for another purpose.
* bookmarks: remove unused methodsCosimo Cecchi2012-10-191-4/+0
|
* bookmark-list: add API to get a NautilusBookmark for a given URICosimo Cecchi2012-09-141-0/+2
| | | | This will be used by the shell search provider.
* bookmarks-window: remove methods that deal with geometryCosimo Cecchi2012-04-241-3/+0
| | | | Since we don't actually save or load it from disk, these are useless.
* all: use new NautilusBookmark APICosimo Cecchi2011-01-121-1/+1
|
* Refactor the load/save code for the list.Cosimo Cecchi2010-04-261-1/+1
| | | | Don't use sync i/o anymore. This should also fix bug #532911.
* Bring the object to 2010.Cosimo Cecchi2010-04-261-2/+3
|
* Add a method to move bookmarks in the list.Cosimo Cecchi2010-04-261-0/+3
| | | | | So that moving a bookmark in the list doesn't trigger two 'contents-changed' signals in a row.
* Remove deprecated GDK/GTK+ symbolsCosimo Cecchi2009-04-211-6/+7
| | | | | | Remove all uses of deprecated GDK and GTK+ symbols, replacing them with the currently supported equivalents. Based on a patch from Tal Benavidor (#565038).
* Only use <gio/gio.h> includeAlexander Larsson2007-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-12-14 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-bookmark.c: * libnautilus-private/nautilus-bookmark.h: * libnautilus-private/nautilus-desktop-icon-file.c: * libnautilus-private/nautilus-desktop-link-monitor.c: * libnautilus-private/nautilus-desktop-link.c: * libnautilus-private/nautilus-desktop-link.h: * libnautilus-private/nautilus-directory-private.h: * libnautilus-private/nautilus-directory.h: * libnautilus-private/nautilus-emblem-utils.h: * libnautilus-private/nautilus-file-changes-queue.h: * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-file-operations.h: * libnautilus-private/nautilus-file-utilities.c: * libnautilus-private/nautilus-file-utilities.h: * libnautilus-private/nautilus-file.c: * libnautilus-private/nautilus-file.h: * libnautilus-private/nautilus-icon-info.c: * libnautilus-private/nautilus-icon-info.h: * libnautilus-private/nautilus-link.c: * libnautilus-private/nautilus-mime-actions.h: * libnautilus-private/nautilus-mime-application-chooser.c: * libnautilus-private/nautilus-monitor.c: * libnautilus-private/nautilus-monitor.h: * libnautilus-private/nautilus-open-with-dialog.c: * libnautilus-private/nautilus-open-with-dialog.h: * libnautilus-private/nautilus-program-choosing.c: * libnautilus-private/nautilus-program-choosing.h: * libnautilus-private/nautilus-progress-info.h: * libnautilus-private/nautilus-recent.h: * libnautilus-private/nautilus-search-directory.c: * libnautilus-private/nautilus-search-engine-simple.c: * libnautilus-private/nautilus-trash-monitor.c: * libnautilus-private/nautilus-trash-monitor.h: * libnautilus-private/nautilus-ui-utilities.c: * libnautilus-private/nautilus-view-factory.h: * src/file-manager/fm-directory-view.c: * src/file-manager/fm-directory-view.h: * src/file-manager/fm-icon-container.c: * src/file-manager/fm-icon-view.c: * src/file-manager/fm-tree-model.h: * src/file-manager/fm-tree-view.c: * src/nautilus-application.c: * src/nautilus-application.h: * src/nautilus-bookmark-list.c: * src/nautilus-bookmark-list.h: * src/nautilus-desktop-window.c: * src/nautilus-image-properties-page.c: * src/nautilus-location-entry.c: * src/nautilus-navigation-window.c: * src/nautilus-pathbar.c: * src/nautilus-pathbar.h: * src/nautilus-places-sidebar.c: * src/nautilus-property-browser.c: * src/nautilus-query-editor.c: * src/nautilus-window-menus.c: Only use <gio/gio.h> include svn path=/trunk/; revision=13529
* Merge gio-branchAlexander Larsson2007-11-301-2/+2
| | | | svn path=/trunk/; revision=13464
* Patch from Jamie McCracken <jamiemcc@blueyonder.co.uk>Alexander Larsson2005-06-231-1/+3
| | | | | | | | | | | | | | | | | | | | | | 2005-06-23 Alexander Larsson <alexl@redhat.com> Patch from Jamie McCracken <jamiemcc@blueyonder.co.uk> * src/nautilus-bookmark-list.[ch]: Share bookmarks with gtk+. * libnautilus-private/nautilus-file-utilities.[ch]: * src/nautilus-window.c: (real_get_title): Move compute_default_title to nautilus_compute_title_for_uri. * libnautilus-private/nautilus-bookmark.[ch]: * src/nautilus-bookmarks-window.c: Add has_custom_name boolean to NautilusBookmark * src/Makefile.am: * src/nautilus-bookmark-parsing.[ch]: * src/nautilus-navigation-window-menus.c: Remove no longer needed files nautilus-bookmark-parsing.[ch].
* s/GtkType/GType/Alexander Larsson2003-02-041-1/+1
|
* nautilus-extensions -> nautilus-private renaming.Ramiro Estrugo2001-05-041-1/+1
|
* Made copyright headers consistent in style; also made sure to refer toMaciej Stachowiak2000-08-111-20/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/nautilus-applicable-views.c, src/nautilus-applicable-views.h, src/nautilus-application.c, src/nautilus-application.h, src/nautilus-bookmark-list.c, src/nautilus-bookmark-list.h, src/nautilus-bookmark-parsing.c, src/nautilus-bookmark-parsing.h, src/nautilus-bookmarks-window.c, src/nautilus-bookmarks-window.h, src/nautilus-complex-search-bar.c, src/nautilus-complex-search-bar.h, src/nautilus-desktop-window.c, src/nautilus-desktop-window.h, src/nautilus-first-time-druid.c, src/nautilus-first-time-druid.h, src/nautilus-history-frame.c, src/nautilus-history-frame.h, src/nautilus-link-set-window.c, src/nautilus-link-set-window.h, src/nautilus-location-bar.c, src/nautilus-location-bar.h, src/nautilus-main.c, src/nautilus-navigation-bar.c, src/nautilus-navigation-bar.h, src/nautilus-property-browser.c, src/nautilus-property-browser.h, src/nautilus-search-bar-private.h, src/nautilus-search-bar.c, src/nautilus-search-bar.h, src/nautilus-self-check-functions.c, src/nautilus-self-check-functions.h, src/nautilus-shell.c, src/nautilus-shell.h, src/nautilus-sidebar-tabs.c, src/nautilus-sidebar-tabs.h, src/nautilus-sidebar-title.c, src/nautilus-sidebar-title.h, src/nautilus-sidebar.c, src/nautilus-sidebar.h, src/nautilus-signaller.c, src/nautilus-signaller.h, src/nautilus-simple-search-bar.c, src/nautilus-simple-search-bar.h, src/nautilus-switchable-navigation-bar.c, src/nautilus-switchable-navigation-bar.h, src/nautilus-switchable-search-bar.c, src/nautilus-switchable-search-bar.h, src/nautilus-toolbar.c, src/nautilus-toolbar.h, src/nautilus-view-frame-bonobo-control.c, src/nautilus-view-frame-bonobo-embeddable.c, src/nautilus-view-frame-corba.c, src/nautilus-view-frame-nautilus-view.c, src/nautilus-view-frame-private.h, src/nautilus-view-frame.c,src/nautilus-view-frame.h, src/nautilus-window-manage-views.c, src/nautilus-window-manage-views.h, src/nautilus-window-menus.c, src/nautilus-window-private.h, src/nautilus-window-toolbars.c, src/nautilus-window.c, src/nautilus-window.h, src/nautilus-zoom-control.c, src/nautilus-zoom-control.h, src/nautilus-zoomable-frame-corba.c: Made copyright headers consistent in style; also made sure to refer to Nautilus as Nautilus, not "this library" or "The GNOME Library".
* Modernized some NautilusBookmark code that had been writtenJohn Sullivan2000-06-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the dark ages (by me). * libnautilus-extensions/nautilus-bookmark.c: (nautilus_bookmark_compare_with), (nautilus_bookmark_copy), (nautilus_bookmark_get_name), (nautilus_bookmark_get_pixmap_and_mask), (nautilus_bookmark_get_pixbuf), (nautilus_bookmark_get_icon), (nautilus_bookmark_get_uri), (create_pixmap_widget_for_bookmark), (nautilus_bookmark_menu_item_new): Eliminated the use of const NautilusBookmark *; made _get_name and _get_uri return copies instead of the original text; tweaked a little formatting. * components/history/nautilus-history-view.c: (install_icon), (hyperbola_navigation_history_load_location), (hyperbola_navigation_history_select_row): * libnautilus-extensions/nautilus-bookmark.h: * src/nautilus-bookmark-list.c: (append_bookmark_node), (nautilus_bookmark_list_append), (nautilus_bookmark_list_contains), (nautilus_bookmark_list_delete_items_with_uri), (nautilus_bookmark_list_insert_item): * src/nautilus-bookmark-list.h: * src/nautilus-bookmarks-window.c: (install_bookmark_icon), (on_select_row), (repopulate): * src/nautilus-window-manage-views.c: (nautilus_window_reset_title_internal), (handle_go_back), (handle_go_forward), (handle_go_elsewhere): * src/nautilus-window-menus.c: (bookmark_holder_new), (show_bogus_bookmark_window), (activate_bookmark_in_menu_item), (append_bookmark_to_menu), (nautilus_window_add_bookmark_for_current_location): * src/nautilus-window.c: (nautilus_window_back_or_forward): Eliminated the use of const NautilusBookmark *; changed all callers of nautilus_bookmark_get_name and _get_uri to free the results.
* Fixed bug 692 (Bookmarks for deleted files don't doJohn Sullivan2000-06-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sensible things) * libnautilus-extensions/nautilus-gnome-extensions.h, * libnautilus-extensions/nautilus-gnome-extensions.c: (nautilus_info_dialog), (nautilus_info_dialog_parented): New functions for showing a one-button informational dialog. (nautilus_yes_no_dialog), (nautilus_yes_no_dialog_parented): New functions for showing a two-button question dialog. (show_yes_no_box): Helper function used to implement yes_no_dialog routines. * src/nautilus-bookmark-list.h, * src/nautilus-bookmark-list.c: (nautilus_bookmark_list_delete_items_with_uri): New function for deleting all bookmarks with a given uri. * src/nautilus-window-menus.c: (bookmark_holder_new), (bookmark_holder_free): New helper functions for dealing with BookmarkHolder structs. (remove_bookmarks_for_uri), (show_bogus_bookmark_window), (uri_known_not_to_exist): New helper functions for dealing with bookmarks for missing (local) files. In the Go menu case, the user is just told that the location doesn't exist; in the Bookmarks menu case, the user has the option of removing bookmarks with this URI from their list. (activate_bookmark_in_menu_item): Added a parameter to distinguish Go menu case from Bookmarks menu case. (append_bookmark_to_menu): Added this parameter here also, where it's stored in a BookmarkHolder; deploy bookmark_holder_new and _free. (refresh_bookmarks_in_bookmarks_menu), (refresh_bookmarks_in_go_menu): Pass the new parameter to append_bookmark_to_menu.
* Split libnautilus into two pieces.Ramiro Estrugo2000-04-141-1/+1
| | | | | | | | | | | | libnautilus now only contains the view interfaces needed by nautilus components. These are the interfaces defined in nautilus-view-component.idl. libnautilus-extensions containes the remainder of the stuff. Also used the cvs repository munging opportunity to do some of the ntl-* renaming outlined in the RENAIMING file.
* Did some of the renamings that were queued in RENAMING.Darin Adler2000-03-161-0/+73
* libnautilus/Makefile.am: * libnautilus/gdk-extensions.c: * libnautilus/gdk-extensions.h: * libnautilus/nautilus-gdk-extensions.c: * libnautilus/nautilus-gdk-extensions.h: * libnautilus/gnome-icon-container.c: * libnautilus/nautilus-background.c: * libnautilus/nautilus-icons-view-icon-item.c: Renamed gdk-extensions to add the nautilus- prefix and changed all includers. * src/Makefile.am: * src/explorer-location-bar.c: * src/explorer-location-bar.h: * src/nautilus-location-bar.c: * src/nautilus-location-bar.h: * src/ntl-window-msgs.c: * src/ntl-window.c: Renamed ExplorerLocationBar to NautilusLocationBar. * src/Makefile.am: * src/nautilus-bookmarklist.c: * src/nautilus-bookmarklist.h: * src/nautilus-bookmark-list.c: * src/nautilus-bookmark-list.h: * src/nautilus-bookmarks-window.c: * src/nautilus-bookmarks-window.h: * src/nautilus-window-menus.c: Renamed NautilusBookmarklist to NautilusBookmarkList. * RENAMING: Marked items done and added some new ones. * nautilus-widgets/nautilus-preferences-item.c: * nautilus-widgets/nautilus-preferences.c: * nautilus-widgets/test-nautilus-widgets.c: * libnautilus/nautilus-icon-factory.c: * src/file-manager/fm-directory-view-icons.c: * src/file-manager/fm-directory-view.c: * src/file-manager/fm-icon-text-window.c: Cleaned up the interface to NautilusPreferences a bit.