summaryrefslogtreecommitdiff
path: root/src/nautilus-main.c
Commit message (Collapse)AuthorAgeFilesLines
...
* When restarting with "nautilus --restart", use XML file session save /Christian Neumair2008-03-291-12/+10
| | | | | | | | | | | | | | 2008-03-29 Christian Neumair <cneumair@gnome.org> * src/nautilus-application.c (nautilus_application_save_session_to_file), (save_session): * src/nautilus-application.h: * src/nautilus-main.c (main): * src/nautilus-shell.c (open_windows_at_idle), (restart_at_idle): When restarting with "nautilus --restart", use XML file session save / load mechanism, instead of writing to / reading from GConf. svn path=/trunk/; revision=13998
* Call eel_debug_shut_down() after freeing NautilusApplications (fixesAlexander Larsson2008-02-201-2/+2
| | | | | | | | | | | | | | 2008-02-20 Alexander Larsson <alexl@redhat.com> * src/nautilus-main.c: Call eel_debug_shut_down() after freeing NautilusApplications (fixes warning about bookmark leaks). Pointed out by Christian Neumair svn path=/trunk/; revision=13780
* 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
* Clear caches on shutdown to help track leaks.Alexander Larsson2008-01-221-0/+2
| | | | | | | | | | | | 2008-01-22 Alexander Larsson <alexl@redhat.com> * src/nautilus-main.c: (main): Clear caches on shutdown to help track leaks. svn path=/trunk/; revision=13637
* Don't check for unportable functions, fixes #396923Sven Herzberg2008-01-101-1/+1
| | | | | | | | | | | | | | 2008-01-10 Sven Herzberg <herzi@gnome-de.org> Don't check for unportable functions, fixes #396923 Reviewed by Alex. * configure.in: don't check for unportable functions to modify the environment * src/nautilus-main.c: don't use putenv(), use g_unsetenv() svn path=/trunk/; revision=13589
* Set desktop env for GAppInfoAlexander Larsson2008-01-041-0/+4
| | | | | | | | | | | | | | | 2008-01-04 Alexander Larsson <alexl@redhat.com> * configure.in: * src/nautilus-main.c: Set desktop env for GAppInfo * libnautilus-private/nautilus-open-with-dialog.c: Filter out apps that don't take file args from open with list. svn path=/trunk/; revision=13558
* Disable unsafe segv handler by defaultAlexander Larsson2007-12-171-7/+16
| | | | | | | | | | | 2007-12-17 Alexander Larsson <alexl@redhat.com> * src/nautilus-main.c: (setup_debug_log_signals): Disable unsafe segv handler by default svn path=/trunk/; revision=13533
* Removed. Removed. Removed.Alexander Larsson2007-12-101-2/+0
| | | | | | | | | | | | | | | | | | | | | | 2007-12-10 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-directory-async.c: * libnautilus-private/nautilus-directory-metafile.[ch]: * libnautilus-private/nautilus-metafile.[ch]: * libnautilus-private/nautilus-directory-private.h: * libnautilus-private/nautilus-directory.c: * libnautilus-private/Makefile.am: * libnautilus-private/nautilus-directory-metafile-monitor.[ch]: Removed. * libnautilus-private/nautilus-metafile-factory.[ch]: Removed. * libnautilus-private/nautilus-metafile-server.idl: Removed. * src/nautilus-application.c: * src/nautilus-main.c: * src/nautilus-spatial-window.c: Remove the bonobo layer for metadata, as we're always in-process anyway these days. svn path=/trunk/; revision=13515
* Merge gio-branchAlexander Larsson2007-11-301-11/+3
| | | | svn path=/trunk/; revision=13464
* Optionally support XMP metadata in images via exemi (#451380) Patch fromAlexander Larsson2007-07-241-0/+8
| | | | | | | | | | | | | | 2007-07-24 Alexander Larsson <alexl@redhat.com> * configure.in: * src/Makefile.am: * src/nautilus-image-properties-page.c: * src/nautilus-main.c: Optionally support XMP metadata in images via exemi (#451380) Patch from Hubert Figuiere svn path=/trunk/; revision=13021
* Use the write-to-a-pipe trick from the signal handler instead of queueingFederico Mena Quintero2006-11-231-15/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-11-23 Federico Mena Quintero <federico@novell.com> Use the write-to-a-pipe trick from the signal handler instead of queueing an idle handler from there. * src/nautilus-main.c (setup_debug_log_signals): Set up a pair of pipes for the SIGUSR1 handler; set up a GIOChannel on them. (sigusr1_handler): Write a byte to our pipe instead of queueing an idle handler. (debug_log_io_cb): Replaces dump_debug_log_idle_cb(). Read from the pipe, and dump the debug log. Add a configuration file for the logging mechanism. You create ~/nautilus-debug-log.conf as a GKeyFile. * libnautilus-private/nautilus-debug-log.c (nautilus_debug_log_load_configuration): New function; loads the configuration from a key file like this: [debug log] enable domains = foo; bar; baz max lines = 1000 * libnautilus-private/nautilus-debug-log.c (dump_configuration): New utility function. (nautilus_debug_log_dump): At the end of the log, dump the configuration used for the debug log so that the user can re-create it later. * libnautilus-private/nautilus-debug-log.h: New prototype for nautilus_debug_log_load_configuration(). * src/nautilus-main.c (setup_debug_log): Load the debug log's configuration from ~/nautilus-debug-log.conf (setup_debug_log_domains): Removed. * src/nautilus-main.c (log_override_cb): If the log level of the message is G_LOG_LEVEL_DEBUG, don't log it as a milestone. We'll use this log level for miscellaneous debugging messages from gnome-vfs. Also, don't send G_LOG_LEVEL_DEBUG messages to the default log handler, to avoid a huge ~/.xsession-errors. (setup_debug_log_domains): Enable logging for NAUTILUS_DEBUG_LOG_DOMAIN_GLOG.
* 2006-11-23 Alexander Larsson <alexl@redhat.com>Alexander Larsson2006-11-231-0/+142
| | | | * Commit federicos debug logging patch:
* Make the session restart work again (from 2006-11-03 change) Make theAlexander Larsson2006-11-071-1/+7
| | | | | | | | | | 2006-11-07 Alexander Larsson <alexl@redhat.com> * src/nautilus-application.c: * src/nautilus-shell.c: * src/nautilus-main.[ch]: Make the session restart work again (from 2006-11-03 change) Make the session not restart nautilus on --quit
* Always use the in-process metafile factory. We don't need it oop, sinceAlexander Larsson2006-11-031-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-11-03 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-directory-metafile.c: Always use the in-process metafile factory. We don't need it oop, since nautilus is single process these days. This fixes some strange races with bonobo-activation that caused #351713 * src/nautilus-application.[ch]: * src/nautilus-shell.h: Change the way we use bonobo-activation to get the NautilusShell so that we don't rely on bonobo-activation-server to spawn nautilus, as this could lead to some strange duplicate processes. We now directly try to register the app-wide shell object with bonobo-activation manually and activate it with Bonobo_ACTIVATION_FLAG_EXISTING_ONLY. * src/nautilus-shell.c: Handle all corba calls from the NautilusShell in an idle handler. This fixes some crashes where we reentered badly into e.g. quit when calling gconf. * src/nautilus-main.c: Since we now handle the initial open_window shell calls via an idle we need to delay until idle time to know if we can quit or not.
* Shut down eel before GnomeVFS.Christian Neumair2006-10-191-2/+5
| | | | | | | 2006-10-19 Christian Neumair <chris@gnome-de.org> * src/nautilus-main.c: (main): Shut down eel before GnomeVFS.
* Call setlocale() before we try to obtain any translations. Fixes bugFederico Mena Quintero2006-08-151-0/+5
| | | | | | | | 2006-08-15 Federico Mena Quintero <federico@novell.com> * src/nautilus-main.c (main): Call setlocale() before we try to obtain any translations. Fixes bug #342147. Patch by Stanislav Brabec <sbrabec@suse.cz>.
* Unref GnomeProgram at the end. (#348429)Martin Wehner2006-07-251-2/+1
| | | | | | | | | 2006-07-25 Martin Wehner <martin.wehner@gmail.com> * src/nautilus-main.c: (main): Unref GnomeProgram at the end. (#348429) Patch from Christian Persch <chpe@gnome.org>
* Add complete session management, remember maximization state and type ofChristian Neumair2006-06-211-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-06-21 Christian Neumair <chris@gnome-de.org> Add complete session management, remember maximization state and type of open windows, save history on quit. * libnautilus-private/nautilus-global-preferences.c * libnautilus-private/nautilus-global-preferences.h: Add NAUTILUS_PREFERENCES_NAVIGATION_WINDOW_MAXIMIZED setting. * libnautilus-private/nautilus-metadata.h: Add NAUTILUS_METADATA_KEY_WINDOW_MAXIMIZED key. * src/nautilus-application.c: * src/nautilus-application.h: Save session on session save request, add nautilus_application_load_session(), move initial navigational geometry handling to nautilus_application_create_navigation_window, maximize window if NAUTILUS_PREFERENCES_NAVIGATION_WINDOW_MAXIMIZED is set. * src/nautilus-main.c: Add "--load-session" parameter. * src/nautilus-shell-interface.idl: * src/nautilus-shell.c: Add load_session CORBA method. * src/nautilus-navigation-window.c: * src/nautilus-spatial-window.c: Save maximized state when appropriate. * src/nautilus-window-manage-views.c: Load maximized state for spatial windows, remove navigation window geometry handling. * src/nautilus-window.c: * src/nautilus-window-private.h: Add nautilus_add_to_history_list_no_notify.
* Remove poptAlexander Larsson2006-04-261-42/+29
| | | | | | | | | | | | 2006-04-26 Alexander Larsson <alexl@redhat.com> * configure.in: Remove popt * src/nautilus-connect-server-dialog-main.c: * src/nautilus-main.c: Convert from popt to goption. Based on patch from Philip Van Hoof
* Remove icon registration, as its no longer needed with gtk 2.9.Alexander Larsson2006-04-251-35/+0
| | | | | | | | | | | 2006-04-25 Alexander Larsson <alexl@redhat.com> * src/nautilus-main.c: Remove icon registration, as its no longer needed with gtk 2.9. * src/nautilus-window-menus.c: (nautilus_menus_append_bookmark_to_menu): Remove bogus TODO.
* Use g_(un)setenv instead of their eel_ counterparts.Martin Wehner2006-04-071-1/+1
| | | | | | | | | | | 2006-04-08 Martin Wehner <martin.wehner@gmail.com> * src/file-manager/fm-directory-view.c: (set_script_environment_variables), (unset_script_environment_variables): * src/nautilus-main.c: (main): * src/nautilus-shell.c: (corba_restart): Use g_(un)setenv instead of their eel_ counterparts.
* Speed up stock icon registration, as discussed on the mailing list:Christian Neumair2006-03-201-39/+10
| | | | | | | | | | | | | | | | | | | | | | | | 2006-03-19 Christian Neumair <chris@gnome-de.org> * src/nautilus-main.c: (register_icons): Speed up stock icon registration, as discussed on the mailing list: http://mail.gnome.org/archives/nautilus-list/2006-March/msg00036.html Also fixes #335158. * src/nautilus-spatial-window.c: (action_add_bookmark_callback): Don't add location bookmark for desktop windows. Fixes #334860. * libnautilus-private/nautilus-file-operations.c: (nautilus_file_operations_copy_move): Check whether enclosing volume for any of the source files is read-only, and set GNOME_VFS_XFER_TARGET_DEFAULT_PERMS in this case. Fixes #167102. * libnautilus-private/nautilus-file-utilities.c: * libnautilus-private/nautilus-file-utilities.h: Add nautilus_get_enclosing_volume.
* Use gi18n.h instead of deprecated gnome-i18n.h header.Martin Wehner2006-03-181-1/+1
| | | | | | | | | | | | | | | | | | 2006-03-18 Martin Wehner <martin.wehner@gmail.com> * libnautilus-private/*.c: * src/file-manager/*.c: * src/*.c: Use gi18n.h instead of deprecated gnome-i18n.h header. * libnautilus-private/nautilus-query.c: (nautilus_query_to_readable_string): Mark string for translation. * po/POTFILES.in: Add nautilus-query.c Patch from Wouter Bolsterlee <uws+gnome@xs4all.nl>
* Disable network icon on desktop by default.Alexander Larsson2005-12-151-1/+1
| | | | | | | | | | | | | | 2005-12-15 Alexander Larsson <alexl@redhat.com> * libnautilus-private/apps_nautilus_preferences.schemas.in: * libnautilus-private/nautilus-global-preferences.c: Disable network icon on desktop by default. * src/nautilus-main.c: * src/nautilus-navigation-window-ui.xml: * src/nautilus-spatial-window-ui.xml: * src/nautilus-window-menus.c: Add network to go/places menu.
* Always use gnome-fs-home for home icon.Alexander Larsson2005-11-141-1/+1
| | | | | | | | | 2005-11-14 Alexander Larsson <alexl@redhat.com> * src/file-manager/fm-tree-view.c: (create_tree): * src/nautilus-main.c: (register_icons): * src/nautilus-window-menus.c: Always use gnome-fs-home for home icon.
* Revert the GDK threading patch as it causes major freezage. Fixes #313588.Martin Wehner2005-08-171-2/+0
| | | | | | | | 2005-08-17 Martin Wehner <martin.wehner@gmail.com> * src/nautilus-main.c: (main): Revert the GDK threading patch as it causes major freezage. Fixes #313588.
* Initialize the GDK threading system. Fixes #312894.Raffaele Sandrini2005-08-121-0/+3
| | | | | | | 2005-08-12 Raffaele Sandrini <rasa@gmx.ch> * src/nautilus-main.c: Initialize the GDK threading system. Fixes #312894.
* Lots of cleanups. Closes bug #313094 and bug #149714Kjartan Maraas2005-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Merge fix for leak Bug #172234.Kjartan Maraas2005-04-191-0/+2
| | | | | | | 2005-04-19 Kjartan Maraas <kmaraas@gnome.org> * src/nautilus-main.c: (main): Merge fix for leak Bug #172234.
* If launched without startup-notification, make an approximation to whenElijah Newren2005-03-031-0/+63
| | | | | | | | | | | | | | | | 2005-03-03 Elijah Newren <newren@gmail.com> If launched without startup-notification, make an approximation to when the launch occurred so that focus-stealing-prevention will work better. * src/nautilus-main.c: (slowly_and_stupidly_obtain_timestamp): new function, (main): if no startup id provided, ping xserver for a timestamp and make a dummy startup_id with it. * src/nautilus-application.c: (end_startup_notification): don't set _NET_STARTUP_ID if given a fake startup_id, remove commented out warning that should now no longer be needed
* Enable startup notification.Alexander Larsson2005-02-141-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-02-14 Alexander Larsson <alexl@redhat.com> * data/applications.desktop.in: * data/favorites.desktop.in: * src/network-scheme.desktop.in: * nautilus-computer.desktop.in: * nautilus-folder-handler.desktop.in: * nautilus-home.desktop.in: * nautilus.desktop.in: Enable startup notification. * src/nautilus-application.c: * src/nautilus-application.h: * src/nautilus-bookmarks-window.c: * src/nautilus-connect-server-dialog-nonmain.c: * src/nautilus-location-bar.c: * src/nautilus-main.c: * src/nautilus-navigation-window-menus.c: * src/nautilus-shell-interface.idl: * src/nautilus-shell.c: * src/nautilus-window-manage-views.c: * src/nautilus-window-private.h: * src/nautilus-window.c: Handle startup notification across corba activation. Patch from Elijah Newren <newren@gmail.com>
* Don't try to free NULL icon info.Martin Wehner2005-01-271-1/+3
| | | | | | | 2005-01-27 Martin Wehner <martin.wehner@epost.de> * src/nautilus-main.c: (register_icons): Don't try to free NULL icon info.
* Don't leak the icon infoKjartan Maraas2005-01-271-1/+1
| | | | | | 2005-01-27 Kjartan Maraas <kmaraas@gnome.org> * src/nautilus-main.c: Don't leak the icon info
* Better default icon. Patch from Jaap Haitsma <jaap@haitsma.org>Alexander Larsson2005-01-181-0/+3
| | | | | | | | | 2005-01-18 Alexander Larsson <alexl@redhat.com> * src/nautilus-main.c: (main): * src/nautilus-window.c: (nautilus_window_class_init): Better default icon. Patch from Jaap Haitsma <jaap@haitsma.org>
* Remove debug spewAlexander Larsson2005-01-121-1/+0
| | | | | | | 2005-01-12 Alexander Larsson <alexl@redhat.com> * src/nautilus-main.c (register_icons): Remove debug spew
* Special case icons for burn: and computer:Alexander Larsson2005-01-111-17/+41
| | | | | | | | | | | | | | | | 2005-01-11 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-icon-factory.c: (nautilus_icon_factory_get_icon_for_file): Special case icons for burn: and computer: * src/nautilus-main.c: (register_icons): * src/nautilus-navigation-window-menus.c: * src/nautilus-window-menus.c: Fix up icons and names in go/places menu. Fixes #162750 and #149941 Based on patch from dennis_cranston@yahoo.com and Jaap A. Haitsma
* Merge bonobo-slay-branchAlexander Larsson2004-11-221-6/+0
| | | | | 2004-11-22 Alexander Larsson <alexl@redhat.com> * Merge bonobo-slay-branch
* Avoid multiple x-directory/normal warningsAlexander Larsson2004-08-231-1/+1
| | | | | | | | | | | | | | | | | | | 2004-08-23 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file.c: (get_description): Avoid multiple x-directory/normal warnings * libnautilus-private/nautilus-program-chooser.[ch]: cvs remove old code * libnautilus-private/nautilus-global-preferences.[ch]: * libnautilus-private/nautilus-view-query.c: * src/nautilus-applicable-views.c: * src/nautilus-main.c: Make default component for folders just use the gconf setting instead of the short list (which is essentially random). Remove component picking for non-folders. Remove unused code.
* Make strings in main() more easily translatable.Dafydd Harries2004-07-231-3/+7
|
* Use GtkIconTheme instead of GnomeIconThemeAlexander Larsson2003-12-181-7/+8
| | | | | | | | | | | 2003-12-18 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-emblem-utils.c: * libnautilus-private/nautilus-icon-factory.[ch]: * src/nautilus-main.c: * src/nautilus-server-connect.c: * src/nautilus-window-manage-views.c: Use GtkIconTheme instead of GnomeIconTheme
* New desktop filesAlexander Larsson2003-11-061-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-06 Alexander Larsson <alexl@redhat.com> * Makefile.am: * nautilus-computer.desktop.in: * nautilus-home.desktop.in: New desktop files * nautilus.desktop.in: Make this one "browse filesystem" * libnautilus-private/apps_nautilus_preferences.schemas.in: * libnautilus-private/nautilus-global-preferences.c: * libnautilus-private/nautilus-global-preferences.h: computer desktop icon prefs * libnautilus-private/nautilus-desktop-icon-file.c: (update_info_from_link): Set permissions too * libnautilus-private/nautilus-desktop-link-monitor.c: * libnautilus-private/nautilus-desktop-link.[ch]: Add computer icon * src/Makefile.am: * src/nautilus-connect-server-dialog.[ch]: Connect server dialog * src/file-manager/fm-directory-view.c: Mount drives on activation. * src/file-manager/fm-icon-container.c: Sort computer first * src/file-manager/fm-properties-window.c: Put back NautilusDesktopLink handling for e.g. computer and home. * src/nautilus-application.[ch]: Reload dirs on mounts. add browser_window argument on open window * src/nautilus-main.c: add browser_window argument on open window (--browser) hack to register computer icon * src/nautilus-shell-interface.idl: * src/nautilus-shell.c: add browser_window argument on open window * src/nautilus-navigation-window-ui.xml: * src/nautilus-spatial-window-ui.xml: * src/nautilus-window-menus.c: Add connect to server Add computer * src/nautilus-window.c: Nice title for burn:///
* Call gnome_vfs_shutdown before unreffing application to avoid crashes onAlexander Larsson2003-09-181-1/+10
| | | | | | | | 2003-09-18 Alexander Larsson <alexl@redhat.com> * src/nautilus-main.c (main): Call gnome_vfs_shutdown before unreffing application to avoid crashes on shutdown.
* Don't add .so to the server files. This makes it work on systems thatAlexander Larsson2003-04-161-6/+17
| | | | | | | | | | | | | | | | 2003-04-16 Alexander Larsson <alexl@redhat.com> * components/emblem/Nautilus_View_emblem.server.in.in: * components/history/Nautilus_View_history.server.in.in: * components/image_properties/Nautilus_View_image_properties.server.in.in: * components/notes/Nautilus_View_notes.server.in.in: * components/tree/Nautilus_View_tree.server.in.in: Don't add .so to the server files. This makes it work on systems that don't use .so as the library name. * src/nautilus-main.c: (main): * src/nautilus-server-connect.c: (browse): Don't initialize array to a non-constant value.
* Call g_set_application_name(). String change.Alexander Larsson2003-03-141-0/+2
| | | | | | | | 2003-03-14 Alexander Larsson <alexl@redhat.com> * src/nautilus-main.c (main): Call g_set_application_name(). String change.
* Don't use deprecated APIs. Patch by iain <iain@prettypeople.org>Alexander Larsson2003-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-28 Alexander Larsson <alexl@redhat.com> * components/throbber/nautilus-throbber.c: * libnautilus-private/nautilus-bonobo-extensions.c: * libnautilus-private/nautilus-directory-async.c: * libnautilus-private/nautilus-directory.c: * libnautilus-private/nautilus-dnd.c: * libnautilus-private/nautilus-drag-window.c: * libnautilus-private/nautilus-entry.c: * libnautilus-private/nautilus-file-operations-progress.c: * libnautilus-private/nautilus-icon-canvas-item.c: * libnautilus-private/nautilus-icon-container.c: * libnautilus-private/nautilus-metafile.c: * libnautilus-private/nautilus-tree-view-drag-dest.c: * libnautilus-private/nautilus-volume-monitor.c: * libnautilus/nautilus-idle-queue.c: * 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/nautilus-bookmarks-window.c: * src/nautilus-location-bar.c: * src/nautilus-main.c: * src/nautilus-view-frame.c: * src/nautilus-window-menus.c: * src/nautilus-window.c: Don't use deprecated APIs. Patch by iain <iain@prettypeople.org>
* Set DISPLAY activation env variable to canonical display name, since thatAlexander Larsson2003-02-131-1/+6
| | | | | | | | 2003-02-13 Alexander Larsson <alexl@redhat.com> * src/nautilus-main.c (main): Set DISPLAY activation env variable to canonical display name, since that is what we register for. Without this, do *not* run e.g. "DISPLAY=:0 nautilus".
* disable the look_for_kdesktop_recursive code, since this takes ~1 secondMichael Meeks2002-07-101-1/+0
| | | | | | | | | | 2002-07-10 Michael Meeks <michael@ximian.com> * src/nautilus-application.c (is_kdesktop_present): disable the look_for_kdesktop_recursive code, since this takes ~1 second at startup on my Ultra 2. (look_for_kdesktop_recursive, has_wm_state, get_self_typed_prop): don't compile these either.
* guard window creation to avoid re-enterancy, via. other shell calls toMichael Meeks2002-03-181-2/+0
| | | | | | | | | | | | | | | | | | | * src/nautilus-application.c (nautilus_application_create_desktop_window): guard window creation to avoid re-enterancy, via. other shell calls to create windows. * src/nautilus-main.c (main): vfs and bonobo init is done for us by gnome_program_init. * src/nautilus-view-frame.c (nautilus_view_frame_selection_changed), (send_history): check we have a listener before constructing potentially large and slow change notifications. * configure.in: require bonobo 1.113.0 where we have the event source acceleration.
* do a bonobo_ui_init, we shouldn't need it but libgnomeui has escaped fromMichael Meeks2002-03-081-3/+1
| | | | | | | | | | | | | 2002-03-08 Michael Meeks <michael@ximian.com> * src/nautilus-main.c (main): do a bonobo_ui_init, we shouldn't need it but libgnomeui has escaped from doing this for some reason. Remove eel_setenv DISPLAY chicanery * libnautilus/nautilus-view-standard-main.c (nautilus_view_standard_main_multi): remove double bonobo_ui_init.
* Because lots of recent bugs were due to "signal handler called afterDarin Adler2002-03-071-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.