aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-dbus.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't crash when we cannot connect to the system dbus. Bug #336557.Christian Persch2006-04-031-5/+18
| | | | | | | | | | | 2006-04-03 Christian Persch <chpe@cvs.gnome.org> * src/ephy-dbus.c: (ephy_dbus_get_bus): * src/ephy-net-monitor.c: (ephy_net_monitor_check_for_active_device), (ephy_net_monitor_attach_to_dbus), (ephy_net_monitor_startup): Don't crash when we cannot connect to the system dbus. Bug #336557.
* Don't try to connect to the session bus when we're starting a privateChristian Persch2006-03-031-8/+10
| | | | | | | | | 2006-03-02 Christian Persch <chpe@cvs.gnome.org> * src/ephy-dbus.c: (_ephy_dbus_startup): Don't try to connect to the session bus when we're starting a private instance.
* Only claim the DBUS name when not running as private instance.Christian Persch2006-02-031-3/+53
| | | | | | | | | | | | 2006-02-03 Christian Persch <chpe@cvs.gnome.org> * src/ephy-dbus.c: (ephy_dbus_connect_to_session_bus), (ephy_dbus_get_property), (ephy_dbus_set_property), (ephy_dbus_class_init), (_ephy_dbus_startup): * src/ephy-dbus.h: * src/ephy-main.c: (main): Only claim the DBUS name when not running as private instance.
* Queue commands received from the main and remote instances, and processChristian Persch2006-02-021-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-02 Christian Persch <chpe@cvs.gnome.org> * src/ephy-session.c: (save_yourself_cb), (die_cb), (session_command_free), (session_command_find), (resume_dialog_response_cb), (resume_dialog_weak_ref_cb), (session_command_autoresume), (session_command_open_bookmarks_editor), (session_command_open_uris), (session_command_dispatch), (session_command_queue_next), (session_command_queue_clear), (ephy_session_init), (ephy_session_dispose), (ephy_session_finalize), (ephy_session_close), (ephy_session_load), (ephy_session_get_active_window), (ephy_session_queue_command): * src/ephy-session.h: * src/ephy-main.c: (unref_proxy_reply_cb), (open_urls), (call_dbus_proxy), (queue_commands), (main): Queue commands received from the main and remote instances, and process them after autoresume has completed. Bug #328286. * data/epiphany-service.xml: * lib/ephy-file-helpers.c: (ephy_file_helpers_init): * lib/ephy-file-helpers.h: * src/ephy-activation.c: (session_queue_command), (ephy_activation_load_uri_list), (ephy_activation_load_session), (ephy_activation_open_bookmarks_editor): * src/ephy-activation.h: * src/ephy-dbus.c: * src/ephy-dbus.h: * src/epiphany.defs:
* Remove unused NM code. Misc cleanups.Christian Persch2006-01-281-91/+42
| | | | | | | | | | | | 2006-01-27 Christian Persch <chpe@cvs.gnome.org> * src/ephy-dbus.c: (ephy_dbus_connect_to_session_bus_cb), (ephy_dbus_connect_to_system_bus_cb), (session_filter_func), (system_filter_func), (ephy_dbus_connect_to_system_bus), (ephy_dbus_connect_to_session_bus), (ephy_dbus_shutdown): * src/ephy-dbus.h: Remove unused NM code. Misc cleanups.
* Run the main loop until the reply is received when activating a runningChristian Persch2006-01-251-0/+1
| | | | | | | | | | | | | | 2006-01-24 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-file-helpers.c: (ephy_dot_dir), (ephy_file_helpers_init): * lib/ephy-file-helpers.h: * src/ephy-dbus.c: * src/ephy-main.c: (unref_proxy_reply_cb), (open_urls), (main): Run the main loop until the reply is received when activating a running instance. Fixes URL opening with two concurrently starting instance.
* Use DBUS_NAME_FLAG_DO_NOT_QUEUE when requesting the name, and also handleChristian Persch2006-01-241-8/+11
| | | | | | | | | 2006-01-24 Christian Persch <chpe@cvs.gnome.org> * src/ephy-dbus.c: (ephy_dbus_connect_to_session_bus): Use DBUS_NAME_FLAG_DO_NOT_QUEUE when requesting the name, and also handle unexpected request return values.
* Removed add-bookmark and import-bookmarks functions, and changed load-urlChristian Persch2006-01-241-0/+2
| | | | | | | | | | | | | | | | | | | 2006-01-23 Christian Persch <chpe@cvs.gnome.org> * data/epiphany-service.xml: * src/ephy-activation.c: (ephy_activation_load_url), (ephy_activation_open_bookmarks_editor): * src/ephy-activation.h: Removed add-bookmark and import-bookmarks functions, and changed load-url to use an options string instead of loads of booleans. * src/ephy-main.c: (unref_proxy_reply_cb), (open_urls), (call_dbus_proxy): Adapt to changed dbus call signatures. Fixes open-in-new-tab/window from cmd line.
* Add a GError** to ephy_file_helpers_init and ephy_ensure_dir_exists, so weChristian Persch2006-01-241-127/+192
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-23 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: * lib/ephy-file-helpers.c: (ephy_file_helpers_init), (ephy_ensure_dir_exists): * lib/ephy-file-helpers.h: Add a GError** to ephy_file_helpers_init and ephy_ensure_dir_exists, so we can show the error to the user in main(). * src/ephy-dbus.c: (ephy_dbus_connect_to_session_bus_cb), (ephy_dbus_connect_to_system_bus_cb), (session_filter_func), (system_filter_func), (ephy_dbus_connect_to_system_bus), (ephy_dbus_connect_to_session_bus), (ephy_dbus_shutdown), (ephy_dbus_finalize), (ephy_dbus_get_type), (ephy_dbus_get_default), (ephy_dbus_get_bus), (ephy_dbus_get_proxy), (_ephy_dbus_startup), (_ephy_dbus_release), (_ephy_dbus_is_name_owner): * src/ephy-dbus.h: Refactored. Propagate errors to callers via GError**, and change lifecycle to the app lifetime. * src/ephy-lockdown.c: (ephy_lockdown_init), (ephy_lockdown_finalize): Move gconf notification add/remove for the lockdown key dirs here from main(). * src/ephy-shell.c: (ephy_shell_dispose), (_ephy_shell_create_instance): * src/ephy-shell.h: * src/epiphany.defs: Remove ephy_shell_startup and related stuff. * src/ephy-main.c: (handle_url), (handle_email), (shell_weak_notify), (dbus_g_proxy_finalized_cb), (save_yourself_cb), (die_cb), (gnome_session_init), (path_from_command_line_arg), (open_urls), (call_dbus_proxy), (show_error_message), (main): Move all startup code to main(), so we can show errors to the user instead of crashing when things go wrong. Part of bug #326807.
* Add guards to avoid crashing on exit if system bus isn't running. FixesCrispin Flowerday2006-01-221-9/+17
| | | | | | | | | 2006-01-22 Crispin Flowerday <gnome@flowerday.cx> * src/ephy-dbus.c (ephy_dbus_shutdown): Add guards to avoid crashing on exit if system bus isn't running. Fixes bug #327845
* Remove both session/system filters before finalizing EphyDbus object. FixJean-François Rameau2006-01-221-0/+7
| | | | | | | | | 2006-01-22 Jean-François Rameau <jframeau@cvs.gnome.org> * src/ephy-dbus.c: (ephy_dbus_shutdown): Remove both session/system filters before finalizing EphyDbus object. Fix #327845.
* Fix compiler warnings.Jean-François Rameau2006-01-121-1/+1
| | | | | | | | 2006-01-12 Jean-François Rameau <jframeau@cvs.gnome.org> * src/ephy-dbus.c: (ephy_dbus_connect_to_session_bus): Fix compiler warnings.
* src/ephy-dbus.c (ephy_dbus_connect_to_session_bus)Crispin Flowerday2006-01-041-1/+1
| | | | | | | | | 2006-01-03 Crispin Flowerday <gnome@flowerday.cx> * src/ephy-dbus.c (ephy_dbus_connect_to_session_bus) Fix the arguments to the dbus_connection_set_exit_on_disconnect call for the session bus.
* Tell dbus not to exit the application if the bus disconnects.Crispin Flowerday2006-01-041-0/+8
| | | | | | | | 2006-01-03 Crispin Flowerday <gnome@flowerday.cx> * src/ephy-dbus.c (ephy_dbus_connect_to_session_bus): Tell dbus not to exit the application if the bus disconnects.
* Fix compilation with DBUS 0.6 (DBUS_NAME_FLAG_PROHIBIT_REPLACEMENTJean-François Rameau2006-01-031-0/+5
| | | | | | | | 2006-01-03 Jean-François Rameau <jframeau@cvs.gnome.org> * src/ephy-dbus.c: (ephy_dbus_connect_to_session_bus): Fix compilation with DBUS 0.6 (DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT constant removed).
* R data/GNOME_Epiphany_Automation.server.in: A data/epiphany-service.xml: AChristian Persch2006-01-031-0/+469
2006-01-02 Christian Persch <chpe@cvs.gnome.org> * Makefile.am: * autogen.sh: * configure.ac: R data/GNOME_Epiphany_Automation.server.in: * data/Makefile.am: A data/epiphany-service.xml: A data/org.gnome.Epiphany.service.in: * doc/reference/Makefile.am: R idl/.cvsignore: R idl/EphyAutomation.idl: R idl/Makefile.am: * lib/Makefile.am: R lib/ephy-dbus.c: R lib/ephy-dbus.h: * lib/ephy-file-helpers.c: (ephy_file_launch_application): * src/Makefile.am: A src/ephy-activation.c: A src/ephy-activation.h: A src/ephy-dbus.c: A src/ephy-dbus.h: * src/ephy-main.c: (main): * src/ephy-shell.c: (ephy_shell_init), (open_urls), (dbus_g_proxy_finalized_cb), (ephy_shell_startup), (ephy_shell_dispose): Bonobo is dead; long live the Bonobos! Patch by Gustavo Gama, bug #322463.