summaryrefslogtreecommitdiff
path: root/src/nautilus-bookmark-list.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't mention FSF addressCosimo Cecchi2014-02-171-2/+1
| | | | | | Use the website instead. https://bugzilla.gnome.org/show_bug.cgi?id=721518
* bookmark: add nautilus_bookmark_get_is_builtin()Cosimo Cecchi2012-10-221-1/+12
| | | | | | Move the builtin check for bookmarks from the sidebar to a method on NautilusBookmark itself, since we need to use the same check in the bookmark window.
* bookmark-list: clear state when loading operation failsCosimo Cecchi2012-10-221-0/+1
| | | | | When the load operation for the bookmark file fails (e.g. because we have no file at all), don't forget to clear the queue state.
* places-sidebar: use the bookmark display nameCosimo Cecchi2012-10-221-2/+12
| | | | | | 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/+11
| | | | Using the previously added API.
* bookmark-list: change item_with_uri() API to use a GFile insteadCosimo Cecchi2012-10-221-11/+11
| | | | | 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-60/+5
|
* bookmark: simplify codeCosimo Cecchi2012-10-191-8/+2
| | | | | No need for nautilus_bookmark_copy(), when we can just g_object_ref() the object.
* bookmark-list: add API to get a NautilusBookmark for a given URICosimo Cecchi2012-09-141-0/+39
| | | | This will be used by the shell search provider.
* bookmark: remove unused GIcon argument to nautilus_bookmark_new()Cosimo Cecchi2012-09-141-1/+1
| | | | We always pass NULL these days.
* Fix gfile leakWilliam Jon McCann2012-09-111-0/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=683769
* Add ability to reorder bookmarksWilliam Jon McCann2012-08-201-9/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=575034
* bookmarks: cleanup NautilusWindow bookmark codeCosimo Cecchi2012-07-161-23/+0
| | | | | | | | | - move NautilusBookmarkList ownership to NautilusApplication, and avoid making it a separate singleton - move NautilusBookmarksWindow ownership to NautilusApplication as well, since it's global and not per-window - remove nautilus-window-bookmarks.[ch], since at this point, it only contains dead or unused code
* bookmark-list: make sure to avoid sync I/O while loading/savingCosimo Cecchi2012-04-301-114/+129
| | | | | | Last patch introduces sync I/O in the load and save paths; avoid that by explicitly using separate threads for saving and loading, thanks to g_simple_async_result_run_in_thread().
* Use new GTK bookmarks locationWilliam Jon McCann2012-04-301-1/+30
| | | | | | | If it doesn't exist fallback to reading from the old location but always write to the new location. https://bugzilla.gnome.org/show_bug.cgi?id=674986
* bookmarks-window: remove methods that deal with geometryCosimo Cecchi2012-04-241-40/+0
| | | | Since we don't actually save or load it from disk, these are useless.
* bookmark-list: avoid setting the bookmark icon by handCosimo Cecchi2011-01-141-26/+5
| | | | | When creating a bookmark from the GTK+ list, otherwise we end up overriding NautilusBookmark's special casing when reloading the list
* all: use new NautilusBookmark APICosimo Cecchi2011-01-121-23/+26
|
* general: use g_list_free_full() instead of eel functionsCosimo Cecchi2010-10-311-4/+4
|
* Set a 'folder-remote' icon if the URI is not native.Cosimo Cecchi2010-05-061-3/+6
| | | | Also, port to the new API.
* Make NautilusBookmarkList a singleton.Cosimo Cecchi2010-05-061-1/+24
|
* Refactor the load/save code for the list.Cosimo Cecchi2010-04-261-94/+161
| | | | Don't use sync i/o anymore. This should also fix bug #532911.
* Bring the object to 2010.Cosimo Cecchi2010-04-261-55/+54
|
* Set rate limit to the file monitor.Cosimo Cecchi2010-04-261-0/+6
|
* Add a method to move bookmarks in the list.Cosimo Cecchi2010-04-261-0/+35
| | | | | So that moving a bookmark in the list doesn't trigger two 'contents-changed' signals in a row.
* Don't rewrite bookmarks file when file appearance changesAlexander Larsson2009-12-111-2/+0
| | | | | | We no longer write the icon to the bookmarks file so this is just unnecessary. Also this means we don't rewrite the bookmark file on each startup.
* Convert g_warning() about inability to write to ~/.gtk-bookmarks toChristian Neumair2008-05-291-2/+2
| | | | | | | | | | 2008-05-29 Christian Neumair <cneumair@gnome.org> * src/nautilus-bookmark-list.c (nautilus_bookmark_list_save_file): Convert g_warning() about inability to write to ~/.gtk-bookmarks to g_message(). svn path=/trunk/; revision=14209
* Handle NULL file. Ignore lines beginning with a space (#512593).Christian Neumair2008-02-281-1/+2
| | | | | | | | | | | 2008-02-28 Christian Neumair <cneumair@gnome.org> * libnautilus-private/nautilus-file.c: (nautilus_file_get_gicon): Handle NULL file. * src/nautilus-bookmark-list.c: (nautilus_bookmark_list_load_file): Ignore lines beginning with a space (#512593). svn path=/trunk/; revision=13852
* reviewed by: Alexander LarssonLuca Ferretti2008-01-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-24 Luca Ferretti <elle.uca@libero.it> reviewed by: Alexander Larsson * libnautilus-private/Makefile.am: * libnautilus-private/nautilus-icon-names.h Add a new file to define icon names, like #define NAUTILUS_ICON_HOME "user-home" using named icons from fd.o icon naming spec. * libnautilus-private/nautilus-desktop-link.c: (nautilus_desktop_link_new): * libnautilus-private/nautilus-link.c: (nautilus_link_get_link_icon_from_desktop): * libnautilus-private/nautilus-trash-monitor.c: (update_info_cb), (nautilus_trash_monitor_init): * src/file-manager/fm-directory-view.c: * src/file-manager/fm-tree-view.c: (create_popup_menu), (create_tree): * src/nautilus-bookmark-list.c: (new_bookmark_from_uri): * src/nautilus-connect-server-dialog-main.c: (main): * src/nautilus-desktop-window.c: (real_get_icon): * src/nautilus-main.c: (main): * src/nautilus-pathbar.c: (get_icon_for_file_path), (get_button_image), (is_file_path_mounted_mount), (make_directory_button): * src/nautilus-places-sidebar.c: (update_places), (bookmarks_drop_uris): * src/nautilus-window-menus.c: Include nautilus-icon-name.h and use its icons defines. This means that now Nautilus is using "user-home", "user-desktop", "folder", "user-trash*", "computer", "drive-harddisk", "folder-remote", "network-workgroup", and "text-x-generic-template". * src/network-scheme.desktop.in: * nautilus-computer.desktop.in.in: * nautilus-file-management-properties.desktop.in.in: * nautilus-folder-handler.desktop.in.in: * nautilus-home.desktop.in.in: * nautilus.desktop.in.in: Use icons from fd.o spec here too. In details, we have Launcher | New Icon ----------------+---------------------- Computer | computer File Browser | system-file-manager Open Folder | folder-open Home Folder | user-home File Management | system-file-manager Network | network-workgroup For other details see bug #407130. svn path=/trunk/; revision=13646
* Require glib 2.15.2Alexander Larsson2008-01-141-2/+2
| | | | | | | | | | | | | | | | 2008-01-14 Alexander Larsson <alexl@redhat.com> * configure.in: Require glib 2.15.2 * libnautilus-private/nautilus-file-utilities.c: * libnautilus-private/nautilus-monitor.c: * libnautilus-private/nautilus-trash-monitor.c: * src/nautilus-bookmark-list.c: Update to new gio API. svn path=/trunk/; revision=13597
* Only use <gio/gio.h> includeAlexander Larsson2007-12-141-3/+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-232/+187
| | | | svn path=/trunk/; revision=13464
* Use pango ellipsisation instead of truncating the strings. Bug #410113.Christian Persch2007-07-241-15/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-24 Christian Persch <chpe@gnome.org> * libnautilus-private/nautilus-bookmark.c: (nautilus_bookmark_menu_item_new): * libnautilus-private/nautilus-customization-data.c: (nautilus_customization_data_new), (nautilus_customization_data_get_next_element_for_display): * libnautilus-private/nautilus-customization-data.h: * src/nautilus-application.c: * src/nautilus-bookmark-list.c: (new_bookmark_from_uri): * src/nautilus-navigation-window-menus.c: (connect_proxy_cb), (refresh_go_menu): * src/nautilus-places-sidebar.c: (bookmarks_drop_uris), (drag_data_received_callback): * src/nautilus-property-browser.c: (make_properties_from_directories): * src/nautilus-window-bookmarks.c: (connect_proxy_cb), (update_bookmarks): * src/nautilus-window-menus.c: (nautilus_menus_append_bookmark_to_menu): * test/test-nautilus-wrap-table.c: (main): Use pango ellipsisation instead of truncating the strings. Bug #410113. svn path=/trunk/; revision=13025
* Don't leak title.Martin Wehner2006-01-211-3/+5
| | | | | | | 2006-01-21 Martin Wehner <martin.wehner@gmail.com> * src/nautilus-bookmark-list.c: (get_default_bookmark_name): Don't leak title.
* Lots of cleanups. Closes bug #313094 and bug #149714Kjartan Maraas2005-08-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-08-12 Kjartan Maraas <kmaraas@gnome.org> Lots of cleanups. Closes bug #313094 and bug #149714 * libnautilus-private/nautilus-directory-background.c: (nautilus_file_background_write_desktop_default_settings): ANSIfication * libnautilus-private/nautilus-file.c: Mark some variables static. * libnautilus-private/nautilus-icon-container.c: (nautilus_icon_container_get_selection): Return NULL not FALSE. * libnautilus-private/nautilus-icon-factory.c: (nautilus_icon_factory_get_thumbnail_factory): ANSIfication * libnautilus-private/nautilus-metafile.c: Static variables * libnautilus-private/nautilus-program-choosing.c: (slowly_and_stupidly_obtain_timestamp): Sparse fix * src/file-manager/fm-icon-view.c: (fm_icon_view_get_background_widget): FALSE vs NULL * src/file-manager/fm-list-view.c: (filename_cell_data_func): Plug a leak. Bug #313094. * src/file-manager/fm-tree-model.c: (fm_tree_model_iter_get_file): NULL vs 0. * src/nautilus-bookmark-list.c: (nautilus_bookmark_list_get_file_path), (nautilus_bookmark_list_load_file): ANSIfication * src/nautilus-bookmarks-window.c: (bookmarks_delete_bookmark): ANSIfication * src/nautilus-main.c: (slowly_and_stupidly_obtain_timestamp): NULL vs 0. * src/nautilus-self-check-functions.c: (nautilus_run_self_checks): ANSIfication
* Fix handling of notification of .gtk-bookmark file changes.Alexander Larsson2005-06-231-5/+9
| | | | | | | | | | | | | | | | | | | | 2005-06-23 Alexander Larsson <alexl@redhat.com> * src/nautilus-bookmark-list.c: Fix handling of notification of .gtk-bookmark file changes. * src/Makefile.am: * src/nautilus-window-bookmarks.[ch]: * src/nautilus-application.c: * src/nautilus-navigation-window-menus.c: * src/nautilus-navigation-window.[ch]: * src/nautilus-spatial-window-ui.xml: * src/nautilus-spatial-window.c: * src/nautilus-window-menus.c: * src/nautilus-window-private.h: * src/nautilus-window.[ch]: Move most bookmark stuff to nautilus-window-bookmarks and put bookmarks in spatial windows too.
* Patch from Jamie McCracken <jamiemcc@blueyonder.co.uk>Alexander Larsson2005-06-231-94/+229
| | | | | | | | | | | | | | | | | | | | | | 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].
* Fix leaks. Patch from Martin Wehner <martin.wehner@epost.de>Alexander Larsson2003-10-211-0/+1
| | | | | | | | | | | | | 2003-10-21 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-desktop-link.c: * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-file.c: * libnautilus-private/nautilus-icon-factory.c: * src/nautilus-application.c: * src/nautilus-bookmark-list.c: Fix leaks. Patch from Martin Wehner <martin.wehner@epost.de>
* Merge the new-icon-factory-branch branch to HEAD.Alexander Larsson2002-09-181-11/+2
| | | | | | 2002-09-18 Alexander Larsson <alexl@redhat.com> Merge the new-icon-factory-branch branch to HEAD.
* Unref target_uri before returning when eel_uri_is_trashDave Camp2002-08-121-0/+1
| | | | | | | | | | | | | | | | | 2002-08-12 Dave Camp <dave@ximian.com> * libnautilus-private/nautilus-dnd.c: (nautilus_drag_default_drop_action_for_icons): Unref target_uri before returning when eel_uri_is_trash (target_uri_string). * libnautilus-private/nautilus-file-operations.c: (append_basename): Free the filename returned from gnome_vfs_uri_etract_short_name(). * libnautilus-private/nautilus-theme.c: (attributes_free): Free the attributes struct. * libnautilus-private/nautilus-undo-manager.c: (finalize): Free the details struct. * src/nautilus-bookmark-list.c: (append_bookmark_node): Free the mime type string.
* Modified Files: ChangeLog components/music/nautilus-music-view.cGregory Merchan2002-07-081-1/+1
| | | | | | | | | | | | | | | | | | | Modified Files: ChangeLog components/music/nautilus-music-view.c components/news/nautilus-news.c libnautilus-private/nautilus-customization-data.c libnautilus-private/nautilus-directory-async.c libnautilus-private/nautilus-file-utilities.c libnautilus-private/nautilus-file-utilities.h libnautilus-private/nautilus-find-icon-image.c libnautilus-private/nautilus-icon-factory.c libnautilus-private/nautilus-link-historical.c libnautilus-private/nautilus-theme.c src/nautilus-application.c src/nautilus-bookmark-list.c src/nautilus-first-time-druid.c src/nautilus-property-browser.c src/nautilus-window-menus.c src/file-manager/fm-desktop-icon-view.c Removed nautilus_make_path and calls to it. Fixes bug #42424
* Check that the file exists before trying to parse it. This stops libxmlAnders Carlsson2002-05-101-0/+5
| | | | | | | | 2002-05-10 Anders Carlsson <andersca@gnu.org> * src/nautilus-bookmark-list.c: (nautilus_bookmark_list_load_file): Check that the file exists before trying to parse it. This stops libxml from spewing crack "entity not found" messages.
* Because lots of recent bugs were due to "signal handler called afterDarin Adler2002-03-071-13/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Tons of files: Because lots of recent bugs were due to "signal handler called after object gone" problems, switched many calls of g_signal_connect and g_signal_connect_swapped to use g_signal_connect_object instead. Also did other signal-related cleanup and changed some destroys to finalizes. * libnautilus/nautilus-view-standard-main.h: We no longer need to include nautilus-view.h in here. So include it in the files that use this instead. Did merges from stable branch: 2001-10-25 Darin Adler <darin@bentspoon.com> * libnautilus-private/nautilus-directory.c: (call_files_changed_common), (call_files_changed_free_list), (call_files_changed_unref_free_list), (nautilus_directory_notify_files_changed): Move call to nautilus_directory_add_file_to_work_queue into a better bottleneck; now it catches all the notify cases, not just changed. Also tell it to re-get top-left text and link info too when we get a changed notice. * src/file-manager/fm-directory-view.c: (queue_pending_files): Don't use the timeout (and the hysteresis) when queuing files once the initial directory load is complete. Doing this was causing delays processing changes that came in later, which we don't want. * src/nautilus-sidebar-title.c: (item_count_ready), (monitor_add), (update_all), (nautilus_sidebar_title_set_file): Monitor the directory count once we get it the first time. This makes sure that changes in the directory count get reflected in the sidebar without creating a race with the main view to see who calculates it first. 2001-10-25 Alex Larsson <alexl@redhat.com> * libnautilus-private/nautilus-directory.c (nautilus_directory_notify_files_changed): Call nautilus_directory_add_file_to_work_queue() when file_info is invalidated. Otherwise it will not be read again.
* Move reset constant into header.Darin Adler2002-03-011-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libnautilus-private/nautilus-dnd.h: Move reset constant into header. * libnautilus-private/nautilus-file.c: (nautilus_file_get_display_name): Use g_locale_to_utf8, so this works even when G_BROKEN_FILENAMES is not set. * libnautilus-private/nautilus-icon-dnd.c: Rearrange and clean up code a bit. * src/nautilus-property-browser.c: (nautilus_property_browser_destroy), (add_new_pattern), (show_color_selection_window), (add_new_color), (add_new_emblem): * src/nautilus-sidebar-title.c: (update_icon): Get rid of dead code that gets uri and doesn't use it. It's been showing up in bug reports too, so this is especially nice. * src/nautilus-window-manage-views.h: * src/nautilus-window-manage-views.c: (nautilus_window_manage_views_destroy), (nautilus_window_manage_views_finalize): Break this up into two functions again. * src/nautilus-window.c: (nautilus_window_destroy): Re-add this, because some of the cleanup has to be done at destroy time. (nautilus_window_finalize): Move some of this out. (nautilus_window_class_init): Set up both. * components/text/nautilus-text-view.c: * components/tree/nautilus-tree-model.c: * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-program-choosing.c: * src/file-manager/fm-directory-view.c: * src/nautilus-bookmark-list.c: Miscellaneous porting to new names of functions, getting off less-desirable functions.
* add -DFOO_DISABLE_DEPRECATED to disable glib, gtk, and gnome deprecatedjacob berkman2002-02-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-14 jacob berkman <jacob@ximian.com> * src/Makefile.am: * src/file-manager/Makefile.am: add -DFOO_DISABLE_DEPRECATED to disable glib, gtk, and gnome deprecated calls * src/file-manager/fm-desktop-icon-view.c: * src/file-manager/fm-directory-view.c: * src/file-manager/fm-icon-view.c: * src/file-manager/fm-properties-window.c: * src/file-manager/fm-search-list-view.c: * src/nautilus-about.c: * src/nautilus-application.c: * src/nautilus-bookmark-list.c: * src/nautilus-bookmarks-window.c: * src/nautilus-complex-search-bar.c: * src/nautilus-location-bar.c: * src/nautilus-main.c: * src/nautilus-navigation-bar.c: * src/nautilus-property-browser.c: * src/nautilus-search-bar-criterion.c: * src/nautilus-shell.c: * src/nautilus-sidebar-tabs.c: * src/nautilus-sidebar-title.c: * src/nautilus-sidebar.c: * src/nautilus-simple-search-bar.c: * src/nautilus-switchable-navigation-bar.c: * src/nautilus-switchable-search-bar.c: * src/nautilus-theme-selector.c: * src/nautilus-view-frame.c: * src/nautilus-window-manage-views.c: * src/nautilus-window-menus.c: * src/nautilus-window-toolbars.c: * src/nautilus-window.c: * src/nautilus-zoom-control.c: port to non-deprecated calls. This was mostly GnomeDialog -> GtkDialog and gtk_signal -> g_signal
* Require at least libxml 2.4.7, since that's the version where xmlFree andDarin Adler2002-02-121-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Require at least libxml 2.4.7, since that's the version where xmlFree and friends were moved out of <libxml/xmlmemory.h>. * components/news/nautilus-news.c: * components/text/nautilus-text-view.c: * libnautilus-private/nautilus-customization-data.c: * libnautilus-private/nautilus-directory-async.c: * libnautilus-private/nautilus-find-icon-image.c: * libnautilus-private/nautilus-link-desktop-file.c: * libnautilus-private/nautilus-link-historical.c: * libnautilus-private/nautilus-link.c: * libnautilus-private/nautilus-metafile.c: * libnautilus-private/nautilus-theme.c: * libnautilus-private/nautilus-volume-monitor.c: * src/nautilus-bookmark-list.c: * src/nautilus-property-browser.c: * src/nautilus-window-menus.c: Remove unneeded include of <libxml/xmlmemory.h>. * components/tree/nautilus-tree-model.c: (get_node_uri): New, used only for logging ref. counts. (decrement_ref_count): New. (abandon_node_ref_count): New. (abandon_dummy_row_ref_count): New. (report_dummy_row_inserted): Do nothing if the parent is not yet in the inserted state. (report_dummy_row_deleted): Make it abandon any lingering ref count that's still in the dummy row. (report_node_inserted): Make it report that the dummy node is inserted if the node starts with a dummy child. Also, set the new inserted state so we know this node is live. (report_node_contents_changed): Do nothing if the node is not yet in the inserted state. (report_node_has_child_toggled): Do nothing if the node is not yet in the inserted state. (report_dummy_row_contents_changed): Do nothing if the parent is not yet in the inserted state. (stop_monitoring_directory): Set done_loading to FALSE so we'll get a dummy node for directories we are not monitoring. (destroy_node_without_reporting): Abandon any ref count left in the node. Also set the inserted state to FALSE before destroying children. (destroy_node): Report if the parent gains a dummy node as a result of destroying this node. (update_node_without_reporting): Don't clear done_loading any more, since stop_monitoring_directory does it now. (reparent_node): Abandon any ref count that's still in the node before reparenting it. (schedule_destroy_unneeded_children): New. (last_child_unref): Use new schedule_destroy_unneeded_children function so we cna share code with the new abandon ref count functions. (nautilus_tree_model_ref_node), (nautilus_tree_model_unref_node): Add some logging for debugging purposes. * components/tree/nautilus-tree-view.c: (compare_rows): Sort function to use when GtkTreeModelSort works. (create_tree): Hook up sort function.
* lots of files Get rid of casts in callers to g_object_ref/g_object_unref.Darin Adler2001-12-071-3/+3
| | | | | | * lots of files Get rid of casts in callers to g_object_ref/g_object_unref. Remove parameters to eel_make_warnings_and_criticals_stop_in_debugger.
* Skip over non-element nodes when walking libxml DOM tree.Darin Adler2001-12-011-0/+4
| | | | | | | | | | * src/nautilus-property-browser.c: (remove_color), (make_properties_from_xml_node), (nautilus_property_browser_update_contents): Skip over non-element nodes when walking libxml DOM tree. * libnautilus-private/nautilus-theme.c: (nautilus_theme_get_theme_data_from_theme): Whitespace tweak.
* Lots of files. Get rid a lot of unneeded casts.Darin Adler2001-11-091-3/+3
| | | | | * Lots of files. Get rid a lot of unneeded casts.
* Lots of files. Another GtkObject -> GObject pass.Darin Adler2001-11-061-3/+3
| | | | | * Lots of files. Another GtkObject -> GObject pass.