aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozDownload.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Better fix for bug #511759.Cosimo Cecchi2008-01-251-1/+4
| | | | svn path=/trunk/; revision=7888
* Drop gnome-vfs dependency. Now Epiphany depends on glib >= 2.15.1.Cosimo Cecchi2008-01-141-4/+12
| | | | | | | Also, optional Zeroconf support depends on Avahi >= 0.6.22. Bug #507152. svn path=/trunk/; revision=7858
* Xr 1.9 fixes. Bug #503657.Christian Persch2007-12-241-1/+5
| | | | svn path=/trunk/; revision=7807
* Revert the change from r7406; see bug #476540.Christian Persch2007-09-131-1/+1
| | | | svn path=/trunk/; revision=7426
* Revert the change from r7407; see bug #476540.Christian Persch2007-09-131-1/+1
| | | | svn path=/trunk/; revision=7425
* Include nsStringGlue.h instead of nsStringAPI.hChristian Persch2007-09-131-1/+1
| | | | svn path=/trunk/; revision=7407
* Include xpcom-config.h, not mozilla-config.hChristian Persch2007-09-131-1/+1
| | | | svn path=/trunk/; revision=7406
* Add saved files to the GtkRecent list, gnome-panel is broken so don'tDiego Escalante Urrelo2007-08-271-5/+31
| | | | | | | | | | | | | | | | | 2007-08-26 Diego Escalante Urrelo <diegoe@gnome.org> * lib/ephy-file-helpers.c: * lib/ephy-file-helpers.h: * embed/mozilla/MozDownload.h: * embed/mozilla/MozDownload.cpp: Add saved files to the GtkRecent list, gnome-panel is broken so don't expect to see the effects of this working there, you can use it on the GtkFileChooser dialog however. Fixes Bug #148401. Original patch by Christian Persch, updated by Cosimo Cecchi. svn path=/trunk/; revision=7300
* Fix strict-aliasing warnings, patch by Cosimo Cecchi. Happy 10 yearsDiego Escalante Urrelo2007-08-151-1/+3
| | | | | | | | | | | | | | 2007-08-15 Diego Escalante Urrelo <diegoe@gnome.org> * embed/mozilla/EphyUtils.cpp: * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/MozDownload.cpp: Fix strict-aliasing warnings, patch by Cosimo Cecchi. Happy 10 years GNOME!. Fixes bug #433173. svn path=/trunk/; revision=7274
* It's yet another API change!Christian Persch2007-07-151-0/+5
| | | | | | | | | | | | 2007-07-14 Christian Persch <chpe@gnome.org> * embed/mozilla/ContentHandler.cpp: * embed/mozilla/EphySingle.cpp: * embed/mozilla/MozDownload.cpp: It's yet another API change! svn path=/trunk/; revision=7158
* Fixes bug #452707Nguyen Thai Ngoc Duy2007-07-111-7/+12
| | | | svn path=/trunk/; revision=7151
* Guess what? Another mozilla API change!Christian Persch2007-02-091-0/+14
| | | | | | | | | | 2007-02-08 Christian Persch <chpe@svn.gnome.org> * embed/mozilla/MozDownload.cpp: Guess what? Another mozilla API change! svn path=/trunk/; revision=6895
* Automatically open a Nautilus window after downloading has finished. FixesWouter Bolsterlee2006-10-151-0/+26
| | | | | | | | | | | | | 2006-10-15 Wouter Bolsterlee <wbolster@gnome.org> * embed/mozilla/ContentHandler.cpp: * embed/mozilla/MozDownload.cpp: * lib/ephy-file-helpers.c: (ephy_file_browse_to): * lib/ephy-file-helpers.h: * src/popup-commands.c: (save_property_url_completed_cb), (save_property_url): Automatically open a Nautilus window after downloading has finished. Fixes bug #138876, patch by Ed Catmur.
* Use UTF-8 copyright symbolChristian Persch2006-09-131-1/+1
|
* Decrease maximum progress update to 0.5sChristian Persch2006-08-081-1/+4
| | | | | | | | 2006-08-07 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: Decrease maximum progress update to 0.5s
* Don't hammer the cpu when downloading file with an unknown size. Fix bugJean-François Rameau2006-07-071-2/+1
| | | | | | | | | | | | | | 2006-07-06 Jean-François Rameau <jframeau@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: (OnProgressChange64): Don't hammer the cpu when downloading file with an unknown size. Fix bug 346671. * embed/ephy-embed-shell.c: (ephy_embed_shell_set_page_setup), (ephy_embed_shell_set_print_settings): Fix compiler warnings.
* Don't set cookies from favicon downloads. Bug #337835.Jean-François Rameau2006-06-021-2/+17
| | | | | | | | | | | | | 2006-06-01 Jean-François Rameau <jframeau@cvs.gnome.org> * embed/ephy-embed-persist.h: * embed/ephy-favicon-cache.c: (ephy_favicon_cache_download): * embed/mozilla/EphySingle.cpp: (Init, Detach, ExamineCookies, ExamineResponse, ExamineRequest, Observe): * embed/mozilla/EphySingle.h: * embed/mozilla/MozDownload.cpp: (InitiateMozillaDownload): Don't set cookies from favicon downloads. Bug #337835.
* === Release 2.15.2 ===RELEASE_2_15_2Christian Persch2006-05-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-15 Christian Persch <chpe@cvs.gnome.org> === Release 2.15.2 === * NEWS: 2006-05-15 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EphyUtils.cpp: * embed/mozilla/FilePicker.cpp: * embed/mozilla/GtkNSSClientAuthDialogs.cpp: * embed/mozilla/GtkNSSDialogs.cpp: * embed/mozilla/GtkNSSKeyPairDialogs.cpp: * embed/mozilla/GtkNSSSecurityWarningDialogs.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/mozilla-embed-persist.cpp: * embed/mozilla/mozilla-embed-single.cpp: * embed/mozilla/mozilla-notifiers.cpp: * embed/mozilla/mozilla-x509-cert.cpp: Some castings.
* Drop support for gecko 1.7.Christian Persch2006-05-111-205/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-10 Christian Persch <chpe@cvs.gnome.org> * configure.ac: * data/glade/prefs-dialog.glade: * embed/ephy-favicon-cache.c: (ephy_favicon_cache_get): * embed/mozilla/AutoJSContextStack.cpp: * embed/mozilla/ContentHandler.cpp: * embed/mozilla/ContentHandler.h: * embed/mozilla/EphyAboutModule.cpp: * embed/mozilla/EphyAboutModule.h: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/EphyContentPolicy.cpp: * embed/mozilla/EphyContentPolicy.h: * embed/mozilla/EphyDirectoryProvider.cpp: * embed/mozilla/EphyFind.cpp: * embed/mozilla/EphyFind.h: * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EphyHeaderSniffer.h: * embed/mozilla/EphyHistoryListener.cpp: * embed/mozilla/EphyHistoryListener.h: * embed/mozilla/EphyPromptService.cpp: * embed/mozilla/EphySidebar.cpp: * embed/mozilla/EphySidebar.h: * embed/mozilla/EphySingle.cpp: * embed/mozilla/EphySingle.h: * embed/mozilla/EphyUtils.cpp: * embed/mozilla/EphyUtils.h: * embed/mozilla/EventContext.cpp: * embed/mozilla/EventContext.h: * embed/mozilla/FilePicker.cpp: * embed/mozilla/FilePicker.h: * embed/mozilla/GlobalHistory.cpp: * embed/mozilla/GlobalHistory.h: * embed/mozilla/GtkNSSClientAuthDialogs.cpp: * embed/mozilla/GtkNSSDialogs.cpp: * embed/mozilla/GtkNSSKeyPairDialogs.cpp: * embed/mozilla/GtkNSSSecurityWarningDialogs.cpp: * embed/mozilla/GtkNSSSecurityWarningDialogs.h: * embed/mozilla/Makefile.am: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: * embed/mozilla/MozRegisterComponents.cpp: * embed/mozilla/MozRegisterComponents.h: * embed/mozilla/MozillaPrivate.cpp: * embed/mozilla/MozillaPrivate.h: * embed/mozilla/PrintingPromptService.cpp: * embed/mozilla/PrintingPromptService.h: * embed/mozilla/mozilla-download.cpp: * embed/mozilla/mozilla-download.h: * embed/mozilla/mozilla-embed-event.cpp: * embed/mozilla/mozilla-embed-event.h: * embed/mozilla/mozilla-embed-find.cpp: * embed/mozilla/mozilla-embed-find.h: * embed/mozilla/mozilla-embed-persist.cpp: * embed/mozilla/mozilla-embed-persist.h: * embed/mozilla/mozilla-embed-single.cpp: * embed/mozilla/mozilla-embed.cpp: * embed/mozilla/mozilla-embed.h: * embed/mozilla/mozilla-notifiers.cpp: * embed/mozilla/mozilla-notifiers.h: * embed/mozilla/mozilla-x509-cert.cpp: * embed/mozilla/mozilla-x509-cert.h: * lib/ephy-gui.c: * lib/ephy-gui.h: * lib/ephy-langs.c: * m4/gecko.m4: * src/ephy-window.c: (sync_tab_security): * src/prefs-dialog.c: (prefs_dialog_init): Drop support for gecko 1.7.
* 2006-04-03 Christian Persch <chpe@cvs.gnome.org>Christian Persch2006-04-031-2/+5
| | | | | | | * 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):
* Add a GError** to ephy_file_helpers_init and ephy_ensure_dir_exists, so weChristian Persch2006-01-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 ephy_file_get_downloads_dir() to get the actual downloads directory,Christian Persch2005-10-301-37/+8
| | | | | | | | | | | | | | | 2005-10-29 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: * lib/ephy-file-chooser.c: (ephy_file_chooser_constructor): * lib/ephy-file-helpers.c: (ephy_file_get_downloads_dir): * lib/ephy-file-helpers.h: * src/prefs-dialog.c: (download_path_changed_cb), (create_download_path_button): Add ephy_file_get_downloads_dir() to get the actual downloads directory, and use it in the prefs dialogue, the filechooser, and the backend.
* Add EPHY_EMBED_PERSIST_NO_CERTDIALOGS flag.Christian Persch2005-10-151-2/+43
| | | | | | | | | | | | | | | | | | | | | | | 2005-10-15 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-persist.h: Add EPHY_EMBED_PERSIST_NO_CERTDIALOGS flag. * embed/mozilla/Makefile.am: A embed/mozilla/EphyBadCertRejector.cpp: A embed/mozilla/EphyBadCertRejector.h: A class implementing nsIBadCertListener which always rejects. * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EphyHeaderSniffer.h: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: For gecko 1.8, implement nsIInterfaceRequestor for EphyHeaderSniffer and MozDownload, and make GetInterface hand out a EphyBadCertRejector if the EPHY_EMBED_PERSIST_NO_CERTDIALOGS flag is set.
* Work around mozilla bugChristian Persch2005-08-131-2/+26
| | | | | | | | | | 2005-08-13 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: Work around mozilla bug https://bugzilla.mozilla.org/show_bug.cgi?id=304353 . Fixes bug #313215.
* Gecko send several STATE_STOP, but only the final one (completed) is ofJean-François Rameau2005-08-111-1/+3
| | | | | | | | | | | | | | 2005-08-10 Jean-François Rameau <jframeau@cvs.gnome.org> * embed/mozilla/MozDownload.cpp (OnStateChange): Gecko send several STATE_STOP, but only the final one (completed) is of interest (STATE_STOP&STATE_IS_NETWORK). Fix crash with gecko 1.8 when downloading. * embed/mozilla/mozilla-embed.cpp: Fix compilation warning.
* Fix for mozilla API change.Christian Persch2005-07-071-5/+7
| | | | | | | | | 2005-07-07 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: Fix for mozilla API change.
* More constification.Jean-François Rameau2005-06-081-2/+2
| | | | | | | | | 2005-06-07 Jean-François Rameau <jframeau@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: (file_is_compressed), (parse_extension): More constification.
* Add protocol handler, which I'll use for our custom error pages. SinceChristian Persch2005-05-261-0/+2
| | | | | | | | | | | | | | | | | | | 2005-05-26 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/ContentHandler.cpp: * embed/mozilla/EphyProtocolHandler.cpp: * embed/mozilla/EphyProtocolHandler.h: * embed/mozilla/EphyUtils.cpp: * embed/mozilla/EphyUtils.h: * embed/mozilla/GtkNSSClientAuthDialogs.cpp: * embed/mozilla/GtkNSSDialogs.cpp: * embed/mozilla/GtkNSSKeyPairDialogs.cpp: * embed/mozilla/Makefile.am: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozRegisterComponents.cpp: Add protocol handler, which I'll use for our custom error pages. Since it's almost gratis, add about:epiphany back.
* Set MozDownload as progress listener on the web browser persist.Christian Persch2005-05-071-0/+3
| | | | | | | | 2005-05-06 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: Set MozDownload as progress listener on the web browser persist.
* Ged rid of all API checks which check for 1.8-only API, and introduce aChristian Persch2005-04-261-39/+78
| | | | | | | | | | | | | | | | | | | | | 2005-04-26 Christian Persch <chpe@cvs.gnome.org> * configure.ac: Ged rid of all API checks which check for 1.8-only API, and introduce a Gecko version check instead. * embed/mozilla/ContentHandler.cpp: * embed/mozilla/ContentHandler.h: * embed/mozilla/EventContext.cpp: * embed/mozilla/GlobalHistory.cpp: * embed/mozilla/GtkNSSKeyPairDialogs.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: * embed/mozilla/mozilla-download.cpp: Fix for mozilla API change, and use the new HAVE_GECKO_1_8 define where appropriate.
* InitForEmbed isn't a NS_IMETHOD, so don't use NS_IMETHODIMP here.Christian Persch2005-04-091-1/+1
| | | | | | | | 2005-04-08 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: InitForEmbed isn't a NS_IMETHOD, so don't use NS_IMETHODIMP here.
* Fix for MOZILLA_INTERNAL_API change, and for 64bit downloader change.Christian Persch2005-04-061-10/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-04-06 Christian Persch <chpe@cvs.gnome.org> * configure.ac: * embed/downloader-view.c: (update_download_row): * embed/ephy-download.c: * embed/ephy-download.h: * embed/ephy-embed-persist.c: (ephy_embed_persist_set_max_size), (ephy_embed_persist_set_property), (ephy_embed_persist_get_property), (ephy_embed_persist_class_init): * embed/ephy-embed-persist.h: * embed/mozilla/ContentHandler.h: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyContentPolicy.cpp: * embed/mozilla/EphyHeaderSniffer.h: * embed/mozilla/EphyHistoryListener.cpp: * embed/mozilla/EphySidebar.cpp: * embed/mozilla/EphySingle.cpp: * embed/mozilla/EphyUtils.cpp: * embed/mozilla/EventContext.cpp: * embed/mozilla/FilePicker.cpp: * embed/mozilla/FilePicker.h: * embed/mozilla/GlobalHistory.cpp: * embed/mozilla/GtkNSSClientAuthDialogs.cpp: * embed/mozilla/GtkNSSDialogs.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: * embed/mozilla/mozilla-download.cpp: * embed/mozilla/mozilla-embed-single.cpp: * embed/mozilla/mozilla-embed.cpp: Fix for MOZILLA_INTERNAL_API change, and for 64bit downloader change.
* Fix stupid typos. Fixes bug #171197; thanks to Jean-François Rameau forChristian Persch2005-03-231-2/+2
| | | | | | | | | 2005-03-23 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: Fix stupid typos. Fixes bug #171197; thanks to Jean-François Rameau for finding the cause.
* NULL check. Fixes bug #165999.Christian Persch2005-03-011-0/+2
| | | | | | | | | | | | | 2005-02-28 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: NULL check. Fixes bug #165999. * src/ephy-main.c: (slowly_and_stupidly_obtain_timestamp), (main): Try to get an approximation to the launch time if DESKTOP_STARTUP_ID is not set. Fixes bug #168820, patch by Elijah Newren.
* Fix compress_tilde to only look at the prefix, and not substitute in theChristian Persch2005-02-281-1/+1
| | | | | | | | | 2005-02-27 Christian Persch <chpe@cvs.gnome.org> * lib/eel-gconf-extensions.c: (tilde_compress): Fix compress_tilde to only look at the prefix, and not substitute in the middle.
* Try to fix the build with 1.7 branch.Christian Persch2005-02-281-2/+3
| | | | | | | | 2005-02-27 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: Try to fix the build with 1.7 branch.
* Depend on gnome-desktop for gnome-desktop-item, and up the gnome-vfsChristian Persch2005-02-271-23/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-02-26 Christian Persch <chpe@cvs.gnome.org> * configure.ac: Depend on gnome-desktop for gnome-desktop-item, and up the gnome-vfs dependency version. * embed/ephy-embed-persist.c: (ephy_embed_persist_set_user_time), (ephy_embed_persist_get_user_time), (ephy_embed_persist_set_property), (ephy_embed_persist_get_property), (ephy_embed_persist_init), (ephy_embed_persist_class_init): * embed/ephy-embed-persist.h: Add user time property. * embed/mozilla/ContentHandler.cpp: * embed/mozilla/ContentHandler.h: Forward user time to MozDownload via a string. Not perfect, but better than nothing. * embed/mozilla/EphyHeaderSniffer.cpp: Set user time on filechooser. * embed/mozilla/MozDownload.cpp: Get user time from content handler, and use it when launching the external handler app. * lib/ephy-file-helpers.c: (ephy_file_check_mime), (launch_desktop_item), (ephy_file_launch_desktop_file), (ephy_file_launch_application), (ephy_file_launch_handler): * lib/ephy-file-helpers.h: Convenience functions to launch an app, or a desktop item, with user time. * lib/ephy-gui.c: (ephy_gui_confirm_overwrite_file), (ephy_gui_window_update_user_time), (ephy_gui_window_present): * lib/ephy-gui.h: Make our own gtk_window_present, to correctly update user time. Check if the path is writable in ephy_gui_confirm_overwrite_file(). * src/ephy-session.c: (ephy_session_autoresume): After showing the recovery dialogue, don't use the old user time to launch the windows; use the current event time instead. * src/popup-commands.c: (background_download_completed), (image_open_uri), (save_source_completed_cb), (popup_cmd_open_image): * src/window-commands.c: (window_cmd_file_save_as), (save_source_completed_cb), (save_temp_source), (window_cmd_view_page_source): Launch handlers with user time.
* Implement nsIWebProgressListener. Fixes bug #165328.Christian Persch2005-02-101-2/+2
| | | | | | | | 2005-02-09 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: Implement nsIWebProgressListener. Fixes bug #165328.
* Add ; to all LOG statements, and adapt ephy-debug.h for non-GNUC-varargsChristian Persch2005-01-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-01-28 Christian Persch <chpe@cvs.gnome.org> * doc/reference/tmpl/ephy-embed.sgml: * embed/ephy-embed-persist.c: (ephy_embed_persist_init), (ephy_embed_persist_finalize): * embed/ephy-embed-shell.c: (ephy_embed_shell_finalize): * embed/ephy-encodings.c: (ephy_encodings_finalize), (ephy_encodings_init): * embed/ephy-favicon-cache.c: (ephy_favicon_cache_finalize), (favicon_download_completed_cb), (favicon_download_cancelled_cb), (ephy_favicon_cache_download), (ephy_favicon_cache_get): * embed/ephy-history.c: (ephy_history_set_enabled), (ephy_history_save), (ephy_history_finalize), (ephy_history_host_visited), (ephy_history_set_page_title), (ephy_history_set_icon), (ephy_history_clear): * embed/mozilla/ContentHandler.cpp: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyContentPolicy.cpp: * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EphyHistoryListener.cpp: * embed/mozilla/EphySidebar.cpp: * embed/mozilla/EphySingle.cpp: * embed/mozilla/FilePicker.cpp: * embed/mozilla/GtkNSSClientAuthDialogs.cpp: * embed/mozilla/GtkNSSKeyPairDialogs.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/PrintingPromptService.cpp: * embed/mozilla/mozilla-download.cpp: * embed/mozilla/mozilla-embed-event.cpp: * lib/ephy-dbus.c: (session_filter_func), (system_filter_func), (ephy_dbus_connect_to_system_bus), (ephy_dbus_connect_to_session_bus), (path_message_func), (ephy_dbus_startup), (ephy_dbus_shutdown), (ephy_dbus_init), (ephy_dbus_finalize): * lib/ephy-debug.h: * lib/ephy-file-chooser.c: (ephy_file_chooser_finalize): * lib/ephy-file-helpers.c: (ephy_file_helpers_shutdown): * lib/ephy-langs.c: (load_iso_entries): * lib/ephy-module.c: (ephy_module_load), (ephy_module_unload), (ephy_module_new_object), (ephy_module_init), (ephy_module_finalize): * lib/ephy-node-db.c: (ephy_node_db_load_from_file), (ephy_node_db_write_to_xml_valist): * lib/ephy-shlib-loader.c: (ephy_shlib_loader_init), (ephy_shlib_loader_finalize): * lib/widgets/ephy-location-entry.c: (entry_style_set_cb), (entry_realize_cb), (ephy_location_entry_construct_contents), (ephy_location_entry_init): * lib/widgets/ephy-spinner.c: (ephy_spinner_cache_load), (ephy_spinner_cache_get_images), (ephy_spinner_cache_init), (ephy_spinner_cache_finalize): * lib/widgets/ephy-tree-model-node.c: (ephy_tree_model_node_update_node): * lib/widgets/ephy-tree-model-sort.c: (each_property_get_data_binder): * src/bookmarks/ephy-bookmark-action.c: (create_tool_item), (connect_proxy), (ephy_bookmark_action_finalize): * src/bookmarks/ephy-bookmark-properties.c: (ephy_bookmark_properties_set_bookmark), (set_window_icon): * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_update_menu), (provide_favicon): * src/bookmarks/ephy-bookmarks-export.c: (ephy_bookmarks_export_rdf), (ephy_bookmarks_export_mozilla): * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import): * src/bookmarks/ephy-bookmarks-menu.c: (ephy_bookmarks_menu_rebuild), (do_update_cb), (bookmarks_tree_changed_cb), (topics_added_cb), (topics_removed_cb), (topic_child_changed_cb), (bookmark_added_cb), (bookmark_removed_cb), (activate_cb), (ephy_bookmarks_menu_finalize): * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_get_toolbars_model), (ephy_bookmarks_save), (ephy_bookmarks_finalize), (ephy_bookmarks_find_keyword), (ephy_bookmarks_set_keyword), (ephy_bookmarks_unset_keyword): * src/bookmarks/ephy-bookmarksbar-model.c: (save_changes_idle), (load_toolbars), (ephy_bookmarksbar_model_init), (ephy_bookmarksbar_model_dispose), (ephy_bookmarksbar_model_finalize): * src/bookmarks/ephy-bookmarksbar.c: (ephy_bookmarksbar_action_request), (ephy_bookmarksbar_finalize): * src/bookmarks/ephy-favorites-menu.c: (ephy_favorites_menu_rebuild): * src/bookmarks/ephy-new-bookmark.c: (ephy_new_bookmark_set_title): * src/bookmarks/ephy-topic-action.c: (connect_proxy): * src/bookmarks/ephy-topics-selector.c: (ephy_topics_selector_set_bookmark): * src/ephy-encoding-menu.c: (add_action): * src/ephy-extensions-manager.c: (ephy_extensions_manager_load), (ephy_extensions_manager_unload), (ephy_extensions_manager_load_string), (get_loader_for_type), (load_extension), (unload_extension), (sync_loaded_extensions), (ephy_extensions_manager_load_dir), (ephy_extensions_manager_init), (ephy_extensions_manager_startup), (ephy_extensions_manager_finalize), (impl_attach_window), (impl_detach_window), (impl_attach_tab), (impl_detach_tab): * src/ephy-history-window.c: (setup_filters), (provide_favicon): * src/ephy-link.c: (ephy_link_open): * src/ephy-location-action.c: (user_changed_cb), (sync_address), (ephy_location_action_set_address): * src/ephy-navigation-action.c: (menu_activated_cb), (connect_proxy): * src/ephy-notebook.c: (ephy_notebook_finalize): * src/ephy-session.c: (window_focus_in_event_cb), (impl_attach_window), (impl_detach_window), (ephy_session_init), (ephy_session_dispose), (ephy_session_finalize), (ephy_session_autoresume), (ephy_session_close), (ephy_session_save), (ephy_session_load), (ephy_session_add_window), (ephy_session_remove_window): * src/ephy-shell.c: (save_yourself_cb), (die_cb), (ephy_shell_finalize), (ephy_shell_new_tab), (ephy_shell_get_toolbars_model), (toolwindow_show_cb), (toolwindow_hide_cb): * src/ephy-tab.c: (popups_manager_add), (popups_manager_add_window), (ephy_tab_get_popups_allowed), (popups_manager_show_all), (popups_manager_hide_all), (ephy_tab_finalize), (ephy_tab_address_cb), (ephy_tab_zoom_changed_cb), (ephy_tab_new_window_cb), (ephy_tab_visibility_cb), (ephy_tab_destroy_brsr_cb), (ephy_tab_size_to_cb), (ephy_tab_dom_mouse_click_cb), (ephy_tab_init): * src/ephy-tabs-menu.c: (ephy_tabs_menu_update): * src/ephy-toolbar.c: (sync_user_input_cb): * src/ephy-toolbars-model.c: (save_changes_idle), (ephy_toolbars_model_load): * src/ephy-window.c: (ephy_window_destroy), (show_embed_popup), (ephy_window_init), (ephy_window_finalize): * src/pdm-dialog.c: (pdm_dialog_cookies_construct), (cookie_added_cb), (cookie_changed_cb), (cookie_deleted_cb), (cookies_cleared_cb), (pdm_dialog_passwords_construct), (passwords_changed_cb): * src/prefs-dialog.c: (fonts_language_changed_cb): Add ; to all LOG statements, and adapt ephy-debug.h for non-GNUC-varargs case.
* Remove trailing whitespace.Christian Persch2005-01-061-1/+2
| | | | | | | | | | | | 2005-01-05 Christian Persch <chpe@cvs.gnome.org> * data/Makefile.am: Remove trailing whitespace. * embed/mozilla/MozDownload.cpp: Fix build with moz 1.7.
* Only implement nsITransfer if possible.Christian Persch2005-01-061-22/+32
| | | | | | | | | | 2005-01-05 Christian Persch <chpe@cvs.gnome.org> * configure.ac: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: Only implement nsITransfer if possible.
* Consistently start enum names with EPHY_*.Crispin Flowerday2005-01-061-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-01-05 Crispin Flowerday <gnome@flowerday.cx> * embed/ephy-embed-event.c: (ephy_embed_event_context_get_type): * embed/ephy-embed-event.h: * embed/ephy-embed-persist.c: (ephy_embed_persist_flags_get_type): * embed/ephy-embed-persist.h: * embed/ephy-embed.c: (ephy_embed_net_state_get_type), (ephy_embed_ppv_navigation_get_type), (ephy_embed_security_level_get_type), (ephy_embed_document_type_get_type): * embed/ephy-embed.h: * embed/ephy-favicon-cache.c: (ephy_favicon_cache_download): * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EventContext.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/mozilla-embed-persist.cpp: * embed/mozilla/mozilla-embed.cpp: * src/ephy-shell.c: (ephy_shell_new_tab): * src/ephy-tab.c: (ephy_tab_address_expire_get_type), (ephy_tab_navigation_flags_get_type), (ephy_tab_set_property), (ephy_tab_class_init), (ephy_tab_get_document_type), (ephy_tab_address_cb), (update_net_state_message), (build_progress_from_requests), (ensure_page_info), (ephy_tab_net_state_cb), (ephy_tab_dom_mouse_click_cb), (ephy_tab_init), (ephy_tab_update_navigation_flags), (ephy_tab_set_location), (ephy_tab_get_security_level): * src/ephy-tab.h: * src/ephy-window.c: (sync_tab_document_type), (sync_tab_navigation), (sync_tab_security), (sync_tab_zoom), (update_popups_tooltips), (show_embed_popup): * src/popup-commands.c: (popup_cmd_copy_link_address), (save_property_url), (popup_cmd_set_image_as_background), (save_temp_source): * src/ppview-toolbar.c: (toolbar_cmd_ppv_goto_first), (toolbar_cmd_ppv_goto_last), (toolbar_cmd_ppv_go_back), (toolbar_cmd_ppv_go_forward): * src/toolbar.c: (sync_user_input_cb): * src/window-commands.c: (window_cmd_file_save_as), (save_temp_source): Consistently start enum names with EPHY_*.
* Ensure that flags and enums start with 'Ephy'Crispin Flowerday2005-01-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-01-03 Crispin Flowerday <gnome@flowerday.cx> * embed/ephy-embed-event.c: * embed/ephy-embed-event.h: * embed/ephy-embed-persist.c: (ephy_embed_persist_set_flags): * embed/ephy-embed-persist.h: * embed/ephy-embed.c: (ephy_embed_base_init), (ephy_embed_get_security_level), (ephy_embed_print_preview_navigate): * embed/ephy-embed.h: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/mozilla-embed-event.cpp: * embed/mozilla/mozilla-embed-persist.cpp: * embed/mozilla/mozilla-embed.cpp: * src/ephy-tab.c: (ephy_tab_address_expire_get_type), (ephy_tab_navigation_flags_get_type), (ephy_tab_document_type_cb), (update_net_state_message), (build_progress_from_requests), (ephy_tab_net_state_cb), (ephy_tab_dom_mouse_click_cb), (ephy_tab_security_change_cb), (ephy_tab_update_navigation_flags), (ephy_tab_set_location), (ephy_tab_set_security_level): * src/ephy-tab.h: * src/ephy-window.c: (sync_tab_document_type), (sync_tab_navigation), (sync_tab_security), (sync_tab_zoom), (update_popups_tooltips), (show_embed_popup), (ephy_window_class_init): * src/popup-commands.c: (popup_cmd_copy_link_address): Ensure that flags and enums start with 'Ephy'
* Mozilla API change.Christian Persch2004-12-191-0/+16
| | | | | | | | | 2004-12-19 Christian Persch <chpe@cvs.gnome.org> * configure.ac: * embed/mozilla/MozDownload.cpp: Mozilla API change.
* nsEmbedString.h now requires MOZILLA_STRICT_API define.Christian Persch2004-11-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 2004-11-13 Christian Persch <chpe@cvs.gnome.org> * configure.ac: * embed/mozilla/ContentHandler.h: * embed/mozilla/EphyAboutRedirector.cpp: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyContentPolicy.cpp: * embed/mozilla/EphyHeaderSniffer.h: * embed/mozilla/EphySingle.cpp: * embed/mozilla/EphyUtils.cpp: * embed/mozilla/EventContext.cpp: * embed/mozilla/FilePicker.cpp: * embed/mozilla/FilePicker.h: * embed/mozilla/GlobalHistory.cpp: * embed/mozilla/GtkNSSClientAuthDialogs.cpp: * embed/mozilla/GtkNSSDialogs.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/mozilla-download.cpp: * embed/mozilla/mozilla-embed-single.cpp: * embed/mozilla/mozilla-embed.cpp: * embed/mozilla/mozilla-notifiers.cpp: nsEmbedString.h now requires MOZILLA_STRICT_API define.
* We always have config.h, no need to guard its inclusion.Christian Persch2004-11-031-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-11-02 Christian Persch <chpe@cvs.gnome.org> * embed/downloader-view.c: * embed/ephy-command-manager.c: * embed/ephy-cookie-manager.c: * embed/ephy-download.c: * embed/ephy-embed-dialog.c: * embed/ephy-embed-event.c: * embed/ephy-embed-factory.c: * embed/ephy-embed-persist.c: * embed/ephy-embed-shell.c: * embed/ephy-embed-single.c: * embed/ephy-embed.c: * embed/ephy-encodings.c: * embed/ephy-favicon-cache.c: * embed/ephy-history.c: * embed/ephy-password-manager.c: * embed/ephy-permission-manager.c: * embed/find-dialog.c: * embed/mozilla/ContentHandler.cpp: * embed/mozilla/ContentHandler.h: * embed/mozilla/EphyAboutRedirector.cpp: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/EphyContentPolicy.cpp: * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EphySingle.cpp: * embed/mozilla/EphyUtils.cpp: * embed/mozilla/EventContext.cpp: * embed/mozilla/FilePicker.cpp: * embed/mozilla/GlobalHistory.cpp: * embed/mozilla/GtkNSSClientAuthDialogs.cpp: * embed/mozilla/GtkNSSDialogs.cpp: * embed/mozilla/GtkNSSKeyPairDialogs.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: * embed/mozilla/MozRegisterComponents.cpp: * embed/mozilla/PrintingPromptService.cpp: * embed/mozilla/mozilla-download.cpp: * embed/mozilla/mozilla-embed-event.cpp: * embed/mozilla/mozilla-embed-persist.cpp: * embed/mozilla/mozilla-embed-single.cpp: * embed/mozilla/mozilla-embed.cpp: * embed/mozilla/mozilla-notifiers.cpp: * embed/print-dialog.c: * lib/eel-gconf-extensions.c: * lib/egg/egg-editable-toolbar.c: * lib/egg/egg-toolbars-model.c: * lib/ephy-debug.c: * lib/ephy-debug.h: * lib/ephy-dialog.c: * lib/ephy-dnd.c: * lib/ephy-file-chooser.c: * lib/ephy-file-helpers.c: * lib/ephy-glade.c: * lib/ephy-gui.c: * lib/ephy-langs.c: * lib/ephy-loader.c: * lib/ephy-module.c: * lib/ephy-node-db.c: * lib/ephy-node-filter.c: * lib/ephy-node.c: * lib/ephy-shlib-loader.c: * lib/ephy-state.c: * lib/ephy-stock-icons.c: * lib/ephy-string.c: * lib/ephy-zoom.c: * lib/widgets/ephy-location-entry.c: * lib/widgets/ephy-node-view.c: * lib/widgets/ephy-search-entry.c: * lib/widgets/ephy-spinner.c: * lib/widgets/ephy-tree-model-node.c: * lib/widgets/ephy-tree-model-sort.c: * lib/widgets/ephy-zoom-action.c: * lib/widgets/ephy-zoom-control.c: * src/bookmarks/ephy-bookmark-action.c: * src/bookmarks/ephy-bookmark-properties.c: * src/bookmarks/ephy-bookmarks-editor.c: * src/bookmarks/ephy-bookmarks-export.c: * src/bookmarks/ephy-bookmarks-import.c: * src/bookmarks/ephy-bookmarks-menu.c: * src/bookmarks/ephy-bookmarks.c: * src/bookmarks/ephy-bookmarksbar-model.c: * src/bookmarks/ephy-bookmarksbar.c: * src/bookmarks/ephy-favorites-menu.c: * src/bookmarks/ephy-new-bookmark.c: * src/bookmarks/ephy-topic-action.c: * src/bookmarks/ephy-topics-selector.c: * src/ephy-automation.c: * src/ephy-completion-model.c: * src/ephy-encoding-dialog.c: * src/ephy-encoding-menu.c: * src/ephy-extension.c: * src/ephy-extensions-manager.c: * src/ephy-favicon-action.c: * src/ephy-go-action.c: * src/ephy-history-window.c: * src/ephy-location-action.c: * src/ephy-main.c: * src/ephy-navigation-action.c: * src/ephy-notebook.c: * src/ephy-session.c: * src/ephy-shell.c: * src/ephy-statusbar.c: * src/ephy-tab.c: * src/ephy-tabs-menu.c: * src/ephy-toolbars-model.c: * src/ephy-window.c: * src/pdm-dialog.c: * src/popup-commands.c: * src/ppview-toolbar.c: * src/prefs-dialog.c: * src/toolbar.c: * src/window-commands.c: We always have config.h, no need to guard its inclusion.
* Recognise "Desktop" special downloads directory. Fixes bug #152926.Christian Persch2004-10-021-0/+5
| | | | | | | | | | | | 2004-10-02 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: * lib/ephy-file-helpers.c: (ephy_file_downloads_dir), (ephy_file_desktop_dir): * lib/ephy-file-helpers.h: * src/prefs-dialog.c: (get_download_button_label): Recognise "Desktop" special downloads directory. Fixes bug #152926.
* Fix mozilla API checks to correctly detect firefox libraries.Christian Persch2004-09-211-3/+1
| | | | | | | | | | | | | | | | | | | | | | 2004-09-21 Christian Persch <chpe@cvs.gnome.org> * configure.ac: * embed/mozilla/ContentHandler.cpp: * embed/mozilla/ContentHandler.h: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/EphyContentPolicy.cpp: * embed/mozilla/FilePicker.cpp: * embed/mozilla/GlobalHistory.cpp: * embed/mozilla/GtkNSSKeyPairDialogs.cpp: * embed/mozilla/Makefile.am: * embed/mozilla/MozDownload.cpp: * embed/mozilla/mozilla-download.cpp: * embed/mozilla/mozilla-embed-single.cpp: * embed/mozilla/mozilla-embed.cpp: * embed/mozilla/mozilla-notifiers.cpp: Fix mozilla API checks to correctly detect firefox libraries.
* Fix download progress indicator in downloader view.Christian Persch2004-09-181-0/+10
| | | | | | | | | | 2004-09-18 Christian Persch <chpe@cvs.gnome.org> * embed/downloader-view.c: (progress_cell_data_func): * embed/mozilla/MozDownload.cpp: * lib/ephy-gui.c: (ephy_gui_menu_position_tree_selection): Fix download progress indicator in downloader view.
* reviewed by: Christian Persch <chpe@cvs.gnome.org>Marco Pesenti Gritti2004-09-181-1/+2
| | | | | | | | | | | | 2004-09-18 Marco Pesenti Gritti <marco@gnome.org> reviewed by: Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-persist.h: * embed/ephy-favicon-cache.c: (ephy_favicon_cache_download): * embed/mozilla/MozDownload.cpp: Enable conversion for favicon downloads. Fix #152866.
* Merging pre-gnome-2-10 branch to HEAD.Christian Persch2004-09-131-1/+1
| | | | | | | | 2004-09-13 Christian Persch <chpe@cvs.gnome.org> Merging pre-gnome-2-10 branch to HEAD. Splitting ChangeLog.
* QI instead of cast.Christian Persch2004-08-281-2/+1
| | | | | | | | 2004-08-27 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: QI instead of cast.
* Don't use -include which compilers other than gcc don't understand.Christian Persch2004-07-311-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-07-30 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/ContentHandler.cpp: * embed/mozilla/EphyAboutRedirector.cpp: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyContentPolicy.cpp: * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EphySingle.cpp: * embed/mozilla/EphyUtils.cpp: * embed/mozilla/EventContext.cpp: * embed/mozilla/FilePicker.cpp: * embed/mozilla/GlobalHistory.cpp: * embed/mozilla/GtkNSSClientAuthDialogs.cpp: * embed/mozilla/GtkNSSDialogs.cpp: * embed/mozilla/GtkNSSKeyPairDialogs.cpp: * embed/mozilla/Makefile.am: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozRegisterComponents.cpp: * embed/mozilla/MozillaPrivate.cpp: * embed/mozilla/PrintingPromptService.cpp: * embed/mozilla/mozilla-download.cpp: * embed/mozilla/mozilla-embed-event.cpp: * embed/mozilla/mozilla-embed-persist.cpp: * embed/mozilla/mozilla-embed-single.cpp: * embed/mozilla/mozilla-embed.cpp: * embed/mozilla/mozilla-notifiers.cpp: Don't use -include which compilers other than gcc don't understand. Instead include mozilla-config.h as first thing in each file. Part of bug #143094. * embed/mozilla/EphyUtils.cpp: Also include config.h.
* Handle the case where the downloads dir cannot be created gracefully. FixMarco Pesenti Gritti2004-07-221-22/+20
| | | | | | | | | | | | 2004-07-22 Marco Pesenti Gritti <marco@gnome.org> * doc/reference/tmpl/ephy-embed.sgml: * embed/mozilla/MozDownload.cpp: * lib/ephy-file-helpers.c: (ephy_ensure_dir_exists): * lib/ephy-file-helpers.h: Handle the case where the downloads dir cannot be created gracefully. Fix #146902
* <chpe> didn't I said to make that NS_IF_ADDREF () ? <xan> mmm, yesXan Lopez2004-07-071-1/+1
| | | | | | | | | * embed/mozilla/MozDownload.cpp: <chpe> didn't I said to make that NS_IF_ADDREF () ? <xan> mmm, yes Fix the downloader crasher.
* Add a MIME icon in the File column. Some indent fixes.Xan Lopez2004-07-041-1/+4
| | | | | | | | | | | | | | | | | | | | | | * embed/downloader-view.c: (downloader_view_get_type), (downloader_view_class_init), (downloader_view_init), (downloader_view_finalize), (format_interval), (downloader_view_add_download), (downloader_view_build_ui), (downloader_view_remove_download): Add a MIME icon in the File column. Some indent fixes. * embed/ephy-download.c: (ephy_download_get_mime): * embed/ephy-download.h: * embed/mozilla/MozDownload.cpp: * embed/mozilla/mozilla-download.cpp: Implement the method to get the MIME of a download and port to nsEmbedString. * embed/mozilla/PrintingPromptService.cpp: Remove bogus nsString.h header.
* Be a bit smarter about double extensions.Xan Lopez2004-07-011-2/+55
| | | | | | * embed/mozilla/MozDownload.cpp: Be a bit smarter about double extensions.
* merge mozilla-embed-strings branchMarco Pesenti Gritti2004-06-041-72/+48
|
* Fix a MOZILLA_SNAPSHOT check for 1.7 branch.Christian Persch2004-05-191-1/+1
| | | | | | | | 2004-05-19 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: Fix a MOZILLA_SNAPSHOT check for 1.7 branch.
* fix build bustageMarco Pesenti Gritti2004-04-301-0/+10
|
* More defines work, still lack EventContext and EmbedPrivate. Use mozillaMarco Pesenti Gritti2004-04-291-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-29 Marco Pesenti Gritti <marco@gnome.org> * configure.in: * embed/mozilla/ContentHandler.cpp: * embed/mozilla/ContentHandler.h: * embed/mozilla/EphyAboutRedirector.cpp: * embed/mozilla/EphyAboutRedirector.h: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyContentPolicy.cpp: * embed/mozilla/EphyContentPolicy.h: * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EphyHeaderSniffer.h: * embed/mozilla/EphySingle.cpp: * embed/mozilla/EventContext.cpp: * embed/mozilla/FilePicker.cpp: * embed/mozilla/GlobalHistory.cpp: * embed/mozilla/GlobalHistory.h: * embed/mozilla/GtkNSSClientAuthDialogs.cpp: * embed/mozilla/GtkNSSClientAuthDialogs.h: * embed/mozilla/GtkNSSDialogs.cpp: * embed/mozilla/GtkNSSDialogs.h: * embed/mozilla/GtkNSSKeyPairDialogs.cpp: * embed/mozilla/GtkNSSKeyPairDialogs.h: * embed/mozilla/Makefile.am: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: * embed/mozilla/mozilla-embed-persist.cpp: * embed/mozilla/mozilla-embed-single.cpp: * embed/mozilla/mozilla-embed.cpp: More defines work, still lack EventContext and EmbedPrivate. Use mozilla like warning flags instead of those gnome macros. Remove several unused variables.
* Nice mess of defines to support 1.8a. Damn.Marco Pesenti Gritti2004-04-271-8/+64
| | | | | | | | | | | | | | | | | 2004-04-27 Marco Pesenti Gritti <marco@gnome.org> * configure.in: * embed/mozilla/ContentHandler.cpp: * embed/mozilla/ContentHandler.h: * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EventContext.h: * embed/mozilla/FilePicker.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: * embed/mozilla/mozilla-download.cpp: * embed/mozilla/mozilla-embed-persist.cpp: Nice mess of defines to support 1.8a. Damn.
* Fix encoding of saved content; fixes bug #141050.Marco Pesenti Gritti2004-04-271-34/+23
| | | | | | | | 2004-04-26 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/MozDownload.cpp: Fix encoding of saved content; fixes bug #141050.
* s/PERSIST_NO_CONVERSION/PERSIST_FLAGS_NO_CONVERSION/Adam Hooper2004-04-181-1/+1
|
* Do not uncompress when the type is not html.Marco Pesenti Gritti2004-04-181-0/+5
| | | | | | | | 2004-04-17 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/MozDownload.cpp: Do not uncompress when the type is not html.
* Fix saving of linked content. Don't create the directory; mozilla will doChristian Persch2004-04-171-11/+8
| | | | | | | | | 2004-04-16 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: (InitiateMozillaDownload): Fix saving of linked content. Don't create the directory; mozilla will do it for us if necessary. Make the "Files" suffix translatable.
* merging pre-gnome-2-8 branchMarco Pesenti Gritti2004-03-171-1/+1
|
* Change wait interval between updates to 0.2 s.Christian Persch2004-03-041-1/+1
| | | | | | | | 2004-03-03 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: Change wait interval between updates to 0.2 s.
* Unset the GValue after we're done using what it contained.Christian Persch2004-03-041-0/+4
| | | | | | | | | | | | | | | | | | 2004-03-03 Christian Persch <chpe@cvs.gnome.org> * embed/downloader-view.c: (download_dialog_pause_cb), (download_dialog_abort_cb): Unset the GValue after we're done using what it contained. * embed/mozilla/MozDownload.cpp: Weak ref mEphyDownload, and assert that is has been finalised by the time we get to ~MozDownload. * embed/mozilla/mozilla-download.cpp: Debug output in _init and _finalize.
* Keep a ref for downloads in the view.Marco Pesenti Gritti2004-03-011-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-01 Marco Pesenti Gritti <marco@gnome.org> * embed/downloader-view.c: (downloader_view_add_download), (downloader_view_remove_download): Keep a ref for downloads in the view. * embed/mozilla/ContentHandler.cpp: * embed/mozilla/ContentHandler.h: Ensure the download directory exist. * embed/mozilla/MozDownload.cpp: * embed/mozilla/mozilla-download.cpp: * embed/mozilla/mozilla-download.h: Use a property to store MozDownload in the wrapper. The wrapper now keep a reference on the c++ implementation, that way references will be correctly propagated (unreffing the GObject will unref the c++ object). (Bug 135755)
* Add debug output.Christian Persch2004-02-291-1/+5
| | | | | | | | 2004-02-29 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: (MozDownload), (~MozDownload): Add debug output.
* Fix max size logic, thanks to chpe.Marco Pesenti Gritti2004-02-291-2/+2
| | | | | | | | 2004-02-29 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/MozDownload.cpp: Fix max size logic, thanks to chpe.
* Remove an useless check.Marco Pesenti Gritti2004-02-281-11/+1
| | | | | | | | | | | | | 2004-02-27 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: Remove an useless check. * lib/ephy-state.c: (ephy_state_window_set_size): Make sure window is never bigger than screen.
* Make max size property use long / bytes.Marco Pesenti Gritti2004-02-251-4/+15
| | | | | | | | | | | | | | | | | | | | | | | 2004-02-25 Marco Pesenti Gritti <marco@gnome.org> * embed/ephy-embed-persist.c: (ephy_embed_persist_set_max_size), (ephy_embed_persist_set_property), (ephy_embed_persist_get_property), (ephy_embed_persist_init), (ephy_embed_persist_class_init): * embed/ephy-embed-persist.h: Make max size property use long / bytes. * embed/ephy-favicon-cache.c: (ephy_favicon_cache_download): Correct to use bytes. * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: * embed/mozilla/mozilla-embed-persist.cpp: Actually respect the max_size property.
* Unify fallback downloads dir to get the home directory.Christian Persch2004-02-131-4/+0
| | | | | | | | | 2004-02-12 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: * src/prefs-dialog.c: (get_download_button_label): Unify fallback downloads dir to get the home directory.
* Fix numerous places where we weren't properly converting between UTF-8 andChristian Persch2004-02-131-9/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-12 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-popup-control.c: (save_url), (embed_popup_set_image_as_background_cmd): * embed/ephy-favicon-cache.c: (ephy_favicon_cache_get_type), (ephy_favicon_cache_class_init), (favicon_name_build), (favicon_download_completed_cb), (ephy_favicon_cache_get): * embed/mozilla/FilePicker.cpp: * embed/mozilla/MozDownload.cpp: * lib/ephy-file-chooser.c: (ephy_file_chooser_set_persist_key): * lib/ephy-file-helpers.c: (ephy_file_downloads_dir): * src/popup-commands.c: (popup_cmd_set_image_as_background): * src/prefs-dialog.c: (get_download_button_label), (download_path_response_cb): Fix numerous places where we weren't properly converting between UTF-8 and filename encoding. * embed/ephy-favicon-cache.c: Bump favicon cache xml version. * embed/mozilla/EphyHeaderSniffer.cpp: Fix mem leak, and use CONF_STATE_SAVE_DIR instead of the download dir key for directory persistence.
* Put the serial numbers in duplicated filenames just before the last dot soXan Lopez2004-02-121-7/+27
| | | | | | | * embed/mozilla/MozDownload.cpp: Put the serial numbers in duplicated filenames just before the last dot so we won't confuse apps like file-roller.
* Fix mem leak.Christian Persch2004-01-291-0/+1
| | | | | | | | 2004-01-29 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: Fix mem leak.
* Add a way to get the downloads dir with a comment for translators. Use dirMarco Pesenti Gritti2004-01-251-2/+2
| | | | | | | | | | | | | | | | | | | 2004-01-25 Marco Pesenti Gritti <marco@gnome.org> * lib/ephy-file-helpers.c: (ephy_file_tmp_dir), (ephy_file_downloads_dir): * lib/ephy-file-helpers.h: Add a way to get the downloads dir with a comment for translators. Use dir instead of directory consistently with the other functions. * embed/mozilla/MozDownload.cpp: * src/prefs-dialog.c: (get_download_button_label): * src/window-commands.c: (save_temp_source): Use the helper.
* Add a persist-position property.Marco Pesenti Gritti2004-01-241-1/+10
| | | | | | | | | | | | | | | | | | | | 2004-01-24 Marco Pesenti Gritti <marco@gnome.org> * lib/ephy-dialog.c: (setup_default_size), (ephy_dialog_init), (ephy_dialog_set_property), (ephy_dialog_get_property), (ephy_dialog_class_init): Add a persist-position property. * embed/downloader-view.c: (downloader_view_new): Persist downloader position. * src/prefs-dialog.c: (get_download_button_label): * embed/mozilla/MozDownload.cpp: * data/epiphany.schemas.in: Default to ~/Desktop/Downloads.
* Make Cancel safe against non active downloads.Xan Lopez2004-01-231-0/+6
| | | | | | * embed/mozilla/MozDownload.cpp: Make Cancel safe against non active downloads.
* Make uri canonical before passing it as launch argument to make vfs happy.Marco Pesenti Gritti2004-01-201-1/+1
| | | | | | | | | | | | | | 2004-01-19 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/ContentHandler.cpp: * embed/mozilla/MozDownload.cpp: Make uri canonical before passing it as launch argument to make vfs happy. * lib/eel-gconf-extensions.c: (eel_gconf_set_path): Do not mix utf8/locale. Thanks to chpe to notice it.
* Add a way to store paths.Marco Pesenti Gritti2004-01-191-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | 2004-01-19 Marco Pesenti Gritti <marco@gnome.org> * lib/eel-gconf-extensions.c: (tilde_compress), (eel_gconf_set_path): * lib/eel-gconf-extensions.h: Add a way to store paths. * embed/mozilla/ContentHandler.cpp: * embed/mozilla/ContentHandler.h: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: Actually save the file in downloads dir and then open it. It doesnt seem to open it but it's prolly a gnome-vfs bug. * src/prefs-dialog.c: (get_download_button_label), (download_path_response_cb): Simplify the label logic using ~.
* *** empty log message ***Marco Pesenti Gritti2004-01-191-25/+4
|
* Use NS_ENSURE_SUCCESS/NS_ENSURE_TRUE at appropriate places.Christian Persch2004-01-101-2/+6
| | | | | | | | | | | 2004-01-10 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/FilePicker.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozRegisterComponents.cpp: * embed/mozilla/MozillaPrivate.cpp: Use NS_ENSURE_SUCCESS/NS_ENSURE_TRUE at appropriate places.
* Fix mem leaks.Christian Persch2004-01-011-4/+5
| | | | | | | | | 2003-12-31 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: * embed/print-dialog.c: (ephy_print_get_print_info): Fix mem leaks.
* Adjust includes to make it compile with mozila 1.4.Christian Persch2003-12-311-1/+0
| | | | | | | | | 2003-12-30 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: Adjust includes to make it compile with mozila 1.4.
* Correctly cancel the download instead of just cancelling the request.Marco Pesenti Gritti2003-12-221-16/+12
| | | | | | | | | | 2003-12-22 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: Correctly cancel the download instead of just cancelling the request.
* Re-implement Pause/Resume in downloader.Xan Lopez2003-12-211-6/+19
| | | | | | | | | | | | | * embed/downloader-view.c: (download_dialog_pause_cb): * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: * embed/mozilla/mozilla-download.cpp: Re-implement Pause/Resume in downloader. * src/window-commands.c: (window_cmd_help_about): Change mail address.
* Do not blindly overwrite when downloading a file with the same name than aXan Lopez2003-11-281-0/+70
| | | | | | | | | | | * embed/mozilla/ContentHandler.cpp: * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: Do not blindly overwrite when downloading a file with the same name than a local one, append a number after the name. Fixes (more or less) #12775
* Do not disable conversion. Some pages was saved as gz compressed.Marco Pesenti Gritti2003-11-101-2/+1
| | | | | | | | | 2003-11-10 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/MozDownload.cpp: Do not disable conversion. Some pages was saved as gz compressed.
* Open source in the default editor and remove the unused copy api. Add aMarco Pesenti Gritti2003-10-281-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-28 Marco Pesenti Gritti <marco@gnome.org> * embed/ephy-embed-persist.h: * embed/ephy-embed.c: * embed/ephy-embed.h: * embed/ephy-favicon-cache.c: (ephy_favicon_cache_download): * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EphyHeaderSniffer.h: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: * embed/mozilla/mozilla-embed-persist.cpp: * embed/mozilla/mozilla-embed.cpp: * src/ephy-shell.c: (delete_files), (ephy_shell_finalize), (ephy_shell_new_tab), (ephy_shell_delete_on_exit): * src/ephy-shell.h: * src/window-commands.c: (get_editor_application), (editor_open_uri), (save_source_completed_cb), (editor_can_open_uri), (save_temp_source), (window_cmd_view_page_source): Open source in the default editor and remove the unused copy api. Add a missing include while at it.
* Port to new gtk+ file chooser.Christian Persch2003-10-261-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-26 Christian Persch <chpe@cvs.gnome.org> Port to new gtk+ file chooser. * data/epiphany.schemas.in: * lib/ephy-prefs.h: Add key for remembering upload path. * embed /Makefile.am: * embed/downloader-view.c: * embed/ephy-embed-persist.c: (ephy_embed_persist_get_type), (ephy_embed_persist_set_dest), (ephy_embed_persist_set_embed), (ephy_embed_persist_set_fc_title), (ephy_embed_persist_set_fc_parent), (ephy_embed_persist_set_flags), (ephy_embed_persist_set_max_size), (ephy_embed_persist_set_persist_key), (ephy_embed_persist_set_source), (ephy_embed_persist_get_dest), (ephy_embed_persist_get_embed), (ephy_embed_persist_get_fc_title), (ephy_embed_persist_get_fc_parent), (ephy_embed_persist_get_flags), (ephy_embed_persist_get_max_size), (ephy_embed_persist_get_persist_key), (ephy_embed_persist_get_source), (ephy_embed_persist_set_property), (ephy_embed_persist_get_property), (ephy_embed_persist_init), (ephy_embed_persist_finalize), (ephy_embed_persist_class_init), (ephy_embed_persist_cancel), (ephy_embed_persist_save), (ephy_embed_persist_new): * embed/ephy-embed-persist.h: * embed/ephy-embed-popup-control.c: (save_url), (save_property_url), (background_download_completed), (embed_popup_set_image_as_background_cmd), (embed_popup_copy_image_location_cmd): * src/popup-commands.c: (save_property_url), (background_download_completed), (popup_cmd_set_image_as_background): * src/window-commands.c: (open_response_cb), (window_cmd_file_open), (window_cmd_file_save_as): * src/window-commands.h: * embed/ephy-favicon-cache.c: (ephy_favicon_cache_get_type), (ephy_favicon_cache_new), (icon_is_obsolete), (icons_added_cb), (remove_obsolete_icons), (ephy_favicon_cache_init), (favicon_download_completed_cb), (ephy_favicon_cache_download), (ephy_favicon_cache_get): * embed/mozilla/MozDownload.cpp: * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/mozilla-embed-persist.cpp: * embed/mozilla/mozilla-embed-single.cpp: * src/popup-commands.c: (save_property_url), (background_download_completed), (popup_cmd_set_image_as_background): * src/window-commands.c: (open_response_cb), (window_cmd_file_open), (window_cmd_file_save_as): * src/window-commands.h: Simplify EphyEmbedPersist implementation. Augment it with properties for showing a file chooser to select persist destination. Port all callers to new interfaces. * embed/ephy-embed-single.c: (ephy_embed_single_remove_passwords): * embed/ephy-embed-single.h: * embed/ephy-embed-utils.c: * embed/ephy-embed-utils.h: Obsolete and removed. * embed/mozilla/ContentHandler.cpp: * embed/mozilla/ContentHandler.h: Misc cleanups. * embed/mozilla/FilePicker.cpp: * embed/mozilla/FilePicker.h: Port to new file chooser class. * embed/mozilla/Makefile.am: * lib/Makefile.am: * lib/ephy-file-chooser.c: (ephy_file_chooser_get_type), (current_folder_changed_cb), (ephy_file_chooser_init), (ephy_file_chooser_finalize), (ephy_file_chooser_set_persist_key), (ephy_file_chooser_set_property), (ephy_file_chooser_get_property), (ephy_file_chooser_class_init), (ephy_file_chooser_new): * lib/ephy-file-chooser.h: * src/bookmarks/ephy-bookmarks-editor.c: (import_from_file_response_cb), (import_dialog_response_cb): New file chooser wrapper class; ported file chooser callers to it.
* Add an helper to initialize downloads.Marco Pesenti Gritti2003-10-241-0/+96
| | | | | | | | | | | | | | | | | | | | | | | | 2003-10-24 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: Add an helper to initialize downloads. * embed/ephy-embed-persist.h: Add a flag to ask destination. * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/EphyHeaderSniffer.h: Use the helper. Add code to determine a good filename. * embed/mozilla/mozilla-embed-persist.cpp: Use a MozDownload directly if there is a dest set, it doesnt make sense to use sniffer for favicons.
* initialize cur/total sizeMarco Pesenti Gritti2003-10-181-0/+2
| | | | | | | | 2003-10-18 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/MozDownload.cpp: initialize cur/total size
* fixup styleMarco Pesenti Gritti2003-10-181-140/+139
| | | | | | | | | | 2003-10-18 Marco Pesenti Gritti <marco@gnome.org> * TODO: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: fixup style
* Merge new-downloader branch. We reworked the backend, the userMarco Pesenti Gritti2003-10-171-0/+377
interface is still incomplete.