From 2606279995f614634062e0aeb9833c482db5d083 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 13 Sep 2004 10:24:56 +0000 Subject: Merging pre-gnome-2-10 branch to HEAD. 2004-09-13 Christian Persch Merging pre-gnome-2-10 branch to HEAD. Splitting ChangeLog. --- ChangeLog | 10774 +-------------------------- ChangeLog-20040912 | 10997 ++++++++++++++++++++++++++++ autogen.sh | 2 +- configure.ac | 308 + data/.cvsignore | 4 +- data/Makefile.am | 2 +- data/art/Makefile.am | 3 +- data/art/epiphany-close-tab.png | Bin 0 -> 260 bytes data/art/epiphany-secure.png | Bin 866 -> 0 bytes data/art/epiphany-unsecure.png | Bin 792 -> 0 bytes data/epiphany-1.4.pc.in | 12 - data/epiphany-1.6.pc.in | 12 + data/ui/epiphany-ui.xml | 17 + embed/downloader-view.c | 63 +- embed/ephy-download.h | 1 + embed/ephy-embed-factory.c | 71 +- embed/ephy-embed-factory.h | 4 +- embed/ephy-embed-shell.c | 2 +- embed/ephy-encodings.c | 15 - embed/ephy-encodings.h | 18 +- embed/ephy-favicon-cache.c | 2 +- embed/mozilla/EventContext.cpp | 5 +- embed/mozilla/MozDownload.cpp | 2 +- lib/egg/.cvsignore | 2 + lib/egg/Makefile.am | 4 + lib/egg/eggdropdowntoolbutton.c | 411 ++ lib/egg/eggdropdowntoolbutton.h | 73 + lib/egg/eggmarshalers.c | 638 -- lib/egg/eggmarshalers.h | 143 - lib/egg/eggmarshalers.list | 1 + lib/egg/update-from-egg.sh | 3 + lib/ephy-stock-icons.c | 10 +- lib/ephy-stock-icons.h | 8 +- lib/widgets/Makefile.am | 6 - lib/widgets/ephy-arrow-toolbutton.c | 273 - lib/widgets/ephy-arrow-toolbutton.h | 62 - lib/widgets/ephy-cell-renderer-progress.c | 388 - lib/widgets/ephy-cell-renderer-progress.h | 75 - lib/widgets/ephy-label.c | 3463 --------- lib/widgets/ephy-label.h | 189 - po/ChangeLog | 4 + po/POTFILES.in | 2 - src/bookmarks/ephy-bookmarks-editor.c | 4 +- src/bookmarks/ephy-topics-selector.c | 11 +- src/ephy-go-action.c | 9 +- src/ephy-location-action.c | 21 - src/ephy-main.c | 8 - src/ephy-navigation-action.c | 259 +- src/ephy-notebook.c | 17 +- src/ephy-shell.c | 26 +- src/ephy-shell.h | 5 +- src/ephy-statusbar.c | 12 +- src/ephy-statusbar.h | 2 +- src/ephy-tab.c | 15 +- src/ephy-tabs-menu.c | 27 +- src/ephy-window.c | 57 +- src/pdm-dialog.c | 9 +- src/popup-commands.c | 4 +- src/prefs-dialog.c | 7 +- src/toolbar.c | 8 +- src/window-commands.c | 4 +- 61 files changed, 12178 insertions(+), 16396 deletions(-) create mode 100644 ChangeLog-20040912 create mode 100644 configure.ac create mode 100644 data/art/epiphany-close-tab.png delete mode 100644 data/art/epiphany-secure.png delete mode 100644 data/art/epiphany-unsecure.png delete mode 100644 data/epiphany-1.4.pc.in create mode 100644 data/epiphany-1.6.pc.in create mode 100644 lib/egg/eggdropdowntoolbutton.c create mode 100644 lib/egg/eggdropdowntoolbutton.h delete mode 100644 lib/egg/eggmarshalers.c delete mode 100644 lib/egg/eggmarshalers.h delete mode 100644 lib/widgets/ephy-arrow-toolbutton.c delete mode 100644 lib/widgets/ephy-arrow-toolbutton.h delete mode 100644 lib/widgets/ephy-cell-renderer-progress.c delete mode 100644 lib/widgets/ephy-cell-renderer-progress.h delete mode 100644 lib/widgets/ephy-label.c delete mode 100644 lib/widgets/ephy-label.h diff --git a/ChangeLog b/ChangeLog index 88d5f703d..97248b60e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10776 +1,6 @@ 2004-09-13 Christian Persch - * embed/print-dialog.c: (ephy_print_get_print_info): + Merging pre-gnome-2-10 branch to HEAD. - Remove accidentally-committed debug g_print output. - - * po/ne.po: - - Remove the offending msgstr; fixes bug #152258. - -2004-09-13 Christian Persch - - * NEWS: - * configure.in: - - Version 1.4.0. - -2004-09-11 Shaun McCance - - * help/C/epiphany.xml: - - Fix non-well-formed XML - -2004-09-07 Adam Hooper - - * help/C/epiphany.xml: - - Document popup window functionality (bug #145412) - -2004-09-05 Pawan Chitrakar - - * configure.in: - - Add "ne" Nepali in ALL_LINGUAS - -2004-09-05 Christian Persch - - * configure.in: - - Add "ml" to ALL_LINGUAS. - -2004-09-02 Christian Persch - - * embed/downloader-view.c: (show_status_icon): - - Fix invisible status icon. Fixes bug #151501; - patch approved by RT. - -2004-08-30 Christian Persch - - * configure.in: - - Post-release version bump. - -2004-08-30 Christian Persch - - * doc/reference/tmpl/ephy-embed.sgml: - - === Release 1.3.8 === - -2004-08-30 Christian Persch - - * NEWS: - * configure.in: - - Version 1.3.8. - -2004-08-29 Christian Persch - - * embed/print-dialog.c: (sanitize_filename), - (ephy_print_get_print_info): - - Make sure the filename to print to doesn't contain slashes. - Fixes bug #148849. - -2004-08-29 Christian Persch - - * data/default-prefs.js: - - Disable SSLv2 by default. - -2004-08-28 Christian Persch - - * help/ja/legal.xml: - - Translate this too. Translation by 佐藤 暁 (SATOH Satoru). - -2004-08-28 Christian Persch - - * NEWS: - - Updated. - -2004-08-28 Christian Persch - - * configure.in: - * help/Makefile.am: - * help/ja/Makefile.am: - * help/ja/epiphany-ja.omf: - * help/ja/epiphany.xml: - * help/ja/figures/ephy-addressbar-smartbookmark-screenshot.png: - * help/ja/figures/ephy-bookmarkbar-smartbookmark-screenshot.png: - * help/ja/figures/ephy-history-window-screenshot.png: - * help/ja/figures/ephy-screenshot.png: - * help/ja/legal.xml: - - Added japanese translation of the manual. - Translated by 佐藤 暁 (SATOH Satoru) . - -2004-08-28 Christian Persch - - * src/bookmarks/ephy-topic-action.c: (popup_menu_cb), - (ephy_topic_action_new): - - popup_menu signal handler has to return gboolean, not void. - -2004-08-28 Christian Persch - - * src/bookmarks/ephy-bookmark-action.c: (popup_menu_cb), - (ephy_bookmark_action_finalize): - - popup_menu signal handler has to return gboolean, not void. - -2004-08-28 Christian Persch - - * src/bookmarks/ephy-bookmarksbar-model.c: - (ephy_bookmarksbar_model_init), (ephy_bookmarksbar_model_dispose), - (ephy_bookmarksbar_model_finalize): - - Remove the save timeout on dispose. - -2004-08-28 Christian Persch - - * src/ephy-window.c: (ephy_window_init): - - Make sure to instantiate the toolbars model before instantiating the - bookmarksbar model; otherwise forwarding doesn't work. - Fixes bug #151267. - -2004-08-27 Christian Persch - - * embed/mozilla/GlobalHistory.cpp: - - Mozilla API change on stable branch. - -2004-08-27 Christian Persch - - * embed/mozilla/MozDownload.cpp: - - QI instead of cast. - -2004-08-26 Christian Persch - - * src/ephy-notebook.c: (ephy_notebook_add_tab): - - Get the position of the new tab after the tab_added signal was emitted, - to get it right in the case the signal handler reorders the tabs. - Patch by Justin Wake. - -2004-08-26 Christian Persch - - * src/ephy-window.c: (update_actions_sensitivity): - - Make "FileSave" action obey lockdown too. Fixes bug #151039. - -2004-08-25 Christian Persch - - * configure.in: - - Post-release version bump. - -2004-08-25 Christian Persch - - === Release 1.3.7 === - - * src/bookmarks/ephy-bookmarks-menu.c: (open_bookmark_cb), - (add_action_for_bookmark): - - Fix crash when opening a bookmark from the menu. Fixes bug #150982. - - * NEWS: - * configure.in: - - Version 1.3.7. - -2004-08-24 Christian Persch - - * configure.in: - - Post-release version bump. - -2004-08-24 Christian Persch - - === Release 1.3.6 === - -2004-08-24 Christian Persch - - * NEWS: - * configure.in: - - Version 1.3.6. - -2004-08-23 Christian Persch - - * lib/widgets/ephy-label.c: (ephy_label_ensure_layout), - (ephy_label_size_allocate): - - Sync. - -2004-08-23 Christian Persch - - * NEWS: - - Update for 1.3.6. - -2004-08-23 Christian Persch - - * lib/widgets/ephy-node-view.c: (ephy_node_view_key_press_cb), - (ephy_node_view_button_press_cb), (ephy_node_view_class_init): - * src/bookmarks/ephy-bookmarks-editor.c: - (ephy_bookmarks_editor_show_popup_cb), - (keyword_node_show_popup_cb), (ephy_bookmarks_editor_construct): - * src/ephy-history-window.c: (ephy_history_window_show_popup_cb), - (ephy_history_window_construct), (ephy_history_window_dispose): - - Just use the popup_menu signal. Fixes bug #150830. - -2004-08-23 Christian Persch - - * src/bookmarks/ephy-bookmarks.h: - - Change hierarchy separator to "->". Fixes bug #149150. - -2004-08-23 Christian Persch - - * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_import): - * src/bookmarks/ephy-bookmarks-import.c: (xbel_parse_folder), - (folders_list_to_topic_name): - * src/bookmarks/ephy-bookmarks.h: - - Make the hierarchy separator a #define. - - * src/bookmarks/ephy-bookmarks-menu.c: (remove_action), - (ephy_bookmarks_menu_clean), (open_bookmark_cb), - (add_action_for_bookmark), (ensure_bookmark_actions), - (create_menu), (create_submenu), (ephy_bookmarks_menu_rebuild), - (do_update_cb), (ephy_bookmarks_menu_maybe_update), - (ephy_bookmarks_menu_set_window), - (ephy_bookmarks_menu_set_property), - (ephy_bookmarks_menu_get_property), (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_init), (ephy_bookmarks_menu_constructor), - (ephy_bookmarks_menu_finalize), (ephy_bookmarks_menu_class_init), - (ephy_bookmarks_menu_new): - * src/bookmarks/ephy-bookmarks-menu.h: - * src/bookmarks/ephy-bookmarks.c: (bookmarks_removed_cb), - (topics_removed_cb), (ephy_bookmarks_add): - - Speed up bookmarks menu with large bookmarks collections, partially - fixes bug #141269. - Fix topic hierarchy and updating on changes, fixes bug #147470, - bug 147786, and bug #150246. - -2004-08-23 Christian Persch - - * NEWS: - - Merge from gnome-2-6 branch. - -2004-08-23 Christian Persch - - * lib/widgets/ephy-label.c: (ephy_label_size_allocate): - - Fix a warning when moving tabs between windows; see bug #150822. - -2004-08-21 Christian Persch - - * doc/reference/tmpl/ephy-embed.sgml: - * src/pdm-dialog.c: (pdm_dialog_password_remove): - - Fix crash when removing a password, introduced by the last commit. - -2004-08-21 Christian Persch - - * embed/ephy-password-manager.c: (ephy_password_manager_get_type), - (ephy_password_manager_base_init): - * embed/ephy-password-manager.h: - * embed/mozilla/EphySingle.cpp: - * src/pdm-dialog.c: (cookies_cleared_cb), - (pdm_dialog_fill_cookies_list), (passwords_changed_cb), - (pdm_dialog_fill_passwords_list), (pdm_dialog_password_remove), - (pdm_dialog_finalize): - - Keep the passwords list in the pdm dialogue up-to-date wrt. - new passwords saved from web pages. - Fixes bug #150296. - -2004-08-21 Christian Persch - - * src/ephy-window.c: - - Set accel for normal zoom, as per HIG. - -2004-08-21 Christian Persch - - * configure.in: - * src/Makefile.am: - - Add autoconf check for dlopen, and add '-dlopen self' to - LDFLAGS. Fixes bug #150673. - -2004-08-20 Christian Persch - - * data/default-prefs.js: - - Set default horizontal wheel action to 'scroll'. - Fixes bug #148557. - -2004-08-19 Marco Pesenti Gritti - - * embed/mozilla/Makefile.am: - * embed/mozilla/mozilla-embed-single.cpp: - - Set mozilla binaries path before firing up. - Fixes bug #150358. - -2004-08-18 Christian Persch - - * lib/widgets/ephy-cell-renderer-progress.c: - (ephy_cell_renderer_progress_render): - * lib/widgets/ephy-tree-model-node.c: - * src/ephy-completion-model.c: - - Change guint to correct enum type. - -2004-08-16 Christian Rose - - * configure.in: Added "bs" to ALL_LINGUAS. - -2004-08-16 Kjartan Maraas - - * configure.in: Added nb to ALL_LINGUAS. - -2004-08-16 Christian Persch - - * embed/ephy-embed-event.c: - - Remove superflous private struct. - -2004-08-16 Christian Persch - - * configure.in: - - Post-release version bump. - -2004-08-16 Christian Persch - - * doc/reference/tmpl/ephy-embed.sgml: - - === Release 1.3.5 === - -2004-08-16 Christian Persch - - * NEWS: - - Update for 1.3.5. - -2004-08-16 Christian Persch - - * configure.in: - - Version 1.3.5. - Make dist produce a .tar.bz2 too. - -2004-08-16 Christian Persch - - * embed/mozilla/EventContext.cpp: - - Use GetLocalName instead of GetTagName to get the attribute name. - Patch by Mikael Brockman, fixes bug #150208. - -2004-08-12 Christian Persch - - * configure.in: - - We don't build against 1.8a1, so don't list it in the help - for --with-mozilla-snapshot. - -2004-08-11 Christian Persch - - * lib/egg/egg-editable-toolbar.c: (drag_data_get_cb), - (set_item_drag_source), (egg_editable_toolbar_set_model): - - Remove unused variables. - -2004-08-10 Christian Persch - - * embed/mozilla/GlobalHistory.cpp: - - Include mozilla-version.h; thanks to Crispin for testing. - -2004-08-10 Christian Persch - - * embed/mozilla/GlobalHistory.cpp: - * embed/mozilla/GlobalHistory.h: - - Yet another mozilla API change. - -2004-08-09 Christian Persch - - * lib/egg/egg-editable-toolbar.c: (find_action), - (egg_editable_toolbar_construct), (egg_editable_toolbar_set_model), - (egg_editable_toolbar_set_ui_manager), - (egg_editable_toolbar_set_property), - (egg_editable_toolbar_get_property), - (egg_editable_toolbar_class_init), (egg_editable_toolbar_finalize), - (egg_editable_toolbar_new), (egg_editable_toolbar_new_with_model), - (egg_editable_toolbar_get_model): - * lib/egg/egg-editable-toolbar.h: - * lib/egg/egg-toolbar-editor.c: (find_action), - (egg_toolbar_editor_set_ui_manager), - (egg_toolbar_editor_set_property), - (egg_toolbar_editor_get_property), (egg_toolbar_editor_class_init), - (egg_toolbar_editor_finalize), (egg_toolbar_editor_new), - (egg_toolbar_editor_init): - * lib/egg/egg-toolbar-editor.h: - * src/bookmarks/ephy-bookmarksbar.c: - (ephy_bookmarksbar_set_window): - * src/toolbar.c: (toolbar_new): - - Fix object property naming leftover from EggMenuMerge days, to - UI manager. - -2004-08-09 Christian Persch - - * lib/egg/egg-editable-toolbar.c: - (egg_editable_toolbar_deconstruct): - - Use g_list_foreach() here. - -2004-08-09 Christian Persch - - * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import): - - Fix a mem leak. - -2004-08-09 Christian Persch - - * lib/egg/egg-toolbar-editor.c: (compare_actions): - - Fix compilation with gcc 2.95. - -2004-08-09 Christian Persch - - * lib/widgets/ephy-label.c: - - Include config.h upfront. - -2004-08-09 Christian Persch - - * lib/widgets/ephy-label.c: - * lib/widgets/ephy-label.h: - - Only use this for gtk < 2.5.1, and just add a few - #defines otherwise. - -2004-08-09 Christian Persch - - * src/bookmarks/ephy-topics-selector.c: - (ephy_topics_selector_get_type), (ephy_topics_selector_apply), - (provide_toggle), (ephy_topics_selector_constructor), - (topic_destroy_cb), (node_toggled_cb), - (ephy_topics_selector_finalize), (ephy_topics_selector_class_init): - - Free list and filter on finalize; fixes bug #149689. - Use g_list_prepend instead of _append. - Mark the column title for translation. - -2004-08-08 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - - Fix compiler warning about anon enum mismatch. - -2004-08-08 Christian Persch - - * embed/mozilla/mozilla-embed.cpp: - - Allow XUL windows to open new windows. - -2004-08-08 Christian Neumair - - * src/bookmarks/ephy-topics-selector.c: - (ephy_topics_selector_constructor): - - Sort topics by name. Fixes #149639. - -2004-08-08 Christian Persch - - * doc/reference/Makefile.am: - - Removed reference to ephy-ellipsizing-label. - - * po/POTFILES.in: - - Added lib/widgets/ephy-label.c - -2004-08-08 Christian Persch - - * lib/ephy-marshal.list: - * lib/widgets/Makefile.am: - R lib/widgets/ephy-ellipsizing-label.c: - R lib/widgets/ephy-ellipsizing-label.h: - A lib/widgets/ephy-label.c: - A lib/widgets/ephy-label.h: - * src/ephy-notebook.c: (sync_label), (build_tab_label): - * src/pdm-dialog.c: (show_cookies_properties): - * src/prefs-dialog.c: (create_download_path_label), - (download_path_response_cb): - - Kill our ellipsising label implementation, and import GtkLabel - into our prefix. Fixes bug #149114. - - * configure.in: - - Depend on pango 1.5.1 for ellipsisation support. - -2004-08-08 Christian Persch - - * configure.in: - * src/Makefile.am: - R src/epiphany.in: - - Get rid of the startup script, and use rpath linking instead. - Ported from galeon. - -2004-08-08 Christian Persch - - * src/ephy-notebook.c: (notebook_drag_data_received_cb): - - Remove unused variable. - -2004-08-08 Christian Persch - - * src/ephy-notebook.c: - - Include "ephy-string.h", fixes build with -Werror. - -2004-08-08 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphySingle.cpp: - * embed/mozilla/EventContext.cpp: - * embed/mozilla/MozillaPrivate.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - * embed/mozilla/mozilla-embed.cpp: - - Consistent naming for nsresult vars. Since 'rv' had the majority, - 'rv' it is. - -2004-08-08 Christian Persch - - * embed/ephy-embed-single.c: (ephy_embed_single_open_window): - * embed/ephy-embed-single.h: - * embed/mozilla/mozilla-embed-single.cpp: (impl_open_window): - * src/ephy-tab.c: (popups_manager_show): - - Make ephy_embed_single_open_window() return the newly opened - embed widget. - -2004-08-06 Christian Persch - - * data/default-prefs.js: - * embed/mozilla/mozilla-embed-single.cpp: - - Make keyword search URL localisable. Fixes bug #144909. - -2004-08-06 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/mozilla-embed.cpp: - * embed/mozilla/mozilla-version.h: - - Fix the reload workaround version checks to look for the - correct versions. Thanks to Crispin for noticing this. - -2004-08-06 Christian Persch - - * lib/ephy-string.c: (ephy_string_parse_uri_list): - * lib/ephy-string.h: - * lib/widgets/ephy-node-view.c: (drag_data_received_cb), - (ephy_node_view_class_init): - * src/bookmarks/ephy-bookmarks-editor.c: - * src/ephy-notebook.c: (notebook_drag_data_received_cb): - * src/ephy-notebook.h: - * src/ephy-session.c: - * src/ephy-shell.c: (ephy_shell_new_tab): - * src/ephy-tab.c: (ephy_tab_new_window_cb): - * src/ephy-window.c: (ephy_window_load_in_tabs): - - Fix dragging of urls which gnome-vfs can't handle. - Fix new tab positioning when opening tabs from drags. - -2004-08-06 Christian Persch - - * src/ephy-session.c: (write_window_geometry), (write_tool_window), - (ephy_session_load): - - Fix restoring the history window on resume. - -2004-08-06 Christian Persch - - * src/ephy-session.c: (ephy_session_init), - (ephy_session_autoresume), (ephy_session_save), - (ephy_session_get_active_window): - - Avoid overwriting the session file while resuming; preserves - the crashed session when crashing while resuming. - -2004-08-06 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/mozilla-embed.cpp: - - Now that mozilla bug #246392 is fixed, only enable our work-around - for old mozilla versions. - -2004-08-06 Christian Persch - - * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_solve_smart_url): - - Use s/""/NULL/ in g_string_new(). - -2004-08-06 Christian Persch - - * src/ephy-session.c: (ephy_session_init), (ephy_session_finalize), - (ephy_session_set_property), (ephy_session_class_init), - (ephy_session_close), (write_tool_window), (ephy_session_save), - (parse_embed), (ephy_session_load), (ephy_session_add_window), - (ephy_session_remove_window), (ephy_session_get_active_window): - - Make ephy_session_get_windows() return only the list of - EphyWindows, and store the tool windows internally. - -2004-08-04 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - - Code cleanup. - -2004-08-04 Christian Persch - - * src/window-commands.c: (editor_can_open_uri): - - Fix mem leak; noticed by Jean-François Rameau. - -2004-08-04 Christian Persch - - * src/window-commands.c: (window_cmd_view_page_source): - - Fix mem leak; noticed by Jean-François Rameau. - -2004-08-02 Christian Persch - - * src/ephy-main.c: (main): - - Move g_set_application_name() call after gnome_program_init(), - so that i18n works correctly. Fixes bug #148948. - -2004-08-01 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - - Don't QI the event target to nsIDOMEventReceiver and back - to nsIDOMEventTarget when using it, just store it as-is. - Thanks to Crispin for noticing this. - -2004-08-01 Christian Persch - - * configure.in: - - Post-release version bump. - -2004-08-01 Christian Persch - - * NEWS: - * doc/reference/tmpl/ephy-embed.sgml: - - === Release 1.3.4 === - -2004-08-01 Christian Persch - - * configure.in: - - Version 1.3.4. - - * NEWS: - - Updated for 1.3.4. - -2004-07-31 Christian Persch - - * src/ephy-window.c: (ephy_window_get_type), - (update_exit_fullscreen_popup_position), (screen_size_changed_cb), - (destroy_exit_fullscreen_popup), (ephy_window_destroy), - (add_widget), (ephy_window_fullscreen), (ephy_window_unfullscreen), - (update_chromes_actions), (update_actions_sensitivity): - - Diconnect from screen's size-changed signal on finalize too. - -2004-07-31 Adam Hooper - - * src/ephy-tab.c: (ephy_tab_set_property), (ephy_tab_get_property), - (ephy_tab_class_init), (ephy_tab_get_popups_allowed), - (ephy_tab_set_popups_allowed), (ephy_tab_address_cb), - (ephy_tab_content_change_cb): - - Rename property to "popups-allowed" consistently. Move page change - code from address_cb to content_change_cb so that the location from - the embed is the one of the loaded page. - -2004-07-31 Christian Persch - - * embed/mozilla/ContentHandler.cpp: - - Fix a mem leak. - -2004-07-31 Christian Persch - - * embed/mozilla/ContentHandler.cpp: - - Confirm before overwriting a file. Fixes bug #143501. - -2004-07-31 Christian Persch - - * src/prefs-dialog.c: (prefs_download_path_button_clicked_cb): - - Start the directory chooser in the home dir. Fixes bug #146055. - -2004-07-31 Christian Persch - - * src/bookmarks/ephy-bookmarks-menu.c: (ensure_folder), - (create_submenu): - - Fix submenu creation with non-ascii topic names. Fixes bug #147469. - -2004-07-31 Christian Persch - - * src/bookmarks/ephy-bookmark-action.c: (drag_data_get_cb): - * src/bookmarks/ephy-bookmarks-export.c: (write_topics_list), - (ephy_bookmarks_export_rdf): - * src/bookmarks/ephy-bookmarks-import.c: (xbel_parse_bookmark), - (xbel_parse_folder), (xbel_parse_xbel), (parse_rdf_subjects), - (parse_rdf_item), (ephy_bookmarks_import_rdf): - * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_save), - (ephy_bookmarks_init): - * src/bookmarks/ephy-bookmarksbar-model.c: - (ephy_bookmarksbar_model_get_node): - * src/bookmarks/ephy-topic-action.c: (drag_data_get_cb): - * src/ephy-session.c: (write_tab), (write_window_geometry), - (write_tool_window), (write_ephy_window), (ephy_session_save), - (parse_embed), (ephy_session_load): - - Fix signedness difference warnings with gcc 3.5. Patch by Jon Oberheide. - -2004-07-31 Christian Persch - - * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_get_type), - (toolbars_toolbar_new), (toolbars_item_new), - (egg_toolbars_model_set_flags), (egg_toolbars_model_add_separator), - (impl_add_item), (egg_toolbars_model_add_toolbar), - (egg_toolbars_model_class_init), - (egg_toolbars_model_remove_toolbar), - (egg_toolbars_model_remove_item), (egg_toolbars_model_move_item), - (egg_toolbars_model_get_item_id), - (egg_toolbars_model_get_item_data), - (egg_toolbars_model_get_item_type): - * lib/egg/egg-toolbars-model.h: - - Small code style cleanups. - -2004-07-31 Christian Persch - - * lib/egg/egg-toolbars-model.c: (free_toolbar_node), - (free_item_node), (free_toolbar), (egg_toolbars_model_finalize), - (egg_toolbars_model_remove_toolbar), - (egg_toolbars_model_remove_item): - - Free node data and destroy nodes on finalize. - -2004-07-31 Christian Persch - - * src/ephy-toolbars-model.c: (update_flags_and_save_changes): - - Correctly clear the not-removable toolbar flag. - -2004-07-30 Christian Persch - - * 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. - -2004-07-29 Christian Persch - - * lib/egg/egg-toolbars-model.c: (parse_toolbars): - - Fix a call to egg_toolbars_model_set_flags(). - -2004-07-28 Christian Persch - - * embed/mozilla/EphyContentPolicy.cpp: - - Mozilla API change. - -2004-07-27 Christian Persch - - * embed/ephy-embed-single.h: - - Remove load_proxy_autoconf() vfunc. - - * embed/mozilla/mozilla-notifiers.cpp: - - Only include gnome-i18n.h here. - - Thanks to Crispin for noticing those buglets. - -2004-07-26 Christian Persch - - * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_set_flags): - * lib/egg/egg-toolbars-model.h: - * src/bookmarks/ephy-bookmarksbar-model.c: - (update_flags_and_save_changes): - * src/ephy-toolbars-model.c: (update_flags_and_save_changes): - - Switch parameter order for egg_toolbars_model_set_flags(). - -2004-07-25 Christian Persch - - * src/popup-commands.c: (popup_cmd_download_link), - (popup_cmd_download_link_as): - - Fix "Save Link As" filechooser title, and change - capitalisation on the "Download Link" filechooser - title. Fixes bug #138208. - -2004-07-25 Christian Persch - - * embed/mozilla/mozilla-embed-single.cpp: - - Make sure we don't release the single observer more than - once. - -2004-07-25 Christian Persch - - * embed/mozilla/EphyHeaderSniffer.cpp: - - Disallow some more characters in the suggested filename. - -2004-07-24 Adam Hooper - - * embed/mozilla/mozilla-notifiers.cpp: - - #include - -2004-07-24 Christian Persch - - * lib/egg/egg-toolbar-editor.c: - * lib/egg/egg-toolbar-editor.h: - - Make egg_toolbar_editor_add_action public again. - -2004-07-24 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - - Remove some unneeded includes. - -2004-07-24 Christian Persch - - * embed/downloader-view.c: (show_status_icon): - - Don't load the status icon from the file, use the - registered stock icon instead. - -2004-07-24 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/mozilla-embed.cpp: - - Refactores storing the security info, move it into - EphyBrowser. - -2004-07-23 Marco Pesenti Gritti - - * lib/widgets/ephy-node-view.c: (cell_renderer_edited), - (renderer_editing_canceled_cb), (ephy_node_view_init), - (ephy_node_view_edit): - * lib/widgets/ephy-node-view.h: - * src/bookmarks/ephy-bookmarks-editor.c: (cmd_add_topic), - (cmd_rename): - * src/bookmarks/ephy-topics-selector.c: - (ephy_topics_selector_new_topic): - - Do not remove the topic when rename is cancelled. - -2004-07-23 Marco Pesenti Gritti - - * lib/ephy-marshal.list: - * lib/widgets/ephy-node-view.c: (path_toggled), - (ephy_node_view_key_press_cb), (get_selection_refs), - (ephy_node_view_button_press_cb), (cell_renderer_edited), - (renderer_editing_canceled_cb), (ephy_node_view_add_column), - (ephy_node_view_init), (ephy_node_view_edit), - (ephy_node_view_constructor), (ephy_node_view_add_toggle), - (ephy_node_view_class_init): - * lib/widgets/ephy-node-view.h: - - Add support for toggles. When editing is canceled remove - the node. - - * src/bookmarks/ephy-new-bookmark.c: (ephy_new_bookmark_add): - * src/bookmarks/ephy-topics-selector.c: - (ephy_topics_selector_get_type), - (ephy_topics_selector_set_bookmarks), - (ephy_topics_selector_set_property), (ephy_topics_selector_apply), - (provide_toggle), (ephy_topics_selector_constructor), - (topic_destroy_cb), (node_toggled_cb), (ephy_topics_selector_init), - (ephy_topics_selector_new), (ephy_topics_selector_new_topic), - (ephy_topics_selector_class_init): - * src/bookmarks/ephy-topics-selector.h: - - Use EphyNodeView instead of a list store. Share a lot of code - and we get updating for free. Fix bug #144770 - -2004-07-23 Marco Pesenti Gritti - - * lib/widgets/ephy-node-view.c: (filter_changed_cb), - (ephy_node_view_set_filter), (ephy_node_view_set_property), - (ephy_node_view_init), (ephy_node_view_select_node), - (filter_visible_func), (ephy_node_view_constructor), - (ephy_node_view_class_init): - * lib/widgets/ephy-tree-model-node.c: - (ephy_tree_model_node_set_property), - (ephy_tree_model_node_get_property), - (ephy_tree_model_node_class_init), (ephy_tree_model_node_init), - (ephy_tree_model_node_new), (ephy_tree_model_node_get_column_type), - (ephy_tree_model_node_get_value): - * lib/widgets/ephy-tree-model-node.h: - * src/prefs-dialog.c: (create_node_combo): - - Simplify node view filtering code and make it a normal - property (no more constructor only) - -2004-07-23 Marco Pesenti Gritti - - * lib/widgets/ephy-node-view.c: (ephy_node_view_new), - (ephy_node_view_constructor), (ephy_node_view_class_init): - - Use gobject constructor - -2004-07-22 Christian Persch - - * lib/ephy-debug.c: (ephy_profiler_dump): - - Ignore the microseconds part - of the g_timer_elapsed call, its redundant information, - and breaks when the timer is over a second. - (ported from galeon). - -2004-07-22 Christian Persch - - * embed/ephy-embed-single.c: - * embed/ephy-embed-single.h: - * embed/mozilla/mozilla-embed-single.cpp: - * embed/mozilla/mozilla-notifiers.cpp: - - No need to make proxy PAC configuration public, we only - use it in a pref notifier. - -2004-07-22 Marco Pesenti Gritti - - * 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 - -2004-07-22 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarks-import.c: - (ephy_bookmarks_import_mozilla): - - Handle the bookmark in the root folder case - correctly. Fix #145611 - -2004-07-22 Christian Persch - - * embed/mozilla/GtkNSSClientAuthDialogs.cpp: - * embed/mozilla/GtkNSSDialogs.cpp: - - Fix mem leaks (ported from Galeon). - -2004-07-21 Xan Lopez - - * data/epiphany.desktop.in: - - Added application/xhtml+xml, text/html, text/xml for MimeType entry. - -2004-07-21 Marco Pesenti Gritti - - * embed/mozilla/EphySingle.cpp: - * embed/mozilla/EphySingle.h: - * embed/mozilla/mozilla-embed-single.cpp: - - No need to use a weak ref for the observer, - makes the single code easier. - -2004-07-20 Marco Pesenti Gritti - - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/EphyHeaderSniffer.h: - * embed/mozilla/mozilla-embed-persist.cpp: - - Pass single to the sniffer and weak ref it. - Fix #141928 - -2004-07-19 Marco Pesenti Gritti - - * NEWS: - * configure.in: - * doc/reference/tmpl/ephy-embed.sgml: - - === Release 1.3.3 === - -2004-07-19 Marco Pesenti Gritti - - * lib/ephy-prefs.h: - * src/ephy-shell.c: (ephy_shell_new_tab): - * src/ephy-window.c: (ephy_window_fullscreen), - (ephy_window_unfullscreen), (update_actions_sensitivity), - (tab_detached_cb), (tab_delete_cb), (ephy_window_init): - * src/window-commands.c: (window_cmd_file_new_window), - (window_cmd_file_close_window): - - Add disable_quit, disable_new_window, first_window_fullscreen - lockdown options. - -2004-07-17 Christian Persch - - * embed/print-dialog.c: (ephy_print_dialog_browse_button_cb): - - Since the print dialogue is modal the filechooser needs to be modal - too. Fixes bug #147628. - -2004-07-14 Marco Pesenti Gritti - - * lib/widgets/ephy-node-view.c: (compare_string_values), - (ephy_node_view_sort_func), (ephy_node_view_add_data_column), - (ephy_node_view_add_column), (ephy_node_view_set_priority), - (ephy_node_view_set_sort), (ephy_node_view_init): - * lib/widgets/ephy-node-view.h: - - Improve sort/priority API. - - * src/bookmarks/ephy-bookmarks-editor.c: - (ephy_bookmarks_editor_construct): - * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_init): - * src/ephy-history-window.c: (ephy_history_window_construct): - - Sort history items by last visit - -2004-07-12 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmark-action.c: (properties_activate_cb), - (show_context_menu), (bookmark_destroy_cb), - (ephy_bookmark_action_set_bookmark_id), - (ephy_bookmark_action_set_property), - (ephy_bookmark_action_finalize), (ephy_bookmark_action_init): - - Add a Properties item to bookmark context menu - -2004-07-11 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarksbar.c: (bookmark_open_in_tab_cb): - - When opening bookmarks in a tab from toolbars jump to them. - -2004-07-11 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb): - * src/bookmarks/ephy-bookmark-action.c: (connect_proxy): - * src/bookmarks/ephy-topic-action.c: (connect_proxy): - - Disable sliding when not in toolbar editing mode. - We cant assume GDK_ACTION_MOVE there. - -2004-07-11 Marco Pesenti Gritti - - * src/bookmarks/ephy-topic-action.c: (stop_drag_check), - (button_release_cb), (button_press_cb): - - Make sure we stop the drag check also when button - is released while the menu grab is still in effect. - -2004-07-11 Marco Pesenti Gritti - - * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_move_item): - * lib/egg/egg-toolbars-model.h: - - Add api to move items. - - * src/bookmarks/ephy-bookmark-action.c: (get_item_position), - (remove_from_model), (move_in_model), (move_left_activate_cb), - (move_right_activate_cb), (show_context_menu): - * src/bookmarks/ephy-topic-action.c: (get_item_position), - (remove_from_model), (move_in_model), (move_left_activate_cb), - (move_right_activate_cb), (show_context_menu): - - Add Move Left/Move Right context menus. - -2004-07-11 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmark-action.c: (drag_begin_cb), - (drag_end_cb), (connect_proxy): - * src/bookmarks/ephy-topic-action.c: (drag_begin_cb), - (drag_end_cb), (connect_proxy): - - Hide the item when dragging it like we do for normal - toolbars. - -2004-07-11 Marco Pesenti Gritti - - * src/bookmarks/ephy-topic-action.c: (create_tool_item), - (menu_deactivate_cb), (remove_from_model), (remove_activate_cb), - (drag_data_get_cb), (drag_data_delete_cb), (stop_drag_check), - (check_horizontal_threshold), (drag_motion_cb), - (button_toggled_cb), (button_release_cb), (button_press_cb), - (connect_proxy): - - Implement topics drag and drop. Totally tricky but it seem - to work fine :) - -2004-07-11 Christian Persch - - * src/bookmarks/ephy-bookmark-action.c: (drag_motion_cb): - - Fix a mem leak. - -2004-07-09 Christian Persch - - * configure.in: - - Depend on lignomeui >= 2.6.0. - -2004-07-09 Xan Lopez - - * embed/downloader-view.c: (downloader_view_add_download): - - Plug leak, thanks to Crispin. - -2004-07-08 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb): - - When moving in the same toolbar force GDK_ACTION_MOVE. - Fix #145529 - -2004-07-07 Christian Persch - - * embed/print-dialog.c: (ephy_print_get_print_info): - - Don't convert filename encoding here, since we use it - as UTF-8 in MozillaPrivate. - -2004-07-06 Christian Persch - - * configure.in: - - Add "he" to ALL_LINGUAS. - -2004-07-06 Christian Persch - - * configure.in: - - Post-release version bump. - -2004-07-06 Christian Persch - - === Release 1.3.2 === - -2004-07-06 Christian Persch - - * NEWS: - * configure.in: - - Version 1.3.2. - -2004-07-06 Xan Lopez - - * embed/mozilla/MozDownload.cpp: - - didn't I said to make that NS_IF_ADDREF () ? - mmm, yes - - Fix the downloader crasher. - -2004-07-06 Christian Persch - - * embed/mozilla/EventContext.cpp: - - -1 is valid button number, it's used for synthesised "mouse" events - on form submit via Return key. Fixes bug #145420. - -2004-07-06 Christian Persch - - * configure.in: - - Post-release version bump. - -2004-07-06 Christian Persch - - * doc/reference/tmpl/ephy-embed.sgml: - - === Release 1.3.1 === - -2004-07-06 Xan Lopez - - * embed/downloader-view.c: (downloader_view_add_download): - * embed/mozilla/mozilla-download.cpp: - - If the MIME is unknown, use application/octet-stream. - -2004-07-06 Christian Persch - - * Makefile.am: - * data/Makefile.am: - - Add MAINTAINERS to EXTRA_DIST, and make gconf schema install - less noisy. - -2004-07-06 Christian Persch - - * configure.in: - - Version 1.3.1. - -2004-07-05 Xan Lopez - - * embed/downloader-view.c: (downloader_view_add_download): - - Scale the MIME icon. - -2004-07-05 Marco Pesenti Gritti - - * embed/downloader-view.c: (downloader_view_build_ui): - - Some ordering/sizing tweak - -2004-07-05 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmark-action.c: (drag_motion_cb): - - Support also GDK_ACTION_COPY. Fix #145254. - - * src/ephy-notebook.c: (notebook_drag_data_received_cb): - - Use the notebook to access the toplevel, data passed to the - signal can be NULL. - -2004-07-05 Christian Persch - - * embed/mozilla/EphySingle.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - - Decode ACE for UI, and encode UTF-8 hostnames before using - cookie and passwords functions with them. - Fixes bug #130930. - -2004-07-05 Christian Persch - - * embed/mozilla/EventContext.cpp: - * embed/mozilla/EventContext.h: - - Unescape the mailto: address, fixes bug #144462. - -2004-07-05 Christian Persch - - * lib/widgets/ephy-spinner.c: (ephy_spinner_cache_get_type), - (ephy_spinner_images_free), (ephy_spinner_images_copy), - (ephy_spinner_cache_unload), (extract_frame), - (ephy_spinner_cache_load), (compare_size), (scale_to_size), - (ephy_spinner_cache_get_images), (ephy_spinner_cache_init), - (ephy_spinner_cache_finalize), (ephy_spinner_cache_class_init), - (ephy_spinner_cache_ref), (ephy_spinner_load_images), - (ephy_spinner_unload_images), (icon_theme_changed_cb), - (ephy_spinner_init), (select_spinner_image), (ephy_spinner_expose), - (bump_spinner_frame_cb), (ephy_spinner_start), - (ephy_spinner_remove_update_callback), (ephy_spinner_stop), - (ephy_spinner_set_size), (ephy_spinner_size_request), - (ephy_spinner_finalize), (ephy_spinner_class_init): - - Cache the scaled spinner images to make creating new spinners very - fast, now that we use so many of them. - -2004-07-04 Christian Persch - - * NEWS: - - Updated for 1.3.1. - -2004-07-04 Christian Persch - - * src/ephy-window.c: (menubar_deactivate_cb), - (ephy_window_key_press_event), (ephy_window_class_init): - - Show and activate the menubar with F10 when it's hidden. - Fixes bug #141999. - -2004-07-04 Christian Persch - - * embed/mozilla/EventContext.cpp: - * embed/mozilla/EventContext.h: - - Normal context menus for check/radio/submit buttons. - Fixes bug #143942. - -2004-07-04 Christian Persch - - * embed/downloader-view.c: (downloader_view_add_download): - - Use regular return for valid error conditions, not - g_return_if_fail. - -2004-07-04 Christian Persch - - * embed/mozilla/mozilla-download.cpp: (impl_get_mime_type): - - Fix compilation with mozilla 1.7. - -2004-07-04 Xan Lopez - - * 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. - -2004-07-03 Marco Pesenti Gritti - - * src/bookmarks/ephy-topic-action.c: (can_open_in_tabs), - (append_bookmarks_menu), (add_open_in_tabs_menu), - (build_bookmarks_menu), (show_context_menu): - - "Open in tabs" insensitive when there are not - multiple bookmarks in the topic. - -2004-07-03 Christian Persch - - * lib/widgets/ephy-spinner.c: (ephy_spinner_load_images): - - Add profiler calls. - -2004-07-03 Christian Persch - - * embed/mozilla/mozilla-embed-single.cpp: - - Mozilla API change. - -2004-07-02 Christian Persch - - * data/art/Makefile.am: - R data/art/epiphany-tab-loading.gif: - * lib/widgets/ephy-spinner.c: (get_spinner_dimensions), - (ephy_spinner_init), (ephy_spinner_expose), - (ephy_spinner_unload_images), (scale_to_real_size), - (ephy_spinner_set_size), (ephy_spinner_size_request): - * lib/widgets/ephy-spinner.h: - * src/ephy-notebook.c: (sync_load_status), (build_tab_label): - * src/toolbar.c: (fixed_toolbar_reconfigured_cb), (toolbar_init): - - Remove our tab loading animation and use mini-spinners instead. - -2004-07-02 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmark-action.c: - (ephy_bookmark_action_sync_icon): - * src/ephy-favicon-action.c: (ephy_favicon_action_sync_icon): - - Use blank document as default favicon - -2004-07-02 Christian Persch - - * configure.in: - * embed/mozilla/GtkNSSKeyPairDialogs.cpp: - - Depend on mozilla >= 1.7 final. Simplify some mozilla - version checks. - -2004-07-02 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmark-action.c: (show_context_menu), - (popup_menu_cb), (button_press_cb), (connect_proxy): - * src/bookmarks/ephy-topic-action.c: (show_context_menu), - (popup_menu_cb), (button_press_cb), (connect_proxy): - - Follow popups keybindings. - -2004-07-02 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmark-action.c: (open_in_tab_activate_cb), - (open_in_window_activate_cb), (remove_from_model), - (drag_data_delete_cb), (remove_activate_cb), (show_context_menu), - (button_press_cb): - - Implement bookmark context menu. - -2004-07-02 Marco Pesenti Gritti - - * src/bookmarks/ephy-topic-action.c: (remove_activate_cb), - (add_open_in_tabs_menu), (build_bookmarks_menu), - (show_context_menu), (button_press_cb), (connect_proxy): - - Implement topic context menu. - -2004-07-02 Marco Pesenti Gritti - - * src/bookmarks/ephy-favorites-menu.c: - * src/bookmarks/ephy-favorites-menu.h: - - Move in the bookmarks dir. - - * lib/ephy-gui.c: (ephy_gui_select_row_by_key), - (ephy_gui_is_middle_click): - * lib/ephy-gui.h: - - Add a function to check if menus was activated - by a middle or a ctrl+click (which is equivalent in epiphany) - - * lib/ephy-marshal.list: - * src/Makefile.am: - * src/bookmarks/Makefile.am: - * src/bookmarks/ephy-bookmark-action.c: (activate_cb), - (ephy_bookmark_action_class_init): - * src/bookmarks/ephy-bookmark-action.h: - * src/bookmarks/ephy-bookmarks-menu.c: (open_bookmark_cb), - (create_menu): - * src/bookmarks/ephy-bookmarksbar.c: (bookmark_open_in_tab_cb), - (bookmark_open_cb), (ephy_bookmarksbar_action_request): - * src/bookmarks/ephy-topic-action.c: (menu_activate_cb), - (ephy_topic_action_class_init): - * src/bookmarks/ephy-topic-action.h: - - Add signals to open bookmarks in new window/tab. I'll need - them for context menus. - Use them for middle/ctrl click. - -2004-07-01 Christian Persch - - * src/ephy-window.c: - - s/Off-Line/Offline/ - -2004-07-01 Marco Pesenti Gritti - - * data/ui/epiphany-ui.xml: - - Change position to popups and offline menus. - -2004-07-01 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmark-action.c: - (ephy_bookmark_action_sync_smart_url): - - Do not show the icon for smartbookmarks - -2004-07-01 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb): - - Do not allow dragging out of edit mode on ITEMS_ONLY toolbars. - -2004-07-01 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmark-action.c: - (ephy_bookmark_action_sync_icon): - - No need to show the default icon for bookmarks menu. - -2004-07-01 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmark-action.c: (create_tool_item), - (favicon_cache_changed_cb), (ephy_bookmark_action_sync_icon), - (stop_drag_check), (drag_data_get_cb), (drag_data_delete_cb), - (drag_motion_cb), (button_press_cb), (button_release_cb), - (connect_proxy), (ephy_bookmark_action_init): - - Allow to drag bookmarks around also when not in edit mode. - Use the default bookmark icon when there is not a specific - one, it acts as a separator. Put some space between the icon - and the text. - -2004-06-30 Adam Hooper - - * data/art/Makefile.am: - * data/art/epiphany-popup-hidden.png: - * data/art/epiphany-popup-hidden.svg: - * data/ui/epiphany-ui.xml: - * lib/ephy-stock-icons.c: (ephy_stock_icons_init): - * lib/ephy-stock-icons.h: - * src/ephy-statusbar.c: (create_statusbar_popups_manager_icon), - (ephy_statusbar_init), (ephy_statusbar_set_security_state), - (ephy_statusbar_set_popups_state): - * src/ephy-statusbar.h: - * src/ephy-tab.c: (ephy_tab_set_property), (ephy_tab_get_property), - (ephy_tab_class_init), (popups_manager_free_info), - (popups_manager_add), (popups_manager_remove_window), - (disconnect_popup), (popups_manager_add_window), - (ephy_tab_get_popups_displayed), (popups_manager_show), - (popups_manager_show_all), (popups_manager_new_window_info), - (popups_manager_hide), (popups_manager_hide_all), - (ephy_tab_set_popups_displayed), (popup_blocker_n_hidden), - (popups_manager_reset), (ephy_tab_finalize), (ephy_tab_address_cb), - (ephy_tab_new_window_cb), (ephy_tab_popup_blocked_cb), - (ephy_tab_init): - * src/ephy-window.c: (sync_tab_popup_windows), - (sync_tab_popups_allowed), (ephy_window_set_active_tab), - (ephy_window_get_property), (allow_popups_notifier), - (ephy_window_init), (ephy_window_finalize), (ephy_window_load_url), - (ephy_window_view_bookmarksbar_cb), - (ephy_window_view_popup_windows_cb): - - Popup blocking support. View -> Popup Windows. - - * doc/reference/Makefile.am: - * doc/reference/epiphany-sections.txt: - * doc/reference/tmpl/ephy-embed-single.sgml: - * doc/reference/tmpl/ephy-embed.sgml: - * doc/reference/tmpl/ephy-permission-manager.sgml: - * doc/reference/tmpl/ephy-shell.sgml: - * doc/reference/tmpl/ephy-tab.sgml: - * doc/reference/tmpl/epiphany-unused.sgml: - - Added a couple of docs, but mostly this is stuff that I imagine - nobody ever commits because it's all auto-generated. - -2004-06-30 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarksbar.c: (open_in_tabs_cb): - * src/bookmarks/ephy-topic-action.c: (append_bookmarks_menu), - (open_in_tabs_activate_cb), (build_bookmarks_menu): - - Use a new window for "Open in Tabs" - -2004-06-30 Xan Lopez - - * embed/mozilla/MozDownload.cpp: - - Be a bit smarter about double extensions. - -2004-06-30 Marco Pesenti Gritti - - * src/ephy-notebook.c: - - Change tabs sizing again. Now we use a width - of 20 (estimated) chars. - -2004-06-29 Christian Persch - - * NEWS: - - Update for 1.3.1. - -2004-06-29 Christian Persch - - * lib/ephy-dialog.c: (togglebutton_clicked_cb), - (radiobutton_clicked_cb), (spinbutton_timeout_cb), (changed_cb): - - Set sane_state to TRUE from user changes, otherwise broken prefs - will never get overwritten. - -2004-06-27 Christian Persch - - * embed/mozilla/EphySingle.cpp: - * embed/mozilla/EphySingle.h: - * embed/mozilla/mozilla-embed-single.cpp: - - EphySingle needs to implement nsISupportsWeakReference. - -2004-06-26 Christian Persch - - * data/ui/epiphany-ui.xml: - * embed/ephy-embed-single.c: (ephy_embed_single_iface_init), - (ephy_embed_single_set_offline_mode), - (ephy_embed_single_get_offline_mode): - * embed/ephy-embed-single.h: - * embed/mozilla/EphySingle.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - * src/ephy-window.c: (network_status_changed), (ephy_window_init), - (ephy_window_finalize): - * src/window-commands.c: (window_cmd_file_save_as), - (window_cmd_file_work_offline): - * src/window-commands.h: - - Implement File->Work Off-Line command and backend. - No DBUS/HAL/whatever integration yet. - -2004-06-26 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import), - (xbel_parse_folder), (xbel_parse_xbel): - - Preserve hierarchy in the xbel importer too. Use mime - sniffing to determine the file mime type. - -2004-06-25 Marco Pesenti Gritti - - * embed/ephy-embed.h: - * embed/mozilla/MozillaPrivate.h: - * embed/print-dialog.h: - - Move PrintInfo to print-dialog since - it's no more use by embed api. - -2004-06-25 Marco Pesenti Gritti - - * embed/MozillaPrivate.cpp: - - Fix typo in the printer name - -2004-06-25 Marco Pesenti Gritti - - * embed/MozillaPrivate.cpp: - - Remove preview flag - -2004-06-25 Marco Pesenti Gritti - - * embed/ephy-embed.c: (ephy_embed_print), - (ephy_embed_set_print_preview_mode): - * embed/ephy-embed.h: - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/PrintingPromptService.cpp: - * embed/mozilla/mozilla-embed.cpp: - * embed/print-dialog.c: (ephy_print_dialog_response_cb), - (ephy_print_dialog_new): - * embed/print-dialog.h: - * src/ephy-window.c: (ephy_window_delete_event_cb), - (ephy_window_finalize), (update_embed_dialogs), (ephy_window_find): - * src/ppview-toolbar.c: (toolbar_cmd_ppv_close): - * src/window-commands.c: (window_cmd_file_print_preview), - (window_cmd_file_print): - - Simplify print code. Now there is only one case to deal with, - the mozilla prompt dialog. - This should help with xprint. - -2004-06-24 Marco Pesenti Gritti - - * lib/ephy-node.c: (ephy_node_new_with_id), (ephy_node_get_id), - (child_changed), (write_parent): - * lib/ephy-node.h: - * src/bookmarks/ephy-bookmark-action.c: - (bookmarks_child_changed_cb): - * src/bookmarks/ephy-bookmark-properties.c: - (toolbar_checkbox_changed_cb), (build_ui): - * src/bookmarks/ephy-bookmarks-editor.c: - (cmd_show_in_bookmarks_bar), (ephy_bookmarks_editor_update_menu): - * src/bookmarks/ephy-bookmarks-menu.c: (create_menu), - (topic_child_changed_cb): - * src/bookmarks/ephy-new-bookmark.c: - * src/bookmarks/ephy-new-bookmark.h: - * src/bookmarks/ephy-topic-action.c: - (ephy_topic_action_set_topic_id), (topic_child_changed_cb): - - Use guint consistently for node ids - -2004-06-24 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarksbar.c: (open_in_tabs_cb), - (go_location_cb), (ephy_bookmarksbar_action_request): - * src/bookmarks/ephy-topic-action.c: (append_bookmarks_menu), - (open_in_tabs_activate_cb), (build_bookmarks_menu), - (build_topics_menu), (build_menu), - (ephy_topic_action_set_topic_id), (ephy_topic_action_set_property), - (ephy_topic_action_class_init): - * src/bookmarks/ephy-topic-action.h: - * src/ephy-window.c: (ephy_window_load_in_tabs): - - Implement open in tabs from toolbar topics - -2004-06-24 Christian Persch - - * embed/mozilla/mozilla-embed-single.cpp: - - Removed unused array, and added a few missing statics. - -2004-06-23 Christian Persch - - * src/bookmarks/ephy-bookmarksbar.c: - (ephy_bookmarksbar_set_window): - * src/toolbar.c: (toolbar_realize): - - Use g_signal_connect_after to connect to the toolbar_added - signal, otherwise the toolbar isn't created yet and we crash - when trying to set the drag dests on a newly added toolbar. - -2004-06-23 Christian Persch - - * doc/reference/tmpl/ephy-permission-manager.sgml: - * embed/ephy-permission-manager.c: (ephy_permission_info_new), - (ephy_permission_info_copy), (ephy_permission_manager_add), - (ephy_permission_manager_remove), (ephy_permission_manager_test), - (ephy_permission_manager_list): - * embed/ephy-permission-manager.h: - * embed/mozilla/EphySingle.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - - Make the permission type a string instead of an enum, that way - we can support more than just the hardcoded 3 types. - -2004-06-23 Christian Persch - - * src/ephy-window.c: (ephy_window_get_tabs): - - Simply use gtk_container_get_children(). - -2004-06-23 Christian Persch - - * src/ephy-window.c: (exit_fullscreen_button_clicked_cb), - (get_chromes_visibility), (ephy_window_state_event_cb): - - Make the "Exit Fullscreen" button toggle the action instead of - doing to work itself. Fixes bug #144785. - -2004-06-23 Marco Pesenti Gritti - - * src/ephy-notebook.c: (notebook_drag_data_received_cb): - * src/ephy-window.c: (ephy_window_set_zoom), - (ephy_window_load_in_tabs): - * src/ephy-window.h: - - Add EphyWindow API to open multiple uris in - tabs, use it for dnd on the notebook. - -2004-06-23 Christian Persch - - * embed/mozilla/GlobalHistory.cpp: - - Move check for javascript after the http[s] checks. - -2004-06-23 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarks-import.c: - (folders_list_to_topic_name): - * src/bookmarks/ephy-bookmarks-menu.c: (create_menu), - (ensure_folder), (create_submenu), (ephy_bookmarks_menu_rebuild): - - "/" in a topic title is now a submenu in - the bookmarks menu. - -2004-06-22 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarks-import.c: - (folders_list_to_topic_name), (ephy_bookmarks_import_mozilla): - - Keep the whole hierarchy of folders in the topic name, separated - by |. Mozilla importer only for now. - -2004-06-22 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarks-import.c: (bookmark_add), - (xbel_parse_bookmark), (ephy_bookmarks_import_mozilla), - (parse_rdf_item): - - Drop some unused code. - -2004-06-21 Marco Pesenti Gritti - - * lib/ephy-gui.c: (ephy_gui_help), (ephy_gui_select_row_by_key): - * lib/widgets/ephy-node-view.c: (ephy_node_view_key_press_cb): - * src/bookmarks/ephy-topics-selector.c: (topic_key_pressed): - - Factor out the helper to select a treeview row by column and - use it also in the topic selector. - - * lib/ephy-gui.h: - * src/bookmarks/ephy-bookmarks-editor.c: - * src/bookmarks/ephy-new-bookmark.c: - * src/ephy-history-window.c: - * src/pdm-dialog.c: - * src/ppview-toolbar.c: - * src/prefs-dialog.c: - * src/window-commands.c: - * embed/downloader-view.c: - - Remove braindead gtk.h inclusion and deal with - fallout headers. - -2004-06-21 Marco Pesenti Gritti - - * src/bookmarks/ephy-new-bookmark.c: (response_cb), - (ephy_new_bookmark_construct): - * src/bookmarks/ephy-topics-selector.c: (renderer_edited_cb), - (renderer_editing_canceled_cb), (ephy_topics_build_ui), - (ephy_topics_selector_new), (ephy_topics_selector_new_topic): - * src/bookmarks/ephy-topics-selector.h: - - Add a New topic button to the new bookmark dialog. - -2004-06-21 Christian Persch - - * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_get_flags), - (parse_item_list), (parse_toolbars): - - Check for empty attributes before adding the item when parsing - the toolbars file. Should fix bug #144698. - -2004-06-21 Christian Persch - - * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import): - - Allow importing from Epiphany bookmarks format (RDF), - fixes bug #144699. - -2004-06-21 Adam Hooper - - * lib/ephy-marshal.list: - - Whoops. Um. Fixed the build. - -2004-06-21 Adam Hooper - - * embed/ephy-embed-single.c: - * embed/ephy-embed.c: (ephy_embed_base_init): - * embed/ephy-embed.h: - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/mozilla-embed-single.cpp: - - Implement popup-blocking signals. Part of bug #111930. - -2004-06-20 Christian Persch - - * embed/mozilla/GlobalHistory.cpp: - - Remove implementation of ::HidePage again, it's really not used - anyway in mozilla (history load listener is the only place, and it's - not build, not even updated for API changes). - -2004-06-20 Christian Persch - - * embed/mozilla/GlobalHistory.cpp: - - Implement GlobalHistory2::HidePage, fixes bug #142143. - -2004-06-20 Christian Persch - - * src/ephy-notebook.c: (sync_label), (tab_label_style_set_cb), - (build_tab_label), (ephy_notebook_add_tab): - * src/ephy-window.c: (ephy_window_get_tabs): - - Make tab labels 1/n-th of the window width (n = number of tabs), - with a minimum size so they don't get too tiny. - Make the tooltip cover the label + favicon, not just the label. - -2004-06-19 Marco Pesenti Gritti - - * src/ephy-notebook.c: (ephy_notebook_move_tab), (move_tab), - (ephy_notebook_switch_page_cb), (ephy_notebook_init), - (ephy_notebook_finalize), (ephy_notebook_add_tab), - (ephy_notebook_remove_tab): - * src/ephy-notebook.h: - * src/ephy-shell.c: (ephy_shell_new_tab): - * src/ephy-shell.h: - * src/ephy-tab.c: (ephy_tab_new_window_cb): - * src/ephy-window.c: (ephy_window_add_tab): - - Append tabs at the end instead of grouping - them near the current one. - -2004-06-19 Marco Pesenti Gritti - - * data/art/epiphany-tab-loading.gif: - - Update from new winstripe theme of Firefox - -2004-06-17 Christian Persch - - * embed/mozilla/GtkNSSClientAuthDialogs.cpp: - * embed/mozilla/GtkNSSDialogs.cpp: - - Escape strings before using the with markup in labels. - Patch by Crispin Flowerday. - -2004-06-16 Christian Persch - - * src/ephy-notebook.c: (build_tab_label): - - Set data for close-button on the tab label. - -2004-06-16 Christian Persch - - * lib/egg/egg-editable-toolbar.c: - (egg_editable_toolbar_disconnect_model), - (egg_editable_toolbar_deconstruct), - (egg_editable_toolbar_set_model), - (egg_editable_toolbar_class_init), (egg_editable_toolbar_finalize), - (egg_editable_toolbar_new), (egg_editable_toolbar_new_with_model), - (egg_editable_toolbar_set_fixed): - * lib/egg/egg-editable-toolbar.h: - * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_get_flags), - (parse_toolbars): - * src/bookmarks/ephy-bookmarksbar.c: - (ephy_bookmarksbar_set_window), (ephy_bookmarksbar_class_init): - * src/ephy-window.c: (ephy_window_fullscreen), - (ephy_window_unfullscreen), (ephy_window_init): - * src/toolbar.c: (toolbar_style_changed_cb), (parent_set_cb), - (toolbar_init), (toolbar_finalize), (toolbar_new): - - Go back to construction the toolbar when the model is set, fixes - bug #144191. - -2004-06-15 Marco Pesenti Gritti - - * data/bme.desktop.in: - * data/epiphany.desktop.in: - - Use GenericName. See #144284 for the hig change. - Fix bug #140625. - -2004-06-15 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/mozilla-embed.cpp: - - Work around mozilla bug #246392 which goes back to the original urls - when reloading a frameset. Fixes bug #115800. - -2004-06-14 Christian Persch - - * src/bookmarks/ephy-new-bookmark.c: (duplicate_dialog_construct): - - Use g_markup_print_escaed(). - -2004-06-14 Christian Persch - - * src/bookmarks/ephy-new-bookmark.c: (duplicate_dialog_construct): - * src/bookmarks/ephy-topic-action.c: (build_topics_menu): - - Escape strings before using them with markup in labels. - -2004-06-14 Christian Persch - - * embed/ephy-embed.c: (ephy_embed_reload): - * embed/ephy-embed.h: - * embed/mozilla/mozilla-embed.cpp: - * src/prefs-dialog.c: - * src/window-commands.c: (window_cmd_view_reload): - - Get rid of EmbedReloadFlags, and use a gboolean force parameter - in ephy_embed_reload() instead, since we only had two states anyway - - EMBED_RELOAD_NORMAL, and EMBED_RELOAD_FORCE. - -2004-06-13 Marco Pesenti Gritti - - * configure.in: - - Add GNOME_COMMON_INIT - -2004-06-12 Marco Pesenti Gritti - - * embed/ephy-embed-single.c: (ephy_embed_single_open_window): - * embed/ephy-embed-single.h: - * embed/ephy-embed.h: - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/EventContext.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - - Add a way to open new windows passing features and uri. - Something like js window.open. It's necessary for popup - blocker. - -2004-06-12 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb): - - Allow items to be dragged from toolbar editor also when - in items only mode. - - * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_add_separator): - - The type should be the same as tool items. - -2004-06-12 Adam Hooper - - * src/ephy-tab.c: (ephy_tab_class_init): - - Put proper property IDs on properties (PROP_LOAD_STATUS was there - three times). - -2004-06-12 Christian Persch - - * lib/widgets/ephy-spinner.c: (ephy_spinner_new), - (ephy_spinner_init), (ephy_spinner_expose): - - Make spinner not use a visible window, and fix coordinates - accordingly. Patch by Crispin Flowerday, fixes bug #134686. - -2004-06-11 Christian Persch - - * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_finalize): - * src/bookmarks/ephy-bookmarksbar-model.c: - (ephy_bookmarksbar_model_dispose), - (ephy_bookmarksbar_model_finalize), - (ephy_bookmarksbar_model_class_init): - * src/ephy-toolbars-model.c: (ephy_toolbars_model_dispose), - (ephy_toolbars_model_finalize), (ephy_toolbars_model_class_init): - - Save the toolbars models from dispose, not from finalize, since you - cannot emit signals from the latter (the get_item_* signals are - emitted while saving). - -2004-06-11 Marco Pesenti Gritti - - * configure.in: - - Do not put ACLOCAL flags in the Makefile, - it should not be necessary anymore with - recent gnome-common. - -2004-06-10 Christian Persch - - Merging bookmarksbar-separation branch. - -2004-06-09 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (drag_data_get_cb), - (set_item_drag_source): - * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_to_xml), - (impl_get_item_id), (impl_get_item_data), - (egg_toolbars_model_class_init), - (egg_toolbars_model_get_item_data): - * lib/egg/egg-toolbars-model.h: - * src/ephy-toolbars-model.c: (impl_get_item_data), - (impl_get_item_id), (ephy_toolbars_model_class_init): - - s/get_item_name/get_item_data - - Do not assume data isnt changing, use the id - and convert later instead. - -2004-06-09 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (drag_data_get_cb), - (set_item_drag_source), (create_item_from_action), (create_item), - (drag_data_received_cb), (egg_editable_toolbar_set_edit_mode): - * lib/egg/egg-toolbar-editor.c: (model_has_action): - * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_item_nth): - * lib/egg/egg-toolbars-model.h: - * src/ephy-toolbars-model.c: (get_toolbar_and_item_pos), - (ephy_toolbars_model_class_init), (item_added): - - Retain custom types when moving items around - -2004-06-10 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarks-editor.c: - (toolbar_items_changed_cb), (cmd_show_in_bookmarks_bar), - - Block the signal when removing bookmarks from toolbars. - - (ephy_bookmarks_editor_get_property): - * src/bookmarks/ephy-bookmarksbar-model.c: - (ephy_bookmarksbar_model_remove_bookmark): - - Remove all copy of a bookmark from toolbar, not just one - of them. - -2004-06-10 Christian Persch - - * src/bookmarks/ephy-bookmarksbar-model.c: - (ephy_bookmarksbar_model_finalize): - * src/ephy-toolbars-model.c: (ephy_toolbars_model_finalize): - - Save models on exit. - -2004-06-10 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarksbar-model.c: (item_added_cb): - * src/bookmarks/ephy-bookmarksbar.c: (remove_action_from_model), - (bookmark_destroy_cb), (ephy_bookmarksbar_action_request): - - Cleanup the toolbars model when destroying a bookmark - action. Remove the cleanup code from the model. - -2004-06-10 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb), - (egg_editable_toolbar_get_model): - * lib/egg/egg-editable-toolbar.h: - * lib/egg/egg-toolbars-model.h: - - Add a getter for the model. - Add a flag to accept only tool items as source. - - * src/bookmarks/ephy-bookmarksbar.c: - * src/ephy-toolbars-model.c: (update_flags_and_save_changes): - * src/toolbar.c: (toolbar_added_cb), (toolbar_realize), - (toolbar_unrealize), (toolbar_class_init), (toolbar_finalize): - - Fixup dnd targets and use the new flag for main toolbar. - -2004-06-10 Christian Persch - - * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_class_init): - * src/bookmarks/ephy-bookmarks.c: (get_item_type_forward_cb), - (get_item_id_forward_cb), (get_item_data_forward_cb), - (ephy_bookmarks_get_toolbars_model): - * src/ephy-shell.c: (ephy_shell_get_toolbars_model): - * src/ephy-toolbars-model.c: (ephy_toolbars_model_load), - (ephy_toolbars_model_init): - * src/ephy-toolbars-model.h: - - Forward get_item_[type|id|data] from toolbars model to - bookmarksbar model. That way we can have bookmarks/topics also - on the main toolbar. - -2004-06-10 Christian Persch - - * lib/egg/egg-toolbars-model.c: (_egg_accumulator_STRING), - (egg_toolbars_model_class_init), (egg_toolbars_model_get_item_id), - (egg_toolbars_model_get_item_data), - (egg_toolbars_model_get_item_type): - * lib/egg/egg-toolbars-model.h: - * lib/egg/eggmarshalers.c: - (_egg_marshal_BOOLEAN__OBJECT_STRING_STRING), - (_egg_marshal_STRING__POINTER), - (_egg_marshal_STRING__STRING_STRING): - * lib/egg/eggmarshalers.h: - * lib/egg/eggmarshalers.list: - - Make get_item_[type|id|data] signals. - -2004-06-08 Christian Persch - - * lib/egg/egg-editable-toolbar.c: (find_action), (create_item), - (egg_editable_toolbar_construct), (egg_editable_toolbar_realize), - (egg_editable_toolbar_unrealize), (egg_editable_toolbar_set_model), - (egg_editable_toolbar_set_merge), - (egg_editable_toolbar_set_property), - (egg_editable_toolbar_get_property), - (egg_editable_toolbar_class_init), (egg_editable_toolbar_init), - (egg_editable_toolbar_set_edit_mode): - * lib/egg/egg-editable-toolbar.h: - * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_load), - (egg_toolbars_model_init): - - Only construct the toolbar on realize. When setting a different model, - unrealize the toolbar. Connect to model only while realized, fixes - crashes when setting flags on the toolbars model. - - * data/ui/epiphany-bookmarksbar.xml: - * data/ui/epiphany-fs-toolbar.xml: - * data/ui/epiphany-toolbar.xml: - - Separated. Fix root name to be "toolbars" which is the name we - save the model with. - - * src/bookmarks/ephy-bookmarksbar-model.c: - (ephy_bookmarksbar_model_get_type), (get_toolbar_and_item_pos), - (get_toolbar_pos), (ephy_bookmarksbar_model_get_action_name), - (ephy_bookmarksbar_model_get_node), - (ephy_bookmarksbar_model_add_bookmark), - (ephy_bookmarksbar_model_remove_bookmark), - (ephy_bookmarksbar_model_has_bookmark), (save_changes_idle), - (save_changes), (update_flags_and_save_changes), - (bookmark_destroy_cb), (item_added_cb), (impl_add_item), - (impl_get_item_id), (impl_get_item_type), (load_toolbars), - (ephy_bookmarksbar_model_init), (ephy_bookmarksbar_model_finalize), - (ephy_bookmarksbar_model_set_property), - (ephy_bookmarksbar_model_get_property), - (ephy_bookmarksbar_model_class_init), - (ephy_bookmarksbar_model_new): - * src/bookmarks/ephy-bookmarksbar-model.h: - * src/ephy-toolbars-model.c: (save_changes_idle), (save_changes), - (update_flags_and_save_changes), (get_toolbar_pos), - (load_toolbars), (ephy_toolbars_model_init), - (ephy_toolbars_model_finalize), (ephy_toolbars_model_class_init), - (ephy_toolbars_model_new): - * src/ephy-toolbars-model.h: - - Split toolbars model in bookmarks and non-bookmarks parts. - - * src/bookmarks/ephy-bookmarksbar.c: (ephy_bookmarksbar_get_type), - (go_location_cb), (bookmark_destroy_cb), - (ephy_bookmarksbar_action_request), (toolbar_added_cb), - (ephy_bookmarksbar_set_window), (ephy_bookmarksbar_realize), - (ephy_bookmarksbar_unrealize), (ephy_bookmarksbar_init), - (ephy_bookmarksbar_finalize), (ephy_bookmarksbar_set_property), - (ephy_bookmarksbar_get_property), (ephy_bookmarksbar_class_init), - (ephy_bookmarksbar_new): - * src/bookmarks/ephy-bookmarksbar.h: - * src/toolbar.c: (go_location_cb), (toolbar_set_property), - (toolbar_get_property), (toolbar_class_init), (toolbar_set_window), - (toolbar_init), (toolbar_new), (toolbar_set_location), - (toolbar_update_navigation_actions): - * src/toolbar.h: - * src/ephy-window.c: (get_chromes_visibility), - (sync_chromes_visibility), (ephy_window_fullscreen), - (ephy_window_unfullscreen), (action_request_forward_cb), - (ephy_window_init), (ephy_window_get_toolbar), - (ephy_window_get_bookmarksbar): - * src/ephy-window.h: - * src/window-commands.c: (window_cmd_view_fullscreen), - (toolbar_editor_destroy_cb), (toolbar_editor_response_cb), - (window_cmd_edit_toolbar): - - Split toolbars in bookmarks and non-bookmarks toolbars. - - * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init_defaults), - (ephy_bookmarks_get_toolbars_model), (ephy_bookmarks_set_property), - (ephy_bookmarks_get_property), (ephy_bookmarks_class_init), - (ephy_bookmarks_finalize): - * src/bookmarks/ephy-bookmarks.h: - * src/ephy-shell.c: (ephy_shell_get_toolbars_model): - * src/ephy-shell.h: - - Made bookmarksbar toolbars model a service of EphyBookmarks. - - * src/bookmarks/ephy-bookmark-properties.c: - (ephy_bookmark_properties_set_property), - (toolbar_checkbox_changed_cb), (build_ui), - (ephy_bookmark_properties_init): - * src/bookmarks/ephy-bookmarks-editor.c: - (cmd_show_in_bookmarks_bar), (ephy_bookmarks_editor_update_menu), - (toolbar_items_changed_cb), (ephy_bookmarks_editor_init): - - Adapt to changes above. - - * data/ui/Makefile.am: - * src/Makefile.am: - * src/bookmarks/Makefile.am: - - Makefile changes. - -2004-06-09 Christian Persch - - * data/default-prefs.js: - - Disable xpinstall by default. Fixes bug #144035. - -2004-06-09 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (drag_data_get_cb), - (set_item_drag_source): - * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_to_xml), - (impl_get_item_id), (impl_get_item_data), - (egg_toolbars_model_class_init), - (egg_toolbars_model_get_item_data): - * lib/egg/egg-toolbars-model.h: - * src/ephy-toolbars-model.c: (impl_get_item_data), - (impl_get_item_id), (ephy_toolbars_model_class_init): - - s/get_item_name/get_item_data - - Do not assume data isnt changing, use the id - and convert later instead. - -2004-06-09 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (drag_data_get_cb), - (set_item_drag_source), (create_item_from_action), (create_item), - (drag_data_received_cb), (egg_editable_toolbar_set_edit_mode): - * lib/egg/egg-toolbar-editor.c: (model_has_action): - * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_item_nth): - * lib/egg/egg-toolbars-model.h: - * src/ephy-toolbars-model.c: (get_toolbar_and_item_pos), - (ephy_toolbars_model_class_init), (item_added): - - Retain custom types when moving items around - -2004-06-08 Christian Persch - - * embed/mozilla/EventContext.cpp: - - Fix CSS background detection, based on a galeon patch by - Crispin Flowerday. Fixed bug #143602. - -2004-06-08 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - - Adjust comment about mozilla bug #232057, which was - WONTFIXed. - -2004-06-08 Marco Pesenti Gritti - - * src/ephy-window.c: (show_embed_popup): - - Do not hide clipboard items for the input context - (Bug #139040) - -2004-06-08 Marco Pesenti Gritti - - * data/default-prefs.js: - * embed/mozilla/mozilla-embed-single.cpp: - - Move external protocols prefs defaults in - the javascript file and add webcal (Bug #143899) - -2004-06-07 Christian Persch - - * embed/mozilla/FilePicker.cpp: - - Fix setting default filename in the !modeSave case. - -2004-06-07 Christian Persch - - * embed/mozilla/FilePicker.cpp: - - Don't allow ::SetDefaultString unless we're in modeSave. - -2004-06-07 Ross Burton - - * src/ephy-shell.c: - - Load extensions from ~/.gnome2/epiphany/extensions as well. - -2004-06-07 Christian Persch - - * embed/mozilla/FilePicker: - - Use ephy-file-chooser convenience constructor instead of duplicating - code here. - -2004-06-06 Christian Persch - - * embed/mozilla/GtkNSSKeyPairDialogs.cpp: - * embed/mozilla/mozilla-version.h: - - Simplified mozilla version checks with new MOZILLA_IS_VERSION4 macro. - -2004-06-05 Christian Persch - - * configure.in: - - Add help/es/Makefile to AC_OUTPUT. - -2004-06-05 Francisco Javier F. Serrador - - * help/es: Added Spanish help pages and related stuff - -2004-06-03 Marco Pesenti Gritti - - * configure.in: - * embed/ephy-embed.c: (ephy_embed_base_init), - (ephy_embed_set_zoom): - * embed/ephy-embed.h: - * 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/EphyHeaderSniffer.h: - * embed/mozilla/EphySingle.cpp: - * embed/mozilla/EphyUtils.cpp: - * embed/mozilla/EphyUtils.h: - * embed/mozilla/EventContext.cpp: - * embed/mozilla/EventContext.h: - * embed/mozilla/FilePicker.cpp: - * embed/mozilla/GlobalHistory.cpp: - * embed/mozilla/GlobalHistory.h: - * embed/mozilla/GtkNSSClientAuthDialogs.cpp: - * embed/mozilla/GtkNSSDialogs.cpp: - * embed/mozilla/GtkNSSKeyPairDialogs.cpp: - * embed/mozilla/Makefile.am: - * embed/mozilla/MozDownload.cpp: - * embed/mozilla/MozDownload.h: - * embed/mozilla/MozRegisterComponents.cpp: - * embed/mozilla/MozillaPrivate.cpp: - * embed/mozilla/mozilla-download.cpp: - * embed/mozilla/mozilla-embed-persist.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - * embed/mozilla/mozilla-embed.cpp: - * embed/mozilla/mozilla-version.h: - * src/ephy-tab.c: (ephy_tab_address_cb), - (ephy_tab_content_change_cb), (ephy_tab_init): - * src/ephy-window.c: (ephy_window_set_zoom): - - Merge mozilla-embed-strings branch - -2004-06-02 Christian Persch - - * src/ephy-window.c: (update_exit_fullscreen_popup_position): - - Move the "Exit Fullscreen" popup to the right in RTL locale. - Fixes bug #140828. - -2004-06-01 Adam Hooper - - * lib/egg/egg-editable-toolbar.c: - * lib/egg/egg-toolbar-editor.c: (compare_actions), - (editor_drag_data_received_cb), (editor_drag_data_delete_cb), - (egg_toolbar_editor_add_action), (update_actions_list): Update from - libegg - -2004-05-31 Christian Persch - - * configure.in: - - Post-release version bump. - -2004-05-31 Christian Persch - - * configure.in: - * doc/reference/tmpl/ephy-command-manager.sgml: - * doc/reference/tmpl/ephy-embed-persist.sgml: - * doc/reference/tmpl/ephy-embed.sgml: - * doc/reference/tmpl/ephy-glade.sgml: - * doc/reference/tmpl/ephy-node-db.sgml: - * doc/reference/tmpl/ephy-tab.sgml: - * doc/reference/tmpl/ephy-window.sgml: - * doc/reference/tmpl/epiphany-unused.sgml: - - === Release 1.3.0 === - -2004-05-29 Christian Persch - - * src/window-commands.c: (window_cmd_view_reload): - - Fix reload logic not to use forced reload by default. - Patch by C. J. N. Breame, fixes bug #143365 - -2004-05-29 Christian Persch - - * lib/ephy-debug.h: - - Revert varargs change, it doesn't work for LOG("Message") without - arguments. - -2004-05-29 Christian Persch - - * lib/ephy-debug.h: - - Use ISO style variable argument macros. Patch by Brian Cameron, - part of bug #141319. - -2004-05-29 Christian Persch - - * configure.in: - - Add check for 'mkdtemp', since solaris doesn't have it. - - * lib/ephy-file-helpers.c: (ephy_file_tmp_dir): - - Error out if we don't have mkdtemp. - Part of bug #141319. - -2004-05-29 Christian Persch - - * lib/ephy-dialog.c: (ephy_dialog_construct): - - Don't return a value in void function, part of bug #141319. - -2004-05-29 Christian Persch - - * embed/ephy-embed.c: (ephy_embed_print_preview_navigate): - - Don't return a value in void function, part of bug #141319. - -2004-05-29 Christian Persch - - * configure.in: - - Depend on glib >= 2.4.1 because of the fix for bug #112222. - -2004-05-29 Christian Persch - - * embed/mozilla/GtkNSSKeyPairDialogs.cpp: - - Fix for mozilla API change (ported from galeon). - -2004-05-29 Christian Persch - - * configure.in: - - Increase mozilla snapshot level for 1.8a2/trunk. - -2004-05-29 Christian Persch - - * NEWS: - - Update for 1.3.0. - -2004-05-29 Christian Rose - - * configure.in: Added "tk" to ALL_LINGUAS. - -2004-05-28 Christian Persch - - * embed/mozilla/MozDownload.h: - - Include "config.h". - -2004-05-28 Christian Persch - - * embed/mozilla/ContentHandler.h: - - Always include "config.h" ! - -2004-05-28 Christian Persch - - * embed/mozilla/ContentHandler.h: - - Fix snapshot check for mozilla >= 1.7rc2 . - -2004-05-24 Xan Lopez - - * embed/downloader-view.c: (update_status_icon): - - Remove unused field in struct - - * embed/mozilla/GtkNSSClientAuthDialogs.cpp: - * embed/mozilla/GtkNSSDialogs.cpp: - - Fix build with 1.8a2 - -2004-05-23 Paisa Seeluangsawat - - * configure.in: Added "th" (Thai) to ALL_LINGUAS. - -2004-05-23 Marco Pesenti Gritti - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/MozillaPrivate.cpp: - - Fix some headers fallouts with mozilla head - -2004-05-22 Christian Persch - - * embed/mozilla/ContentHandler.h: - - Fix compilation with moz 1.6. - -2004-05-22 Crispin Flowerday - - * libegg/toolbareditor/egg-toolbar-editor.c - (event_box_realize_cb), (editor_create_item): - - Set the drag icon on - realize, otherwise the current icon theme isn't used, and it falls - back to the default theme. - -2004-05-22 Christian Persch - - * configure.in: - - Recognise mozilla 1.8a1 and 1.8a2. - -2004-05-21 Christian Persch - - * src/ephy-statusbar.c: (ephy_statusbar_set_progress): - * src/ephy-tab.c: (ephy_tab_class_init), (build_load_percent), - (ephy_tab_net_state_cb), (ephy_tab_get_load_percent): - - Elimiate indeterminate progress, fixes bugs #142303 and #142305. - -2004-05-20 Christian Persch - - * embed/ephy-history.c: (ephy_history_set_property), - (ephy_history_get_property): - - Fix stupid bug. - -2004-05-19 Christian Persch - - * src/ephy-notebook.c: (ephy_notebook_remove_tab): - * src/ephy-window.c: (tab_removed_cb): - - Emit the "tab_removed" signal also for the window's last tab. - Part of bug #142078. - -2004-05-19 Christian Persch - - * src/bookmarks/ephy-bookmark-action.c: (activate_cb), - (button_press_cb), (button_release_cb), (connect_proxy), - (ephy_bookmark_action_class_init): - * src/toolbar.c: (go_location_cb): - - Open bookmark in new tab on middle-click. Fixes bug #106250. - -2004-05-19 Christian Persch - - * lib/widgets/ephy-cell-renderer-progress.c: - (ephy_cell_renderer_progress_init), (compute_dimensions), - (ephy_cell_renderer_progress_get_size), - (ephy_cell_renderer_progress_render): - - Backported fixes from gtk+ cvs head. - -2004-05-19 Christian Persch - - * embed/mozilla/MozDownload.cpp: - - Fix a MOZILLA_SNAPSHOT check for 1.7 branch. - -2004-05-19 Christian Persch - - * configure.in: - - Generate Makefile in help/es too. - -2004-05-19 Christian Persch - - * embed/print-dialog.c: (ephy_print_dialog_browse_button_cb): - * src/bookmarks/ephy-bookmarks-editor.c: - (import_dialog_response_cb): - - Fix capitalisation. - -2004-05-17 Christian Persch - - * embed/mozilla/EphySingle.cpp: - - Fix observer topic check for cookie "cleared" notification. - -2004-05-15 Christian Persch - - * lib/ephy-dialog.c: (set_value_from_editable), - (set_value_from_radiobuttongroup), (set_value_from_spin_button), - (set_value_from_togglebutton), (set_combo_box_from_value): - - Fix mem leak. - -2004-05-15 Christian Persch - - * lib/egg/egg-toolbar-editor.c: (egg_toolbar_editor_finalize): - - Fix mem leaks. - -2004-05-15 Christian Persch - - * embed/mozilla/mozilla-embed-persist.cpp: - - Fix refcount leak. - -2004-05-15 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - - Set mEventReceiver to nsnull in ::Destroy(), fixes a crasher. - -2004-05-14 Christian Persch - - * embed/mozilla/EphyContentPolicy.cpp: - - Yet another mozilla API change. - -2004-05-13 Christian Persch - - * src/ephy-window.c: - - Forgot to change action entries for last commit. - -2004-05-13 Christian Persch - - * data/ui/epiphany-ui.xml: - * src/popup-commands.c: - * src/popup-commands.h: - - Simplify context menu wrt. frames. Fixes bug #138442. - -2004-05-12 Christian Persch - - * src/epiphany.in: - - Make sure we don't add a colon at the end of LD_LIBRARY_PATH, - which will make LD_LIBRARY_PATH include the current directory. - Should fix bug #141576. - -2004-05-12 Christian Persch - - * lib/widgets/ephy-cell-renderer-progress.c: - (ephy_cell_renderer_progress_class_init), - (ephy_cell_renderer_progress_init), - (ephy_cell_renderer_progress_new), - (ephy_cell_renderer_progress_finalize), - (ephy_cell_renderer_progress_get_property), - (ephy_cell_renderer_progress_set_property), - (ephy_cell_renderer_progress_set_value), - (ephy_cell_renderer_progress_set_text), (compute_dimensions), - (ephy_cell_renderer_progress_get_size), - (ephy_cell_renderer_progress_render): - * lib/widgets/ephy-cell-renderer-progress.h: - - Backport changed from the new gtkcellrendererprogress which - was based on ephy's, to support RTL. - -2004-05-11 Christian Persch - - * lib/ephy-dialog.c: (set_combo_box_from_value): - - Fix compilation with gcc 2.95. - -2004-05-11 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - - One more NS_ENSURE_TRUE. - -2004-05-11 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - - Changed back to NS_ENSURE_TRUE as per discussion in bug #142184. - -2004-05-11 Christian Persch - - * embed/mozilla/mozilla-notifiers.cpp: - - Remove unused variable. - -2004-05-11 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/mozilla-embed.cpp: - - Destroy the EphyBrowser in destroy handler, but delete it only on - finalize. Make public EphyBrowser methods safe for calling after - Destroy. Part of bug #142184. - -2004-05-10 Christian Persch - - * src/ephy-statusbar.c: (create_statusbar_security_icon), - (create_statusbar_progress), (sync_shadow_type), - (ephy_statusbar_init), (ephy_statusbar_set_progress), - (ephy_statusbar_add_widget): - * src/ephy-tab.c: (ephy_tab_net_state_cb): - - Statusbar re-design: Move lock icon to left; hide progress bar - when no activity. Part of bug #137845. - -2004-05-09 Christian Persch - - * src/ephy-window.c: - - Fix accelerator for OpenImage action. - -2004-05-08 Christian Persch - - * src/ephy-automation.c: (impl_ephy_automation_loadurl): - - Jump to new tabs created from command lines; fixes bug #141168. - -2004-05-08 Christian Persch - * lib/ephy-file-chooser.c: (ephy_file_chooser_add_pattern_filter), - (ephy_file_chooser_add_mime_filter), (ephy_file_chooser_new): - * lib/ephy-file-chooser.h: - - Add convenience functions for creating a filter with a bunch of mime - types or patterns and add it to a file chooser. Those should really - be in gtk+; see bug #142142. - - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/FilePicker.cpp: - * embed/print-dialog.c: (ephy_print_dialog_browse_button_cb): - * src/bookmarks/ephy-bookmarks-editor.c: - (import_dialog_response_cb): - * src/prefs-dialog.c: (prefs_download_path_button_clicked_cb): - * src/window-commands.c: (window_cmd_file_open): - - Add some filters to the file chooser dialogues. Fixes bug #139418. - -2004-05-08 Christian Persch - - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/EphyHeaderSniffer.h: - - Forward nsIAuthPrompt interface to the single sign-on prompt - implementation. - -2004-05-07 Christian Persch - - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/FilePicker.cpp: - - Adjust MOZILLA_SNAPSHOT checks for changed snapshot levels. - -2004-05-07 Christian Persch - - * configure.in: - - Increase snapshot level for mozilla >= 1.7rc2 and 1.8a/trunk. - -2004-05-06 Christian Persch - - * configure.in: - - Check for nsIPassword.h - - * embed/mozilla/mozilla-embed-single.cpp: - - Allow compilation without nsIPassword (mozilla wallet extension). - -2004-05-06 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - - Adapt to mozilla API change. - -2004-05-06 Christian Persch - - * configure.in: - - Recognise 1.7rc* too. - -2004-05-03 Christian Persch - - * embed/mozilla/mozilla-embed-persist.cpp: - - Whenever we have one, pass the cache key to the persist object. - That way we don't re-fetch the page on save. Fixes bug #141652. - -2004-05-03 Christian Persch - - * embed/mozilla/mozilla-embed-persist.cpp: - - Fix a mem leak; thanks to Crispin for spotting it. - -2004-05-03 Patanjali Somayaji - - * lib/ephy-gui.c: (ephy_gui_confirm_overwrite_file): - - title added back to dialog - see notes on bug #133152 - -2004-05-03 Patanjali Somayaji - - * lib/ephy-gui.c: (ephy_gui_confirm_overwrite_file): - - More HIGifying of the overwrite confirmation dialog - - - title removed from dialog - - dialog removed from window list - -2004-05-02 Piers Cornwell - - * lib/ephy-gui.c: (ephy_gui_confirm_overwrite_file): - - Make Escape cancel overwrite dialog. - -2004-05-01 Christian Persch - - * embed/ephy-embed.c: (ephy_embed_get_encoding), - (ephy_embed_has_automatic_encoding): - * embed/ephy-embed.h: - * embed/ephy-encodings.c: - * embed/ephy-encodings.h: - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/MozRegisterComponents.cpp: - * embed/mozilla/mozilla-embed.cpp: - * src/ephy-encoding-dialog.c: (sync_embed_cb), (activate_choice): - * src/ephy-encoding-menu.c: (update_encoding_menu_cb), - (encoding_activate_cb): - - Clean up encoding handling. - -2004-05-01 Piers Cornwell - - * help/C/epiphany.xml: - - Minor updates to match UI. - -2004-05-01 Christian Persch - - * src/ephy-statusbar.c: (ephy_statusbar_init), - (ephy_statusbar_finalize), (ephy_statusbar_set_security_state): - * src/ephy-statusbar.h: - - Make the statusbar's GtkTooltips publicly accessibly. - -2004-04-30 Piers Cornwell - - * lib/ephy-gui.c: (ephy_gui_confirm_overwrite_file): - - More HIG love for overwrite confirmation. Partial fix for bug #133152. - -2004-04-29 Marco Pesenti Gritti - - * embed/mozilla/EventContext.cpp: - * embed/mozilla/EventContext.h: - * embed/mozilla/MozillaPrivate.cpp: - * embed/mozilla/MozillaPrivate.h: - * embed/mozilla/mozilla-embed.cpp: - - Complete headers defines - -2004-04-29 Patanjali Somayaji - - * lib/ephy-gui.c - - changes in ephy_gui_confirm_overwrite_file () - - HIGified dialog created with "Cancel" and "Overwrite" - buttons. - - Fix for bug #133152 - -2004-04-29 Marco Pesenti Gritti - - * 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. - -2004-04-29 Marco Pesenti Gritti - - * configure.in: - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/Makefile.am: - - Add defines for private mozilla api usage. It will - make easier to track what we need to port to embed - string and what we need to be using only public api - (on the long time). - -2004-04-28 Piers Cornwell - - * help/C/epiphany.xml: - * help/C/figures/ephy-addressbar-smartbookmark-screenshot.png: - * help/C/figures/ephy-bookmarkbar-smartbookmark-screenshot.png: - - Updated Smart Bookmarks help content. Patch by - poobar@nycap.rr.com. Fixes bug #139616. - -2004-04-28 Piers Cornwell - - * help/C/figures/ephy-screenshot.png: - * help/C/figures/ephy-history-window-screenshot.png: - - Update screenshots. - -2004-04-28 Marco Pesenti Gritti - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/mozilla-embed.cpp: - - Ensure we have a DOM window before trying to - get his url. The check was not working anymore - because of initialization changes. - -2004-04-28 Sebastian Heinlein - - * help/C/epiphany.xml: - - Correct listitems to contain para tags. Fixes bug #140918. - -2004-04-27 Marco Pesenti Gritti - - * 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. - -2004-04-27 Christian Persch - - * src/ephy-window.c: (ephy_window_delete_event_cb): - - Exit print preview mode before closing a window. Fixes a crasher; - Epiphany equivalent of galeon bug #121298. - -2004-04-26 Marco Pesenti Gritti - - * embed/mozilla/MozDownload.cpp: - - Fix encoding of saved content; fixes bug #141050. - -2004-04-23 Christian Persch - - * data/epiphany-1.4.pc.in: - - Fix dependency libs not to include libbonoboui. - -2004-04-22 Pablo Saratxaga - - * help/eu/*: added Basque help files from - Hizkuntza Politikarako Sailburuordetza - -2004-04-22 Christian Persch - - * HACKING: - - Document UTF-8 requirement. - - * lib/widgets/ephy-cell-renderer-progress.c: - * lib/widgets/ephy-cell-renderer-progress.h: - * src/bookmarks/ephy-bookmarks-menu.h: - * ChangeLog: - - Converted to UTF-8. - -2004-04-20 Adam Hooper - - * doc/reference/tmpl/ephy-glade.sgml: - - History repeats itself. Added the missing documentation file. - -2004-04-19 Adam Hooper - - * doc/reference/Makefile.am: - * doc/reference/epiphany-docs.sgml: - * doc/reference/epiphany-sections.txt: - * doc/reference/tmpl/ephy-embed.sgml: - * lib/ephy-glade.c: (ephy_glade_widget_new): - - Documented EphyGlade... which is just a single function. - -2004-04-18 Christian Persch - - * configure.in: - * lib/ephy-dialog.c: (set_value_from_editable), - (set_value_from_combobox), (set_value_from_radiobuttongroup), - (set_value_from_spin_button), (set_value_from_togglebutton), - (set_value_from_info), (set_combo_box_from_value), - (set_pref_from_info_and_emit), (save_info), - (ephy_dialog_get_value): - * lib/ephy-dialog.h: - * src/prefs-dialog.c: (setup_font_combo): - - Fix font selection combo box issues; fixes bug #138560. - -2004-04-18 Christian Persch - - * configure.in: - - Remove libbonoboui checks, we don't depend on it anymore. - -2004-04-18 Marco Pesenti Gritti - - * embed/ephy-embed.c: (ephy_embed_chrome_get_type): - * embed/ephy-embed.h: - * embed/mozilla/mozilla-embed.cpp: - * src/ephy-window.c: (ephy_window_set_chrome), - (ephy_window_set_property), (ephy_window_class_init): - - Fix chrome for new windows opened from _blank target. - Fixes bug #139512. - -2004-04-17 Marco Pesenti Gritti - - * embed/mozilla/MozDownload.cpp: - - Do not uncompress when the type is not html. Fixes bug #131778. - -2004-04-17 Marco Pesenti Gritti - - * lib/egg/Makefile.am: - * lib/egg/egg-editable-toolbar.c: (set_drag_cursor): - * lib/egg/egg-toolbar-editor.c: (set_drag_cursor): - * lib/egg/eggstatusicon.c: (egg_status_icon_init), - (egg_status_icon_button_press), (egg_status_icon_button_release): - - Resync with egg - -2004-04-16 Christian Persch - - * 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. - -2004-04-14 Christian Persch - - * lib/ephy-file-chooser.c: (ephy_file_chooser_constructor), - (ephy_file_chooser_class_init): - - Add "Downloads" folder shortcut to our file chooser dialogues. - -2004-04-14 Christian Persch - - * src/ephy-tab.c: (ephy_tab_new_window_cb), - (ephy_tab_visibility_cb), (ephy_tab_destroy_brsr_cb): - - Add debug output. - -2004-04-13 Christian Persch - - * src/bookmarks/ephy-bookmarks-menu.c: (add_bookmarks_menu), - (ephy_bookmarks_menu_rebuild): - * src/ephy-encoding-menu.c: (add_action): - * src/ephy-favorites-menu.c: (ephy_favorites_menu_rebuild): - * src/ephy-tabs-menu.c: (tab_added_cb): - - Set the action's accel_path, fixes bug #139641 for ephy. - -2004-04-09 Christian Persch - - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/FilePicker.cpp: - - Don't quit the filechooser when selecting "No" from the confirm- - overwrite dialoge. Fixes bug #139400. - - * lib/ephy-gui.c: (ephy_gui_confirm_overwrite_file): - - Convert the filename to UTF-8 before showing it in the confirm - dialogue. - -2004-04-09 Piers Cornwell - - * src/ephy-window.c: - * data/ui/epiphany-ui.xml: - - Add Ctrl+S as an alternate accel for Save As. - Fixes bug #139415. - -2004-04-09 Christian Persch - - * src/ephy-location-action.c: (compare_actions), - (init_actions_list): - - Sort the actions in the location entry autocompletion dropdown. - Fixes bug #139575. - -2004-04-09 Adam Hooper - - * embed/ephy-encodings.c: (ephy_encodings_init): - * embed/ephy-favicon-cache.c: (ephy_favicon_cache_init): - * embed/ephy-history.c: (ephy_history_init): - * lib/ephy-node.c: (ephy_node_new_with_id): - * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init): - - Make ephy-node refcount initialize to 1 and not 0. - -2004-04-09 Guntupalli Karunakar - - * configure.in: Added "gu" (Gujarati) to ALL_LINGUAS. - -2004-04-08 Piers Cornwell - - * embed/mozilla/ContentHandler.cpp: - - Make warning message selectable. - -2004-04-07 Adam Hooper - - * doc/reference/tmpl/ephy-node-db.sgml: - - remembered to commit this file with my EphyNodeDb documentation. - -2004-04-07 Christian Biesinger - - * embed/mozilla/ExternalProtocolHandlers.cpp: - * embed/mozilla/ExternalProtocolHandlers.h: - * embed/mozilla/FilePicker.cpp: - * embed/mozilla/Makefile.am: - * embed/mozilla/MozRegisterComponents.cpp: - * embed/mozilla/MozRegisterComponents.h: - * embed/mozilla/mozilla-embed-single.cpp: - - Eliminate ExternalProtocolHandlers in favor of setting prefs to make Mozilla - not handle the protocols internally. - -2004-04-07 Christian Persch - - * lib/eel-gconf-extensions.c: (eel_gconf_handle_error): - - Remove unused variable. - -2004-04-07 Christian Persch - - * lib/eel-gconf-extensions.c: (eel_gconf_handle_error): - - Don't abort on errors, just display a message on console. Fixes bug #139247. - -2004-04-06 Piers Cornwell - - * doc/plan/plan.xml - - Add some bugzilla references. - -2004-04-05 Christian Persch - - * src/ephy-session.c: (window_focus_in_event_cb), - (impl_attach_window), (ephy_session_set_property), - (ephy_session_get_property), (ephy_session_class_init): - - Track the active window. - -2004-04-05 Christian Persch - - * data/glade/epiphany.glade: - * data/glade/print.glade: - - Make pdm and print setup dialogues destroy with parent, too. - -2004-04-05 Christian Persch - - * data/glade/prefs-dialog.glade: - * lib/ephy-dialog.c: (ephy_dialog_get_parent): - * lib/ephy-dialog.h: - * src/prefs-dialog.c: (prefs_homepage_current_button_clicked_cb): - * src/window-commands.c: (window_cmd_file_print_setup), - (window_cmd_edit_personal_data), (window_cmd_edit_prefs): - - Make prefs, pdm and print setup dialogues transient to their parent. - Fixes bug #139124. - -2004-04-04 Adam Hooper - - * HACKING: - - Suggest /* to open comments instead of /** (rationale: gtk-doc) - - * src/ephy-tab.c: (ephy_tab_set_title): - - Change /** to /* - - * doc/reference/Makefile.am: - * doc/reference/epiphany-docs.sgml: - * doc/reference/epiphany-sections.txt: - * lib/ephy-node-db.c: (node_from_id_real), - (ephy_node_db_get_node_from_id), (_ephy_node_db_new_id), - (_ephy_node_db_add_id), (_ephy_node_db_remove_id): - * lib/ephy-node-db.h: - - Documented EphyNodeDb. Changed the ids to guints to conform with - GPtrArray. - - * doc/reference/tmpl/ephy-tab.sgml: - - Say how to get an EphyWindow from an EphyEmbed - - * doc/reference/tmpl/ephy-embed-persist.sgml: - * doc/reference/tmpl/ephy-embed.sgml: - - Automatically changed when I rebuilt docs - -2004-04-03 Crispin Flowerday - - * lib/egg/egg-editable-toolbar.c: (set_fixed_style), - (unset_fixed_style), (toolbar_changed_cb), (unparent_fixed), - (update_fixed), (toolbars_clean), (egg_editable_toolbar_construct), - (egg_editable_toolbar_set_model): - * lib/egg/egg-toolbar-editor.c: (egg_toolbar_editor_load_actions): - * lib/egg/egg-toolbars-model.h: - - Synchronise changes from galeon, this fixes simple usage, stops - crashes when dragging items to and from other applications, and - adds the ability to override the toolbar style. - -2004-04-03 Christian Persch - - * src/ephy-notebook.c: (notebook_drag_data_received_cb): - - Remove stray semicolon. Fixes bug #138902. - -2004-04-02 Iñaki Larrañaga - - * configure.in: - - Added "eu" (Basque) to ALL_LINGUAS. - -2004-04-01 Christian Persch - - * embed/ephy-embed.c: (ephy_embed_chrome_get_type): - * embed/ephy-embed.h: - * embed/mozilla/mozilla-embed.cpp: - * src/ephy-window.c: (get_chromes_visibility), - (sync_chromes_visibility), (update_chromes_actions), - (get_default_chrome), (ephy_window_init), (sync_prefs_with_chrome), - (ephy_window_view_bookmarksbar_cb): - - Fix bookmarks toolbar visibility in fullscreen and print preview mode, as - well as for javascript popups. Fixes bug #138520. - -2004-03-31 Christian Persch - - * configure.in: - - Fix --with-mozilla-snapshot help string; we don't support 1.4 and 1.5 - any more. - -2004-03-30 Piers Cornwell - - * src/ephy-history-window.c: (confirmation_dialog_construct): - - Make buttons the same size in Industrial theme and make text - selectable. - -2004-03-30 Piers Cornwell - - * data/glade/prefs-dialog.glade: - - Use right capitalisation for label. - -2004-03-30 Piers Cornwell - - * data/glade/prefs-dialog.glade: - * embed/mozilla/mozilla-notifiers.cpp: (mozilla_font_size_notifier): - - Don't allow a font size less than 1. - -2004-03-30 Christian Persch - - * data/ui/epiphany-ui.xml: - - Get rid of the separators in the Image and Image/Link popups. - Fixes bug #115897. - -2004-03-30 Adam Hooper - - * doc/reference/epiphany-docs.sgml: - * doc/reference/epiphany-sections.txt: - * doc/reference/tmpl/ephy-embed-factory.sgml: - * embed/ephy-embed-factory.c: - - Documented EphyEmbedFactory. My, that was challenging. Not. - -2004-03-29 Christian Persch - - * embed/mozilla/GtkNSSClientAuthDialogs.cpp: - - Get rid of #if GTK_CHECK_VERSION() stuff and remove optionmenu code. - -2004-03-29 Christian Persch - - * src/ephy-window.c: - * src/popup-commands.c: - * src/popup-commands.h: - * data/ui/epiphany-ui.xml: - - Remove Open Image in New Tab and New Window from the - context menu. - -2004-03-29 Christian Persch - - * configure.in: - * data/.cvsignore: - * data/GNOME_Epiphany_NautilusView.server.in: - * data/Makefile.am: - * data/ui/.cvsignore: - * data/ui/Makefile.am: - * data/ui/nautilus-epiphany-view.xml: - * doc/reference/Makefile.am: - * embed/Makefile.am: - * embed/ephy-embed-popup-control.c: - * embed/ephy-embed-popup-control.h: - * lib/Makefile.am: - * lib/ephy-bonobo-extensions.c: - * lib/ephy-bonobo-extensions.h: - * po/POTFILES.in: - * src/Makefile.am: - * src/ephy-nautilus-view.c: - * src/ephy-nautilus-view.h: - * src/ephy-shell.c: (ephy_automation_factory_cb): - - Removed the nautilus view. - -2004-03-29 Christian Persch - - * src/ephy-completion-model.h: - - Make EphyCompletionColumn a typedef enum, fixes bug #136878. - -2004-03-29 Adam Hooper - - * doc/reference/Makefile.am: - * doc/reference/epiphany-docs.sgml: - * doc/reference/epiphany-sections.txt: - * embed/ephy-command-manager.c: (ephy_command_manager_base_init): - * embed/ephy-command-manager.h: - - Document EphyCommandManager. - -2004-03-29 Federico Mena Quintero - - Fixes #138263. - - * lib/ephy-file-chooser.h: Remove EPHY_RESPONSE_OPEN and - EPHY_RESPONSE_SAVE; we'll use GTK_RESPONSE_ACCEPT instead. - - * lib/ephy-file-chooser.c (ephy_file_chooser_new): Use - GTK_RESPONSE_ACCEPT rather than EPHY_RESPONSE_*. - - * embed/print-dialog.c (print_filechooser_response_cb): Likewise. - - * src/bookmarks/ephy-bookmarks-editor.c - (import_from_file_response_cb): Likewise. - - * src/prefs-dialog.c (download_path_response_cb): Likewise. - - * src/window-commands.c (open_response_cb): Likewise. - - * embed/mozilla/ContentHandler.cpp (PromptForSaveToFile): - Likewise. - - * embed/mozilla/EphyHeaderSniffer.cpp (filechooser_response_cb): - Likewise. - - * embed/mozilla/FilePicker.cpp (Init): Likewise. - (Show): Likewise. - -2004-03-29 Christian Persch - - * src/epiphany.in: - - Test with -d, fixes bug #138088. - -2004-03-29 Christian Persch - - * data/ui/epiphany-ui.xml: - - Add "Save Link As..." to Image/Link popup. Fixes bug #138207. - -2004-03-29 Christian Persch - - * embed/mozilla/EventContext.cpp: - - Don't assume every anchor has a href attribute. Fixes bug #138200. - -2004-03-29 Christian Persch - - * src/bookmarks/ephy-bookmarks-editor.c: - (cmd_open_bookmarks_in_tabs): - - Fix opening in new tabs when there is no existing window. - Fixes bug #138343. - -2004-03-28 Xan Lopez - - * embed/mozilla/MozRegisterComponents.cpp: - - Tiny cleanup. - -2004-03-27 Adam Hooper - - * doc/reference/Makefile.am: - * doc/reference/epiphany-docs.sgml: - * doc/reference/epiphany-sections.txt: - * doc/reference/epiphany.types: - * doc/reference/tmpl/ephy-embed-persist.sgml: - * embed/ephy-embed-persist.c: (ephy_embed_persist_get_type), - (ephy_embed_persist_class_init): - * embed/ephy-embed-persist.h: - - Document EphyEmbedPersist. Also, make it an abstract class. Change - the return type of ephy_embed_persist_get_type() to long. - -2004-03-27 Piers Cornwell - - * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_import): - - Use verb for action button and various minor tidy ups. - -2004-03-27 Christian Persch - - * src/ephy-window.c: (show_embed_popup): - - Log context of event in debug mode. - -2004-03-27 Christian Persch - - * src/ephy-location-action.c: (location_url_activate_cb), - (disconnect_proxy), (ephy_location_action_set_address): - - Correctly disconnect the handler not from the proxy but from the entry - itself. Rationalise away one strdup. - -2004-03-27 Christian Persch - - * lib/ephy-stock-icons.c: (ephy_stock_icons_init): - - Register our stock icons. - - * embed/mozilla/ContentHandler.cpp: - - Use stock icon for "Download". - -2004-03-26 Adam Hooper - - * doc/reference/epiphany-docs.sgml: - * doc/reference/epiphany-sections.txt: - * doc/reference/tmpl/ephy-embed-single.sgml: - * doc/reference/tmpl/epiphany-unused.sgml: - * embed/ephy-embed-single.c: (ephy_embed_single_iface_init), - (ephy_embed_single_load_proxy_autoconf), - (ephy_embed_single_get_font_list): - * embed/ephy-embed-single.h: - - Documented EphyEmbedSingle. Made argument names consistent across the - c and header files. - - * embed/ephy-embed.c: - - Fix gtk-doc warnings - - * doc/reference/tmpl/ephy-tab.sgml: - - All the properties showed up when chpe fixed gtk-doc-ness. - -2004-03-26 Piers Cornwell - - * src/ephy-window.c: (confirm_close_with_modified_forms): - - Fix duplicate accesskey, use correct case for button - text and make message selectable. - -2004-03-26 Marco Pesenti Gritti - - * embed/mozilla/Makefile.am: - - Add base dir to mozilla includes since the - embed SDK dir structure has been flattened in cvs - -2004-03-25 Christian Persch - - * embed/mozilla/ContentHandler.cpp: (MIMEConfirmAction): - - Use stock icon for open. Fixes bug #135765. - -2004-03-25 Christian Persch - - * embed/ephy-embed.c: (ephy_embed_base_init): - - Fix arg type of dom_* signals to match the closure. - -2004-03-25 Christian Persch - - * doc/reference/epiphany.types: - - Add ephy_tab_get_type(), fixes EphyTab documentation to include - object properties. - -2004-03-25 Adam Hooper - - * embed/ephy-embed.c: - - Fixed three gtk-doc comments. - -2004-03-25 Adam Hooper - - * doc/reference/Makefile.am: - * doc/reference/epiphany-docs.sgml: - * doc/reference/epiphany-sections.txt: - * doc/reference/epiphany.types: - * doc/reference/tmpl/ephy-embed.sgml - * doc/reference/tmpl/ephy-tab.sgml: - * doc/reference/tmpl/epiphany-unused.sgml: - * embed/ephy-embed.c: (ephy_embed_base_init), - (ephy_embed_set_zoom), (ephy_embed_get_zoom), - (ephy_embed_find_set_properties): - * embed/ephy-embed.h: - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/mozilla-embed.cpp: - * src/ephy-nautilus-view.c: (gnv_zoomable_set_zoom_level_cb), - (gnv_zoomable_zoom_in_cb), (gnv_zoomable_zoom_out_cb), - (gnv_zoomable_zoom_to_default_cb): - * src/ephy-tab.c: (ephy_tab_address_cb), - (ephy_tab_zoom_changed_cb): - * src/ephy-window.c: (ephy_window_set_zoom): - - Documented EphyEmbed. - - s/zoom_[sg]et/[sg]et_zoom/g. - - Removed the ge_popup_blocked signal, which can be done entirely from - an extension now. - - s/match_word/wrap_around/ and s/char */const char */ in - ephy_embed_find_set_properties. - -2004-03-23 Christian Persch - - * src/ephy-tab.c: - * src/ephy-window.c: - - Tiny doc fixes. - -2004-03-23 Christian Persch - - * src/ephy-tab.c: (ephy_tab_set_property), (ephy_tab_get_property), - (ephy_tab_get_window), (ephy_tab_action_activate_cb), - (ephy_tab_class_init), (ephy_tab_destroy_brsr_cb), - (ephy_tab_size_to_cb), (ephy_tab_dom_mouse_click_cb), - (ephy_tab_init): - * src/ephy-tab.h: - * src/ephy-window.c: (tab_context_menu_cb), - (ephy_window_set_active_tab): - * src/ephy-window.h: - - Get rid of ephy_tab_[get|set]_window(). - -2004-03-23 Christian Persch - - * src/ephy-tab.c: (ephy_tab_visibility_cb): - - Fix the build, bad noda :P - -2004-03-23 Christian Persch - - * src/ephy-go-action.c: (connect_proxy), (disconnect_proxy), - (ephy_go_action_class_init): - - Make the "Go" button actually work. Thanks to aes for alerting us to - this problem. - -2004-03-23 Adam Hooper - - * doc/reference/Makefile.am: - * doc/reference/epiphany-docs.sgml: - * doc/reference/epiphany-sections.txt: - * doc/reference/tmpl/ephy-tab.sgml: - * src/ephy-tab.c: (ephy_tab_get_size), (ephy_tab_visibility_cb): - * src/ephy-tab.h: - - Added EphyTab API documentation. - - Also removed ephy_tab_set_visibility - and moved its functionality into ephy_tab_visibility_cb (), since I - doubt it's got any practical use outside of there. (Though admittedly, - I don't know whether "visibility" has any practical use anywhere.) - - Lastly, let ephy_tab_get_size () be called with NULL width or height, - like gtk_window_get_size (). - -2004-03-23 Adam Hooper - - * doc/reference/epiphany-docs.sgml: - * doc/reference/epiphany-sections.txt: - * doc/reference/tmpl/epiphany-unused.sgml: - - Rearranged so that a) the stuff I haven't gone over is clearly marked, - and b) the docs build for people who aren't chpe :). - -2004-03-23 Adam Hooper - - * data/.cvsignore: - - Add epiphany-1.4.pc - - * doc/plan.xml: - - Add a comment about EphyPermissionManager's incorrect timing - - * doc/reference-howto.txt: - - s/TRUE/%TRUE, like gtk does it. - - * doc/reference/Makefile.am: - * doc/reference/tmpl/ephy-permission-manager.sgml: - * doc/reference/tmpl/ephy-window.sgml: - * embed/ephy-permission-manager.c: - * embed/ephy-permission-manager.h: - * src/ephy-window.c: (ephy_window_activate_location): - * src/ephy-window.h: - - API documentation. - Also, put a newline in ephy_window_activate_location's definition - -2004-03-22 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import): - - the xbel mime type is now application/x-xbel - -2004-03-21 Christian Persch - - * src/window-commands.c: (window_cmd_help_about): - - Forgot to s/logo/icon/g. - -2004-03-21 Christian Persch - - * data/glade/prefs-dialog.glade: - - Fix "Add" button width in the prefs dialogue for some themes. - Fixes bug #137811. - -2004-03-21 Christian Persch - - * src/window-commands.c: (window_cmd_help_about): - - Set window icon. Fixes bug #137806. - -2004-03-21 Christian Persch - - * embed/mozilla/EphyContentPolicy.h: - * embed/mozilla/MozRegisterComponents.cpp: - - Don't override nsWebBrowserContentPolicy contract ID, just register our own - content policy with the category manager. - -2004-03-21 Christian Persch - - * configure.in: - * data/Makefile.am: - R data/epiphany-1.2.pc.in: - A data/epiphany-1.4.pc.in: - * src/Makefile.am: - - Make epiphany-extensions for epiphany 1.3 parallel-installable with those - for epiphany 1.2. - -2004-03-20 Guntupalli Karunakar - - * configure.in: Added "pa" (Punjabi) to ALL_LINGUAS. - -2004-03-19 Christian Persch - - * src/bookmarks/ephy-bookmark-properties.c: (set_window_icon): - - Don't try to unref NULL icon. Fixes bug #137715. - -2004-03-16 Marco Pesenti Gritti - - * embed/ephy-embed.c: (ephy_embed_chrome_get_type): - * embed/ephy-embed.h: - * embed/mozilla/Makefile.am: - * embed/mozilla/mozilla-embed.cpp: - - Cleanups chromes code and register a type for the enum. - - * src/ephy-nautilus-view.c: (gnv_embed_new_window_cb): - - Adapt to the api changes - - * src/ephy-tab.c: (ephy_tab_new_window_cb): - - Move js chrome lockdown pref check here. - - * src/ephy-window.c: (get_chromes_visibility), - (sync_chromes_visibility), (ephy_window_fullscreen), - (ephy_window_unfullscreen), (update_chromes_actions), - (update_actions_sensitivity), (show_embed_popup), - (get_default_chrome), (ephy_window_set_property), - (ephy_window_class_init), (actions_notifier), - (navigation_notifier), (ephy_window_init), (ephy_window_finalize), - (ephy_window_new_with_chrome), (ephy_window_set_print_preview), - (ephy_window_show), (sync_prefs_with_chrome), - (sync_chrome_with_view_toggle), (ephy_window_view_statusbar_cb), - (ephy_window_view_toolbar_cb), (ephy_window_view_bookmarksbar_cb): - - Rework chrome handling so that it's not applied to all windows. - Changes are now saved on the fly like for window size. - - * src/ephy-window.h: - - Use a construct property instead of a _set for chrome. - - * src/window-commands.c: - * src/window-commands.h: - - Move chromes actions to EphyWindow so we dont need to expose - chrome handling. - -2004-03-18 Xan Lopez - - * lib/widgets/ephy-node-view.c: - (ephy_node_view_select_node_by_key): - - Make select-by-key support unsorted lists. Fuzzy matching is gone - though. Oh well ... :) (bug #137054) - -2004-03-18 Piers Cornwell - - * src/pdm-dialog.c: (show_cookies_properties): - - Make secure description better (Bug #136443). - - * src/window-commands.c: (window_cmd_help_about): - - Add my email address. - - * embed/mozilla/GtkNSSDialogs.cpp: - - Include nsReadableUtils.h. - -2004-03-18 Christian Persch - - * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_import): - * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import): - * src/bookmarks/ephy-bookmarks-import.h: - - Add firefox option in bookmarks import dialogue. - -2004-03-17 Piers Cornwell - - * help/C/epiphany.xml: Fix notes and tips to validate. - -2004-03-15 Marco Pesenti Gritti - - * NEWS - * configure.in: - - Update for 1.2.0. - - * embed/mozilla/mozilla-download.cpp: - - Register the private structure. - -2004-03-14 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (drag_data_received_cb), - (toolbar_drag_motion_cb), (egg_editable_toolbar_init): - - Deal with the case where data_received signal is emitted - asyncrounously. - -2004-03-13 Alexander Shopov - - * configure.in: Added bg to ALL_LINGUAS. - -2004-03-09 Åsmund Skjæveland - - * configure.in (HAVE_MOZILLA_PSM): Added nn to ALL_LINGUAS. - * po/nn.po: Started Norwegian Nynorsk translation. - -2004-03-09 Christian Persch - - * lib/egg/egg-toolbar-editor.c: (editor_drag_data_received_cb): - - Check if the dragged item is a separator. Fixes crash when it _is_ - a separator. - - * lib/egg/egg-toolbars-model.c: - (egg_toolbars_model_remove_toolbar): - - Fix logic check for removable toolbar, & instead of &&. - - * src/ephy-location-action.c: (create_menu_proxy_cb), - (connect_proxy), (ephy_location_action_activate): - - Don't make a proxy menu item for the location entry. Fixes crash - when trying to activate its proxy menu item. - -2004-03-10 Christian Persch - - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/FilePicker.cpp: - * embed/mozilla/GtkNSSDialogs.cpp: - * embed/mozilla/mozilla-embed-persist.cpp: - - Use CopyUTF8toUTF16 where appropriate. - -2004-03-09 Christian Persch - - * lib/egg/egg-toolbar-editor.c: (editor_drag_data_received_cb): - - Check if the dragged item is a separator. Fixes a crash if it _is_ one. - - * src/ephy-location-action.c: (create_menu_proxy_cb), - (connect_proxy), (ephy_location_action_activate): - - Don't make the location entry have a proxy menu item. Fixes a crash when - trying to activate the proxy menu item. - -2004-03-08 Christian Persch - - * lib/egg/egg-toolbars-model.c: - (egg_toolbars_model_remove_toolbar): - - Test flags with & not &&. (Thanks to Crispin for spotting this.) - -2004-03-08 Christian Persch - - * configure.in: - - EPIPHANY_MAJOR=1.3 - -2004-03-08 Christian Persch - - * embed/downloader-view.h: - * embed/ephy-embed-factory.c: - * embed/ephy-embed-factory.h: - * embed/mozilla/EphyAboutRedirector.cpp: - * embed/mozilla/EphyAboutRedirector.h: - * embed/mozilla/EphyHeaderSniffer.h: - * embed/mozilla/ExternalProtocolHandlers.h: - * embed/mozilla/mozilla-notifiers.h: - * lib/eel-gconf-extensions.c: - * lib/eel-gconf-extensions.h: - * lib/ephy-bonobo-extensions.c: - * lib/ephy-bonobo-extensions.h: - * lib/ephy-dnd.c: - * lib/ephy-state.c: - * lib/ephy-string.c: - * lib/ephy-zoom.c: - * lib/widgets/ephy-arrow-toolbutton.h: - * lib/widgets/ephy-cell-renderer-progress.c: - * lib/widgets/ephy-cell-renderer-progress.h: - * lib/widgets/ephy-ellipsizing-label.c: - * lib/widgets/ephy-ellipsizing-label.h: - * lib/widgets/ephy-spinner.c: - * lib/widgets/ephy-zoom-action.h: - * src/bookmarks/ephy-bookmark-action.h: - * src/bookmarks/ephy-bookmark-properties.c: - * src/bookmarks/ephy-bookmarks-export.h: - * src/bookmarks/ephy-bookmarks-import.h: - * src/bookmarks/ephy-bookmarks-menu.h: - * src/bookmarks/ephy-bookmarks.h: - * src/bookmarks/ephy-new-bookmark.c: - * src/bookmarks/ephy-topic-action.h: - * src/ephy-toolbars-model.h: - * src/popup-commands.h: - * src/ppview-toolbar.h: - * src/prefs-dialog.h: - * src/toolbar.h: - - CVS version markers. - -2004-03-08 Christian Persch - - * embed/downloader-view.c: - * embed/ephy-download.c: - * embed/ephy-embed-dialog.c: - * embed/ephy-embed-event.c: - * embed/ephy-embed-factory.c: - * embed/find-dialog.c: - * embed/print-dialog.c: - * lib/ephy-bonobo-extensions.c: - * lib/ephy-debug.c: - * lib/ephy-dnd.c: - * lib/ephy-glade.c: - * lib/ephy-node-db.c: - * lib/ephy-node-filter.c: - * lib/ephy-state.c: - * lib/ephy-stock-icons.c: - * lib/ephy-zoom.c: - * lib/widgets/ephy-arrow-toolbutton.c: - * lib/widgets/ephy-cell-renderer-progress.c: - * lib/widgets/ephy-ellipsizing-label.c: - * lib/widgets/ephy-location-entry.c: - * lib/widgets/ephy-node-view.c: - * lib/widgets/ephy-search-entry.c: - * lib/widgets/ephy-tree-model-node.c: - * lib/widgets/ephy-tree-model-sort.c: - * src/bookmarks/ephy-bookmark-properties.c: - * src/bookmarks/ephy-bookmarks-export.c: - * src/bookmarks/ephy-new-bookmark.c: - * src/bookmarks/ephy-topics-selector.c: - * src/ephy-automation.c: - * src/ephy-completion-model.c: - * src/ephy-extension.c: - * src/ephy-favicon-action.c: - * src/ephy-history-window.c: - * src/ephy-location-action.c: - * src/ephy-navigation-action.c: - * src/ephy-toolbars-model.c: - * src/ppview-toolbar.c: - - Include "config.h" everywhere, and s//"config.h". Guard - with #if HAVE_CONFIG_H. - -2004-03-08 Christian Persch - - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/EventContext.cpp: - * embed/mozilla/FilePicker.cpp: - * embed/mozilla/GlobalHistory.cpp: - * embed/mozilla/GtkNSSClientAuthDialogs.cpp: - * embed/mozilla/GtkNSSDialogs.cpp: - * embed/mozilla/MozDownload.cpp: - * embed/mozilla/MozillaPrivate.cpp: - * embed/mozilla/mozilla-embed-persist.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - * embed/mozilla/mozilla-embed.cpp: - - s/UCS2/UTF16/g now that we can depend on mozilla >= 1.6. - -2004-03-08 Christian Persch - - * embed/ephy-encodings.c: - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/EphyHeaderSniffer.h: - * embed/mozilla/EphySingle.cpp: - * embed/mozilla/EventContext.cpp: - * embed/mozilla/EventContext.h: - * embed/mozilla/ExternalProtocolHandlers.cpp: - R embed/mozilla/ExternalProtocolService.cpp: - R embed/mozilla/ExternalProtocolService.h: - * embed/mozilla/GlobalHistory.cpp: - * 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.h: - * embed/mozilla/MozRegisterComponents.cpp: - * embed/mozilla/MozRegisterComponents.h: - * embed/mozilla/PrintingPromptService.h: - * embed/mozilla/mozilla-embed-event.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - * lib/ephy-langs.c: - * src/ephy-window.c: (show_embed_popup): - - Kill support for mozilla < 1.6. - -2004-03-08 Marco Pesenti Gritti - - * lib/widgets/ephy-cell-renderer-progress.c: - (ephy_cell_renderer_progress_set_property): - * lib/widgets/ephy-zoom-action.c: (ephy_zoom_action_set_property): - * lib/widgets/ephy-zoom-control.c: - (ephy_zoom_control_set_property): - * src/bookmarks/ephy-bookmark-action.c: - (ephy_bookmark_action_set_property): - * src/ephy-favicon-action.c: (ephy_favicon_action_set_property): - * src/ephy-location-action.c: (ephy_location_action_set_property): - - Remove unnecessary g_object_notify. RTFM chpe :P - -2004-03-08 Christian Persch - - * configure.in: - - Version 1.3.0. - Kill support for mozilla < 1.6. - -2004-03-07 Marco Pesenti Gritti - - * NEWS: - * configure.in: - * help/Makefile.am: - - Remove nl docs (incomplete). Ready for 1.1.11 - -2004-03-07 Christian Persch - - * NEWS: - - Updated for 1.1.11. - -2004-03-06 Christian Persch - - * src/bookmarks/ephy-bookmarks-import.c: (xbel_parse_bookmark), - (xbel_parse_folder), (xbel_parse_xbel), - (ephy_bookmarks_import_xbel): - - Really always check the return value of xmlTextReaderRead(), don't advance - if it's != 1. Fixes bug #136151. - -2004-03-06 Christian Persch - - * src/ephy-notebook.c: (notebook_drag_data_received_cb): - - Fix crash when dragging a link to a tab label; I forgot to change - this making the recent EphyTab/EphyEmbed changes. - -2004-03-06 Christian Persch - - * embed/mozilla/mozilla-embed.cpp: - - Also pop up the context menu with the menu key. - -2004-03-06 Christian Persch - - * src/ephy-main.c: (main): - - Persist changed accels with gnome_accelerator_sync(). - -2004-03-05 Christian Persch - - * configure.in: - - Increase MOZILLA_SNAPSHOT for 1.7b, and depend on gtk+ >= 2.3.5. - - * embed/mozilla/GlobalHistory.cpp: - - Adapt to changed mozilla API. - -2004-03-05 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - - Don't return an error when a DOM document isn't a HTML document, it's ok - not to be one (happens for XUL docs, like about:config). - -2004-03-05 Christian Persch - - * lib/ephy-file-helpers.c: (ephy_file_downloads_dir): - - Don't assume Desktop directory location, check the gconf key if it's - $HOME/Desktop or $HOME. Fixes bug #134951. - -2004-03-05 Christian Persch - - * embed/mozilla/EphyHeaderSniffer.cpp: - - Replace filename validity check, it was making the filename invalid - UTF-16. Simply convert to UTF-8 beforehand and check for "/" chars. - -2004-03-05 Christian Persch - - * src/ephy-tab.c: (ephy_tab_address_cb), (ephy_tab_title_cb), - (ensure_page_info), (ephy_tab_net_state_cb), - (clipboard_text_received_cb), (ephy_tab_dom_mouse_click_cb), - (ephy_tab_update_navigation_flags), (ephy_tab_set_title): - - Don't use ephy_tab_get_embed(), instead use the pointer provided when - we connected the callbacks. Hopefully fixes bug #136122. - -2004-03-04 Christian Persch - - * src/window-commands.c: (window_cmd_help_about): - - Don't set the 5-star icon as window icon for the about dialogue. - Fixes bug #135010. - -2004-03-03 Christian Persch - - * embed/mozilla/MozDownload.cpp: - - Change wait interval between updates to 0.2 s. - -2004-03-03 Christian Persch - - * lib/widgets/ephy-node-view.c: (uri_list_parse), - (drag_data_received_cb): - - Copy and modify gnome_vfs_uri_list_parse() so that we get a list - of string uris instead of GnomeVFSURIs. Change signature of - ::node-dropped accordingly. Fixes bug #120231. - - * src/bookmarks/ephy-bookmarks-editor.c: (node_dropped_cb): - - Adapt to the changed ::node-dropped signal signature. - -2004-03-03 Christian Persch - - * 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. - -2004-03-03 Christian Persch - - * src/bookmarks/ephy-bookmark-action.c: (favicon_cache_changed_cb), - (ephy_bookmark_action_sync_icon), (ephy_bookmark_action_init): - - If the favicon isn't ready when we need it, connect to the favicon - cache's ::changed signal to show it when we have it. Fixes bug #135855. - -2004-03-02 Marco Pesenti Gritti - - * src/ephy-tab.c: (ephy_tab_destroy_brsr_cb): - - Do not show the unsubmitted dialog for js close - -2004-03-02 Christian Persch - - * lib/ephy-file-chooser.c: (ephy_file_chooser_init): - - Don't remember the size of the filechoose dialogue, because it doesn't - play nicely with the new save mode when toggling the expander. - Fixes bug #135947. - -2004-03-02 Marco Pesenti Gritti - - * src/ephy-session.c: (ephy_session_init), (offer_to_resume), - (ephy_session_autoresume): - - Never show two resume dialogs, just re-present the old one. - -2004-03-01 Christian Persch - - * src/bookmarks/ephy-bookmarks.c: (backup_file), - (ephy_bookmarks_init): - - Don't try to backup non-existing files :) - Also, when neither ephy-bookmarks.xml nor bookmarks.rdf exist, - assume we have a new profile and don't warn about missing bookmarks. - -2004-03-01 Christian Persch - - * src/bookmarks/ephy-bookmark-action.c: (smart_child_added_cb), - (smart_child_removed_cb), (ephy_bookmark_action_init): - - Correctly sync the smarturl property of EphyBookmarksAction when - it changes. Fixes incorrect show/hide of the entry on the bookmarks - toolbar. - -2004-03-01 Christian Persch - - * src/bookmarks/ephy-bookmarks.c: (update_has_smart_address): - - When changing a bookmark address and it was a smart bookmark but - now is not anymore, remove the bookmark from the smart_bmks node - instead of adding it :) - -2004-03-01 Christian Persch - - * src/ephy-toolbars-model.c: (get_toolbar_pos), - (ephy_toolbars_model_set_bookmarks): - - Ensure we always have a BookmarksBar toolbar in the model. - Fixes bug #135701. - -2004-03-01 Marco Pesenti Gritti - - * lib/egg/eggstatusicon.c: (egg_status_icon_init), - (egg_status_icon_button_press): - - The icon should be activated by double click - -2004-03-01 Christian Persch - - * src/ephy-statusbar.c: - - Add API docs. - -2004-03-01 Christian Persch - - * src/bookmarks/ephy-bookmarks.c: (backup_file), - (ephy_bookmarks_init): - - If reading the bookmarks file, or re-importing the bookmarks from the - rdf file fails, back up those files so that the user can afterwards - try to manually recover his bookmarks. Fixes bug #128308. - -2004-03-01 Christian Persch - - * src/bookmarks/ephy-bookmarks-import.c: (xbel_parse_folder), - (xbel_parse_xbel), (ephy_bookmarks_import_xbel): - - Fix XBEL importer not to tag all bookmarks with a "Bookmarks" category. - -2004-03-01 Christian Persch - - * src/ephy-statusbar.c: (create_statusbar_security_icon), - (ephy_statusbar_add_widget): - * src/ephy-statusbar.h: - - Export ephy_statusbar_add_widget() for use by extensions. - -2003-03-01 Christian Persch - - * lib/ephy-node-db.c: (ephy_node_db_load_from_file): - - Guard against xml reading error, check for NULL subtree before - trying to parse it. - -2004-03-01 Marco Pesenti Gritti - - * 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) - -2004-02-29 Marco Pesenti Gritti - - * embed/mozilla/ContentHandler.cpp: - - Correct the label of the action button (Open) - -2004-02-29 Christian Persch - - * embed/ephy-history.c: (remove_obsolete_pages): - - Iterate backwards over the children when removing a host. - -2004-02-29 Christian Persch - - * embed/ephy-favicon-cache.c: (ephy_favicon_cache_class_init), - (kill_download), (ephy_favicon_cache_finalize), - (favicon_name_build), (favicon_download_completed_cb), - (favicon_download_cancelled_cb), (ephy_favicon_cache_download), - (ephy_favicon_cache_get): - * embed/ephy-favicon-cache.h: - - Remove cancelled downloads from the downloads hash; and remove - partially downloaded favicons. - -2004-02-29 Christian Persch - - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/FilePicker.cpp: - * embed/mozilla/GtkNSSClientAuthDialogs.cpp: - * embed/mozilla/GtkNSSKeyPairDialogs.cpp: - * embed/mozilla/PrintingPromptService.cpp: - - Add debug output in ctors and dtors. - -2004-02-29 Christian Persch - - * src/bookmarks/ephy-bookmarks-menu.c: (ephy_bookmarks_menu_clean), - (ephy_bookmarks_menu_rebuild): - - Separately profile bookmarks menu clean and rebuild. - -2004-02-29 Christian Persch - - * embed/ephy-embed-persist.c: (ephy_embed_persist_class_init): - * embed/ephy-embed-persist.h: - - Add "cancelled" signal to EphyEmbedPersist. - - * embed/mozilla/mozilla-embed-persist.cpp: - - Emit "cancelled" signal when the download is cancelled. - -2004-02-29 Christian Persch - - * embed/mozilla/mozilla-embed-event.cpp: (mozilla_embed_event_init), - (mozilla_embed_event_finalize), (mozilla_embed_event_set_property): - - Add debug output. - -2004-02-29 Christian Persch - - * embed/mozilla/EphyHeaderSniffer.cpp: (PerformSave): - - Decode RFC 2231 and RFC 2047 encoded filenames in content-disposition - headers. Ported from mozilla Camino, see - http://bugzilla.mozilla.org/show_bug.cgi?id=233798 . - -2004-02-29 Christian Persch - - * embed/mozilla/MozDownload.cpp: (MozDownload), (~MozDownload): - - Add debug output. - -2004-02-29 Marco Pesenti Gritti - - * embed/mozilla/MozDownload.cpp: - - Fix max size logic, thanks to chpe. - -2004-02-29 Marco Pesenti Gritti - - * src/ephy-session.c: (impl_attach_window), - (ephy_session_add_window): - - Fix order of the windows, they was reversed before. - -2004-02-28 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarks.c: (topics_removed_cb): - - fix typo that was causing categorized bookmarks to - go in the uncategorized topic (Bug #135702) - -2004-02-28 Christian Persch - - * src/bookmarks/ephy-bookmarks-import.c: (xbel_parse_folder), - (ephy_bookmarks_import_xbel): - - If a folder has no name, don't tag its bookmarks with "Untitled" - keyword, just skip it. - -2004-02-28 Marco Pesenti Gritti - - * embed/mozilla/ContentHandler.cpp: - - Use getInterface to get the dom window from the - docshell, not queryInterface. (Bug #121160) - - * embed/mozilla/MozillaPrivate.cpp: - - Do not fallback to the active window if - the parent cannot be found. It just hides problems - and cause more annoying behaviors (like dialogs - parented on the wrong window). - -2004-02-28 Marco Pesenti Gritti - - * HACKING: - - Add a note about changelog entry. - - * TODO: - - Remove old stuff - -2004-02-28 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: - (egg_editable_toolbar_get_edit_mode): - * lib/egg/egg-editable-toolbar.h: - * lib/widgets/ephy-location-entry.c: (toolbar_is_editable), - (entry_drag_motion_cb), (entry_drag_drop_cb), - (ephy_location_entry_construct_contents): - - Sucky but not intrusive hack to make dnd on the address - entry work when editing toolbar. A better solution - will be found when the toolbar editor will get in gtk. - Based on a patch from Søren Sandmann, bug 132467. - -2004-02-28 Xan Lopez - - * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import): - - Add missing check for Firebird bookmarks, patch by André Dahlqvist. - -2004-02-27 Marco Pesenti Gritti - - * 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. - -2004-02-27 Christian Persch - - * configure.in: - - Depend on gk+ >= 2.3.4, but since the filechooser API changed, you'll really - need the latest from cvs. - -2004-02-27 Christian Persch - - * embed/mozilla/FilePicker.cpp: - * lib/ephy-file-chooser.c: (ephy_file_chooser_init), - (ephy_file_chooser_new): - * src/prefs-dialog.c: (prefs_download_path_button_clicked_cb): - - Fix for gtk+ filechooser API change. - -2004-02-27 Christian Persch - - * src/bookmarks/ephy-bookmarks-import.c: (ns_parse_bookmark_item): - - Fix potential crash. - - (ephy_bookmarks_import_mozilla): - - Fix mem leak. - -2004-02-27 Christian Persch - - * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import_mozilla): - - Replace entities also in folder names, fixes bug #135440. - -2004-02-26 Marco Pesenti Gritti - - * src/ephy-tab.c: (ephy_tab_address_cb), (ensure_page_info): - - Do not show about:blank to the user, an empty address bar - will do better. - When the address bar is empty (no page or blank page is - loaded) set the address before loading succeeded. - -2004-02-25 Christian Persch - - * src/window-commands.c: (open_response_cb): - - Check for NULL before converting filename to UTF-8. - -2004-02-25 Marco Pesenti Gritti - - * 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. - -2004-02-24 Christian Persch - - * src/ephy-tab.c: (let_me_resize_hack), (ephy_tab_size_to_cb): - - Change this back to simply do g_idle_add(), accidentally forgot to - revert my change. - -2004-02-24 Xan Lopez - - * embed/mozilla/EphyHeaderSniffer.cpp: - - Unescape filenames whenever possible. - - * src/popup-commands.c: (save_property_url): - - Nitpick. - -2004-02-24 Christian Persch - - * src/ephy-nautilus-view.c: (gnv_embed_new_window_cb): - * src/ephy-notebook.c: (ephy_notebook_class_init), - (tab_label_size_request_cb), (ephy_notebook_move_tab), (move_tab), - (motion_notify_cb), (move_tab_to_another_notebook), - (button_release_cb), (ephy_notebook_switch_page_cb), - (ephy_notebook_init), (close_button_clicked_cb), (build_tab_label), - (ephy_notebook_insert_tab), (smart_tab_switching_on_closure), - (ephy_notebook_remove_tab): - * src/ephy-notebook.h: - * src/ephy-session.c: (tab_added_cb), (tab_removed_cb): - * src/ephy-shell.c: (ephy_shell_new_tab): - * src/ephy-tab.c: (ephy_tab_get_type), (ephy_tab_size_allocate), - (ephy_tab_parent_set), (ephy_tab_class_init), (ephy_tab_finalize), - (ephy_tab_new), (ephy_tab_get_embed), (ephy_tab_for_embed), - (ephy_tab_new_window_cb), (let_me_resize_hack), - (ephy_tab_visibility_cb), (ephy_tab_size_to_cb), - (ephy_tab_dom_mouse_click_cb), (ephy_tab_init), - (ephy_tab_update_navigation_flags), (ephy_tab_set_title): - * src/ephy-tab.h: - * src/ephy-tabs-menu.c: (tab_added_cb), (tab_removed_cb), - (tabs_reordered_cb), (ephy_tabs_menu_set_window), - (ephy_tabs_menu_update): - * src/ephy-window.c: (tab_added_cb), (tab_removed_cb), - (tab_detached_cb), (tabs_reordered_cb), (tab_delete_cb), - (setup_notebook), (ephy_window_add_tab), (ephy_window_jump_to_tab), - (real_get_active_tab), (ephy_window_remove_tab), - (ephy_window_get_active_tab), (ephy_window_get_active_embed), - (ephy_window_get_tabs): - * src/ephy-window.h: - * src/window-commands.c: (window_cmd_tabs_move_left), - (window_cmd_tabs_move_right), (window_cmd_tabs_detach): - - Make EphyTab inherit from GtkBin, and contain the EphyEmbed as its child. - -2004-02-24 Marco Pesenti Gritti - - * src/ephy-tab.c: (address_has_web_scheme): - - Do not use gnome vfs to check the scheme because - it can handle only supported methods. - -2004-02-21 Christian Persch - - * doc/reference/Makefile.am: - - Remove nsUnicharUtils.h from docs makefile. - -2004-02-21 Christian Persch - - * lib/ephy-file-helpers.h: - * lib/ephy-glade.c: - - Removed an unused #include. - -2004-02-21 Christian Persch - - * lib/ephy-dialog.c: (connect_signals): - - Always connect signals, not just for PT_AUTOAPPLY props. - -2004-02-21 Christian Persch - - * doc/reference/tmpl/EphyContentPolicy.sgml: - * doc/reference/tmpl/EphySingle.sgml: - * doc/reference/tmpl/ephy-cookie-manager.sgml: - * doc/reference/tmpl/ephy-embed-factory.sgml: - * doc/reference/tmpl/ephy-embed-single.sgml: - * doc/reference/tmpl/ephy-password-manager.sgml: - * doc/reference/tmpl/ephy-permission-manager.sgml: - * doc/reference/tmpl/ephy-session.sgml: - * doc/reference/tmpl/ephy-shell.sgml: - * doc/reference/tmpl/mozilla-embed-event.sgml: - - Commit changed, auto-generated templates. - -2004-02-20 Christian Persch - - * configure.in: - - Epiphany 1.1.10. - -2004-02-21 Christian Rose - - * configure.in: Added "en_CA" to ALL_LINGUAS. - -2004-02-21 Marco Pesenti Gritti - - * embed/mozilla/Makefile.am: - - Actually remove nsUnicharUtils.* - - * embed/mozilla/mozilla-embed-persist.cpp: - - Use our helper to construct tmp file name: fix - security issue. - - * src/window-commands.c: (save_temp_source): - - Cosmetic change - -2004-02-20 Christian Persch - - * embed/mozilla/EventContext.cpp: - * embed/mozilla/EphyBrowser.cpp: - R embed/mozilla/nsUnicharUtils.h: - R embed/mozilla/nsUnicharUtils.cpp: - - Adapt to changed mozilla string APIs by getting rid of - nsUnicharUtils, and using EqualsIgnoreCase instead of - Equal with nsCaseInsensitiveStringComparator(). - -2004-02-20 Marco Pesenti Gritti - - * src/ephy-completion-model.c: (is_base_address), - (init_relevance_col): - - Ensure that there are no more chars after the last /. - Cut down number of visists properly. - -2004-02-20 Christian Persch - - * lib/egg/egg-editable-toolbar.c: (popup_toolbar_context_menu_cb): - - Fix logic error, spotted by Crispin. - - * lib/egg/egg-toolbars-model.h: - - Make it clear that EggTbModelFlags is a bitfield enum. - -2004-02-20 Christian Persch - - * lib/eel-gconf-extensions.c: - - #ifdef HAVE_CONFIG_H the inclusion of config.h. - -2004-02-20 Christian Persch - - * lib/Makefile.am: - - Remove duplicate entry for ephy-gui.h. - -2004-02-20 Christian Persch - - * embed/ephy-command-manager.c: (ephy_command_manager_get_type), - (ephy_command_manager_base_init), - (ephy_command_manager_do_command), - (ephy_command_manager_can_do_command): - * embed/ephy-command-manager.h: - * embed/ephy-cookie-manager.c: (ephy_cookie_manager_get_type), - (ephy_cookie_manager_base_init), - (ephy_cookie_manager_list_cookies), - (ephy_cookie_manager_remove_cookie), (ephy_cookie_manager_clear): - * embed/ephy-cookie-manager.h: - * embed/ephy-embed-event.c: (ephy_embed_event_get_type), - (ephy_embed_event_get_event_type), (ephy_embed_event_get_context), - (ephy_embed_event_get_modifier), (ephy_embed_event_get_coords), - (ephy_embed_event_get_property), (ephy_embed_event_has_property), - (ephy_embed_event_get_dom_event): - * embed/ephy-embed-event.h: - * embed/ephy-embed-single.c: (ephy_embed_single_get_type), - (ephy_embed_single_iface_init), (ephy_embed_single_clear_cache), - (ephy_embed_single_clear_auth_cache), - (ephy_embed_single_set_offline_mode), - (ephy_embed_single_load_proxy_autoconf), - (ephy_embed_single_get_font_list): - * embed/ephy-embed-single.h: - * embed/ephy-embed.c: (ephy_embed_get_type), - (ephy_embed_base_init), (ephy_embed_load_url), - (ephy_embed_stop_load), (ephy_embed_can_go_back), - (ephy_embed_can_go_forward), (ephy_embed_can_go_up), - (ephy_embed_get_go_up_list), (ephy_embed_go_back), - (ephy_embed_go_forward), (ephy_embed_go_up), - (ephy_embed_get_title), (ephy_embed_get_location), - (ephy_embed_get_link_message), (ephy_embed_get_js_status), - (ephy_embed_reload), (ephy_embed_zoom_set), (ephy_embed_zoom_get), - (ephy_embed_shistory_n_items), (ephy_embed_shistory_get_nth), - (ephy_embed_shistory_get_pos), (ephy_embed_shistory_go_nth), - (ephy_embed_get_security_level), (ephy_embed_find_set_properties), - (ephy_embed_find_next), (ephy_embed_activate), - (ephy_embed_set_encoding), (ephy_embed_get_encoding_info), - (ephy_embed_print), (ephy_embed_print_preview_close), - (ephy_embed_print_preview_n_pages), - (ephy_embed_print_preview_navigate), - (ephy_embed_has_modified_forms): - * embed/ephy-embed.h: - * embed/ephy-password-manager.c: (ephy_password_manager_get_type), - (ephy_password_manager_add), (ephy_password_manager_remove), - (ephy_password_manager_list): - * embed/ephy-password-manager.h: - * embed/ephy-permission-manager.c: - (ephy_permission_manager_get_type), - (ephy_permission_manager_base_init), (ephy_permission_manager_add), - (ephy_permission_manager_remove), (ephy_permission_manager_clear), - (ephy_permission_manager_test), (ephy_permission_manager_list): - * embed/ephy-permission-manager.h: - * embed/mozilla/mozilla-embed-event.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - * embed/mozilla/mozilla-embed.cpp: - - s/IFace/Iface/g to match the gtk+ naming convention. - -2004-02-20 Julio M. Merino Vidal - - * configure.in: - - Remove duplicate --with-html-dir argument - - * data/epiphany.schemas.in: - - fix a syntax error - -2004-02-19 Christian Persch - - * lib/egg/egg-toolbar-editor.c: (update_editor_sheet): - - Fix off-by-one error when computing the height of the table. - -2004-02-19 Christian Persch - - * lib/egg/egg-toolbar-editor.c: (toolbar_removed_cb), - (egg_toolbar_editor_set_model), (egg_toolbar_editor_class_init), - (update_actions_list), (egg_toolbar_editor_load_actions): - * lib/egg/egg-toolbar-editor.h: - - When removing a toolbar, make its items available again in the toolbar - editor. Fixes bug #131182. - -2004-02-18 Alexander Winston - - * help/C/epiphany.xml: Fixed typos in the bookmarks explanation. - -2004-02-17 Christian Persch - - * lib/egg/egg-editable-toolbar.c: (item_added_cb), - (item_removed_cb), (egg_editable_toolbar_construct): - - Remove the toolbar height contraint when the first item is added - to it. Fixes bug #131181. - -2004-02-17 Christian Persch - - * src/ephy-extension.c: (ephy_extension_get_type), - (ephy_extension_attach_window), (ephy_extension_detach_window): - * src/ephy-extension.h: - * src/ephy-extensions-manager.c: - (ephy_extensions_manager_iface_init): - * src/ephy-session.c: (ephy_session_iface_init): - - s/EphyExtensionClass/EphyExtensionIface/g - -2004-02-17 Christian Persch - - * NEWS: - * configure.in: - - Epiphany 1.1.9. - -2004-02-16 Christian Persch - - * embed/mozilla/GlobalHistory.cpp: - - Don't use #if inside a macro. Fixe compilation with gcc 3.2.2. - -2004-02-15 Christian Persch - - * embed/mozilla/FilePicker.cpp: (::AppendFilter): - - Make it work (TM). - -2004-02-15 Christian Persch - - * embed/mozilla/FilePicker.cpp: (::Show), (::GFilePicker), - (::~GFilePicker): - - Weak ref the real dialogue, and hide the dialogue after - running it. Fixes interaction with nsIFilePicker lifecycle - when shown from javascript. - -2004-02-15 Marco Pesenti Gritti - - * NEWS: - * configure.in: - - Prepare for 1.1.8 - - * embed/downloader-view.c: (downloader_view_build_ui): - - Revert the timeout for now, I dont think it's mature - for the release. - -2004-02-14 Xan Lopez - - * data/.cvsignore: - - Quiet cvs. - -2004-02-13 Marco Pesenti Gritti - - * data/mime-types-permissions.xml: - - Several types are actually safe. - - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/ContentHandler.h: - - Change the safe/unsafe logic to not consider unkown - files unsafe, they will not be opened anyway. - Cleanups. - -2004-02-13 Christian Persch - - * doc/reference/Makefile.am: - * src/Makefile.am: - - Install the statusbar .h file. - - R src/statusbar.[ch]: - A src/ephy-statusbar.[ch]: - - s/statusbar/ephy-statusbar/ and friends. - - * src/ephy-window.c: (sync_tab_load_progress), (sync_tab_security), - (ephy_window_init): - - Change references from statusbar to ephy-statusbar. - Remove selection-received stuff, since it now lives in EphyTab. - -2004-02-12 Christian Persch - - * configure.in: - * data/Makefile.am: - R data/epiphany-1.0.pc.in: - A data/epiphany-1.2.pc.in: - - Changed .pc file version to 1.2, since we're not API-compatible with - 1.0. - -2004-02-12 Christian Persch - - * embed/downloader-view.c: (download_dialog_abort_cb): - - Safety check. - -2004-02-12 Christian Persch - - * embed/mozilla/mozilla-embed.cpp: (mozilla_embed_security_change_cb): - - Use static_cast<>, don't cast directly. - -2004-02-12 Christian Persch - - * lib/ephy-dialog.c: (set_sensitivity): - - Don't set entries insensitive, only set the non-editable when the - gconf key isn't writable. - -2004-02-12 Christian Persch - - * embed/mozilla/MozDownload.cpp: - * src/prefs-dialog.c: (get_download_button_label): - - Unify fallback downloads dir to get the home directory. - -2004-02-12 Christian Persch - - * embed/mozilla/GtkNSSDialogs.cpp: - - Don't insist on a parent for the dialogue; because there isn't one - when we try to load a favicon over https: at startup. - -2004-02-12 Christian Persch - - * 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. - -2004-02-12 Marco Pesenti Gritti - - * data/glade/prefs-dialog.glade: - - Add a missing accellerator - -2004-02-12 Christian Persch - - * lib/ephy-node-db.c: (ephy_node_db_write_to_xml_valist): - * src/bookmarks/ephy-bookmarks-export.c: - (ephy_bookmarks_export_rdf): - * src/ephy-session.c: (ephy_session_save): - - Re-enalble indentation. - -2004-02-12 Christian Persch - - * configure.in: - - Depend on libxml2 >= 2.6.6 because of bug #133298 and bug # 131548. - - * src/ephy-main.c: (main): - - Use LIBXML_TEST_VERSION to check for API compatibility. - -2004-02-12 Christian Persch - - * embed/mozilla/GlobalHistory.cpp: - - Fix compilation with mozilla 1.4. - -2004-02-12 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/GlobalHistory.cpp: - * embed/mozilla/GlobalHistory.h: - * embed/mozilla/MozRegisterComponents.cpp: - - Adapt to the ever-changing mozilla APIs. - -2004-02-12 Marco Pesenti Gritti - - * lib/widgets/ephy-location-entry.c: (keyword_match): - - Simplify and hopefully fix mem corruption - -2004-02-12 Marco Pesenti Gritti - - * embed/mozilla/ContentHandler.cpp: - - When open is explicitly requested from the dialog use - a tmp file. - -2004-02-11 Chris Lahey - - * embed/downloader-view.c: Added timeout so that dialog won't - disappear before 5 seconds is over. Made Pause/Resume button - update label properly. - -2004-02-11 Christian Persch - - * src/bookmarks/ephy-bookmarks.c: - - Increase bookmarks format version. - -2004-02-11 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_add): - - Update bookmarks keywords - -2004-02-11 Xan Lopez - - * 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. - -2004-02-11 Marco Pesenti Gritti - - * embed/downloader-view.c: (downloader_view_build_ui): - - Make columns resizable - -2004-02-11 Marco Pesenti Gritti - - * src/ephy-tab.c: (open_link_in_new_tab), - (ephy_tab_dom_mouse_click_cb): - - Do not load js urls when middle clicked. - -2004-02-11 Marco Pesenti Gritti - - * lib/widgets/ephy-location-entry.c: (completion_func): - - Cleanup - - * src/bookmarks/ephy-bookmarks.c: - - Increase format version - -2004-02-11 Marco Pesenti Gritti - - * lib/widgets/ephy-location-entry.c: (keyword_match), - (completion_func): - - Better keyword matching function. Should match only words - (not middle parts of them) and maybe be a bit faster. - -2004-02-11 Marco Pesenti Gritti - - * lib/ephy-node.c: (callback), (child_changed), - (ephy_node_set_property): - - Pass the property id to the changed signal. - - * lib/ephy-node.h: - - Cleanup. - - * embed/ephy-history.c: (hosts_changed_cb), (pages_changed_cb): - * lib/widgets/ephy-location-entry.c: (completion_func): - * lib/widgets/ephy-tree-model-node.c: (root_child_changed_cb): - * src/bookmarks/ephy-bookmark-action.c: - (bookmarks_child_changed_cb): - * src/bookmarks/ephy-bookmarks-menu.c: (topic_child_changed_cb): - * src/bookmarks/ephy-topic-action.c: (topic_child_changed_cb): - * src/ephy-completion-model.c: (root_child_changed_cb): - * src/ephy-location-action.c: (actions_child_changed_cb): - - Fixup changed signals signature. - - * src/bookmarks/ephy-bookmarks.c: (update_bookmark_keywords), - (bookmarks_changed_cb), (bookmark_is_categorized), - (topics_removed_cb), (ephy_bookmarks_set_keyword), - (ephy_bookmarks_unset_keyword): - - Cleanup keywords building, normalize and case fold it, add - the title words as keywords too. - -2004-02-11 Christian Persch - - * embed/mozilla/mozilla-embed-persist.cpp: (impl_save): - - Fix mem leaks. - -2004-02-11 Marco Pesenti Gritti - - * src/ephy-completion-model.c: (is_base_address), - (init_relevance_col): - - Better autocompletion sorting logic. - - * src/window-commands.c: (window_cmd_help_about): - - s/translator_credits/translator-credits - -2004-02-10 Marco Pesenti Gritti - - * src/ephy-completion-model.c: (init_text_col): - - Show the title of the bookmark, not the address - -2004-02-09 Christian Persch - - * src/ephy-tab.c: (clipboard_text_received_cb), - (ephy_tab_dom_mouse_click_cb): - - Fix the fix for the epiphany equivalent of bug #133633. Don't convert - the clipboard contents directly as the souurce may not offer UTF-8 text. - Instead request the contents, and gtk+ will convert it for us. - -2004-02-09 Christian Persch - - * lib/egg/egg-editable-toolbar.c: - * embed/ephy-embed-popup-control.c: - - Include config.h. - -2004-02-09 Christian Rose - - * configure.in: Added "mi" to ALL_LINGUAS. - -2004-02-08 Christian Persch - - * embed/ephy-favicon-cache.c: (ephy_favicon_cache_init): - - Remove trailing / in invocation of mkdir, since it's unneeded and not - portable. Patch by Julio M. Merino Vidal, fixes bug 133738. - -2004-02-06 Christian Persch - - * src/ephy-tab.c: (ephy_tab_dom_mouse_click_cb): - - Make middle-click paste work with urls with IDN domain names. - Fixes the epiphany equivalent of galeon bug 133633. - -2004-02-06 Christian Persch - - * embed/mozilla/EventContext.cpp: - - Excise old galeon 1, non ported, defined-out code. - -2004-02-06 Christian Persch - - * data/Makefile.am: - - Honour the --with-gconf-schema-file-dir and --disable-schemas-install - configure options. Patch by Julio M. Merino Vidal, fixes bug #133533. - -2004-02-06 Christian Persch - - * data/glade/prefs-dialog.glade: - - Now that GtkComboBox supports mnemonic activation, - set the focus target of the combos' labels. - -2004-02-05 Piers Cornwell - - * src/ephy-session.c: (offer_to_resume): - - Make warning message selectable per hig. - -2004-02-05 Christian Persch - - * src/bookmarks/ephy-bookmark-action.c: (connect_proxy): - * src/bookmarks/ephy-topic-action.c: (connect_proxy): - - No need to connect to the toolitem's create-menu-proxy signal, - gtk+ does it for us. - -2004-02-04 Christian Persch - - * src/ephy-go-action.c: (ephy_go_action_get_type), - (create_tool_item), (ephy_go_action_class_init): - - gtk+ now connects the tool item's create_menu_proxy to the - action's create_menu_item, so we don't need to do it ourselves. - Also unnecessary to do connect_proxy. - The go action is now almost empty, we should really see if - we can use a stock gtktoolbutton for it. - -2004-02-04 Christian Persch - - * lib/widgets/ephy-zoom-action.c: (ephy_zoom_action_get_type), - (zoom_to_level_cb), (connect_proxy), (proxy_menu_activate_cb), - (create_menu_item), (ephy_zoom_action_class_init): - * lib/widgets/ephy-zoom-action.h: - * lib/widgets/ephy-zoom-control.c: (ephy_zoom_control_class_init): - - Fix toolbar overflow menu creation. Don't connect zoom control signals - to a menu item. - -2004-02-04 Christian Persch - - * lib/widgets/ephy-arrow-toolbutton.c: - (ephy_arrow_toolbutton_finalize): - - Fix mem leak. - -2004-02-04 Christian Persch - - * data/glade/epiphany.glade: - * data/glade/certificate-dialogs.glade: - * data/glade/print.glade: - * data/glade/prefs-dialog.glade: - - Dialogs shouldn't show up in the window list, period. - -2004-02-04 Christian Persch - - * data/glade/pref-dialog.glade: - * data/glade/epiphany.glade: - - Don't show Find, Add Language, and Encodings dialogue in - window list. - -2004-02-04 David Bordoley - - * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_new): - - Set a default height/width for the dialog. - -2004-02-04 Biggest Flake Ever - David Bordoley - - * embed/downloader-view.c: (downloader_view_new): - * src/prefs-dialog.c: (setup_add_language_dialog): - - Use a default width/height for dialogs with - tree views that don't have a fixed requisition. - -2004-02-04 Piers Cornwell - - * src/ephy-history-window.c: (confirmation_dialog_construct): - - Use title capitalisation for title. - -2004-02-02 Maxim Dziumanenko - - * configure.in: Added "uk" in ALL_LINGUAS - -2004-02-02 Marco Pesenti Gritti - - * autogen.sh: - * omf.make: - * xmldocs.make: - - Use gnome-common to generate help makefiles - -2004-02-01 Christian Persch - - * configure.in: - - Version 1.1.7. - -2004-02-01 Christian Persch - - * src/ephy-extensions-manager.c: (ephy_extensions_manager_init): - * src/ephy-extensions-manager.h: - * src/ephy-shell.c: (ephy_shell_get_extensions_manager): - - Decouple extensions manager initialisation and extensions loading. - Fixes a crash when an extensions tried to get the session, - causing us to load extensions more than once. - -2004-02-01 Marco Pesenti Gritti - - * lib/ephy-stock-icons.h: - - typo in icon name - -2004-02-01 Christian Persch - - * embed/mozilla/ContentHandler: - - Add a space after period, fixes bug #133151. - -2004-02-01 Xan Lopez - - * embed/downloader-view.c: (status_icon_activated), - (downloader_view_build_ui): - - Activating the status icon should only show it (HIG says so). - Also set the downloader view to BROSWE mode. - -2004-01-31 Adam Hooper - - * NEWS: - * configure.in: - - Prepare for 1.1.6 - -2004-01-30 Adam Hooper - - * src/ephy-tab.c: (ephy_tab_class_init): - - Fix typo: s/PROP_LOAD_STATUS/PROP_LOAD_PROGRESS. - -2004-01-30 Christian Persch - - * embed/mozilla/ContentHandler.cpp: - - Don't try to g_free a nsCOMPtr<>, and use nsMemory::Free for the - mMimeType string. - -2004-01-29 Christian Persch - - * embed/mozilla/EphyHeaderSniffer.cpp: - - Fix mem leak. - -2004-01-29 Christian Persch - - * src/ephy-favicon-action.c: (ephy_favicon_action_set_property), - (ephy_favicon_action_get_property): - - Fix property getter of "icon" property. - -2004-01-29 Christian Persch - - * embed/mozilla/MozDownload.cpp: - - Fix mem leak. - -2004-01-29 Christian Persch - - * embed/downloader-view.c: (update_download_row): - - Fix mem leak. - -2004-01-29 Christian Persch - - * embed/mozilla/EphyHeaderSniffer.cpp: - - Fix encodign conversion of "Untitled" filename suggestion. - Fixes bug #132822. - -2004-01-28 Christian Persch - - * src/bookmarks/ephy-bookmarks-import.c: - (ephy_bookmarks_import_rdf): - - Don't crash when reading the RDF file fails. - -2004-01-28 Christian Persch - - * src/bookmarks/ephy-bookmarks-export.c: - (ephy_bookmarks_export_rdf): - - Use rdf:resource instead of rdf:about, fixes bug #131543. - -2004-01-28 Christian Persch - - * src/bookmarks/ephy-bookmarks-menu.c: - (ephy_bookmarks_menu_get_type), (sync_topic_properties), - (topic_child_changed_cb), (ephy_bookmarks_menu_init): - - Sync topic names in the menu. Fixes bug #128097. - -2004-01-28 Christian Persch - - * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_solve_smart_url), - (options_find_first_option), (smart_url_options_get): - - Fix options parsing. - -2004-01-28 David Bordoley - - * src/ephy-window.c: - Use EPHY_STOCK_DOWNLOAD for the download - link icon. - -2004-01-28 Christian Persch - - * src/Makefile.am: - - Fix linking with nautilus view enabled. - -2004-01-28 Christian Persch - - * configure.in: - * src/Makefile.am: - - Check for required libnautilus version, and conditionally enable - nautilus view. - -2004-01-27 Piers Cornwell - - * help/C/epiphany.xml: - - Update documentation. - -2004-01-27 Christian Persch - - * lib/ephy-file-helpers.c: (ephy_file_helpers_shutdown): - - Only try to rmdir() the tmp directory if we have one. - -2004-01-27 Marco Pesenti Gritti - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - - Make sure to not initialize EphyBrowser - multiple times. - -2004-01-26 Christian Persch - - * embed/ephy-download.c: (ephy_download_get_name): - - Fix mem leak. - -2004-01-26 Christian Persch - - * embed/downloader-view.c: (update_download_row): - - Fix mem leak. - -2004-01-26 Christian Persch - - * embed/downloader-view.c: (update_download_row): - - Fix mem leak. - -2004-01-26 Marco Pesenti Gritti - - * embed/mozilla/ContentHandler.cpp: - - closing dialog == cancel - -2004-01-25 Marco Pesenti Gritti - - * NEWS: - - Correct a translator name. - - * embed/mozilla/ContentHandler.cpp: - - Really cancel the download when the user told so. - - * lib/ephy-dialog.c: (setup_default_size), (ephy_dialog_run), - (ephy_dialog_init), (ephy_dialog_set_property), - (ephy_dialog_get_property), (ephy_dialog_class_init): - - Add default width/height properties. - -2004-01-25 Christian Persch - - * embed/mozilla/MozDownload.h: - - Include nsIMIMEInfo.h to fix compilation with mozilla 1.4. - -2004-01-25 Christian Persch - - * src/window-commands.c: (window_cmd_file_print_preview): - - Fix mem leak. - -2004-01-25 Christian Persch - - * src/ephy-history-window.c: (get_details_value): - - Fix mem leak. - -2004-01-25 Christian Persch - - * src/bookmarks/ephy-bookmarks-export.c: - (ephy_bookmarks_export_rdf): - - Fix mem leak. - -2004-01-25 Christian Persch - - * src/bookmarks/ephy-bookmarks-editor.c: (search_entry_search_cb), - (get_details_value): - - Fix mem leaks. - -2004-01-25 Christian Persch - - * lib/widgets/ephy-tree-model-node.c: - (ephy_tree_model_node_finalize): - - Fix mem leak. - -2004-01-25 Christian Persch - - * lib/widgets/ephy-node-view.c: (ephy_node_view_finalize): - - Fix mem leak. - -2004-01-25 Christian Persch - - * lib/ephy-node-filter.c: (ephy_node_filter_finalize), - (ephy_node_filter_new), (ephy_node_filter_add_expression): - - Fix mem leak. - -2004-01-25 Christian Persch - - * embed/ephy-history.c: (ephy_history_finalize): - - Fix mem leak. - -2004-01-25 David Bordoley - - * help/C/figures/ephy-screenshot.png: - - Update the screenshot to match the default toolbar layout. - -2004-01-25 Christian Persch - - * lib/ephy-node-db.c: (ephy_node_db_finalize): - - Fix mem leak. - -2004-01-25 Christian Persch - - * src/bookmarks/ephy-bookmarks-export.c: - (ephy_bookmarks_export_rdf): - - Fix mem leak. - -2004-01-25 Adam Hooper - - * lib/ephy-file-helpers.c: (ephy_file_tmp_dir): - - mkdtemp() modifies *template in-place. So it shouldn't be freed. - -2004-01-25 Christian Persch - - * src/ephy-tabs-menu.c: (tab_set_action_accelerator): - - Fix mem leak. - -2004-01-25 Christian Persch - - * src/ephy-session.c: (ephy_session_save): - - Fix mem leaks. - -2004-01-25 Christian Persch - - * lib/ephy-stock-icons.c: (ephy_stock_icons_init): - - Fix mem leaks. - -2004-01-25 Christian Persch - - * lib/ephy-file-helpers.c: (ephy_file_tmp_dir), - (ephy_file_tmp_filename): - - Fix mem leaks. - -2004-01-25 Christian Persch - - * lib/ephy-dialog.c: (set_value_from_pref), - (set_combo_box_from_value): - - Fix mem leaks. - -2004-01-25 Christian Persch - - * embed/mozilla/mozilla-notifiers.cpp: - - Fix mem leak. - -2004-01-25 Christian Persch - - * embed/ephy-favicon-cache.c: (remove_obsolete_icons): - - Fix mem leak. - -2004-01-25 Marco Pesenti Gritti - - * 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. - -2004-01-24 Christian Persch - - * src/window-commands.c: (window_cmd_help_about): - - Updated copyright date. - -2004-01-24 Christian Persch - - * src/ephy-tab.c: (ephy_tab_set_title): - - Double underscores, since otherwise the menu entry will - display them as accellerators. - -2004-01-24 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - - When checking forms for modifications, handle correctly - text entries with default value longer than maxlength. - Mozilla bug #232057. - -2004-01-24 David Bordoley - - * data/ui/epiphany-ui.xml: - * src/ephy-window.c: - - Add a hidden tools menu that extensions can use. - -2004-01-24 Adam Hooper - - * lib/ephy-string.c: - - Remove totally wrong comment before ephy_string_blank_chr () - -2004-01-24 Adam Hooper - - * lib/ephy-file-helpers.c: - * lib/ephy-file-helpers.h: - * src/window-commands.c: (save_temp_source): - - ephy_file_tmp_directory () now returns a const char * instead of char * - -2004-01-24 Marco Pesenti Gritti - - * configure.in: - - Prepare for 1.1.5 - - * lib/ephy-dialog.c: (setup_default_size): - - Fix a bug with dialog size persistance - -2004-01-24 Marco Pesenti Gritti - - * NEWS: - * configure.in: - - Prepare for 1.1.4 - - * embed/mozilla/ContentHandler.cpp: - - Fix Save As from download dialog - -2004-01-24 Christian Persch - - * src/prefs-dialog.c: (get_download_button_label): - - Fall back to Home directory when the pref is NULL. - -2004-01-24 Christian Persch - - * lib/ephy-file-chooser.c: (ephy_file_chooser_get_type), - (current_folder_changed_cb): - - Use our eel_gconf_set_path() function to persist the directory. - -2004-01-24 Marco Pesenti Gritti - - * 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. - -2004-01-23 Marco Pesenti Gritti - - * data/epiphany.schemas.in: - * lib/ephy-prefs.h: - * src/ephy-tab.c: (ephy_tab_dom_mouse_click_cb): - * src/popup-commands.c: (save_property_url): - - Sometimes reading gnomedesktop flames is useful: - - Do not use the same pref of 1.0 for the download dir. - Use a different key for Save Link As. - -2004-01-23 Christian Persch - - * embed/downloader-view.c: (downloader_view_build_ui): - * embed/find-dialog.c: (find_dialog_init): - * embed/mozilla/GtkNSSDialogs.cpp: - * embed/print-dialog.c: (ephy_print_dialog_new), - (ephy_print_setup_dialog_new): - * lib/ephy-dialog.c: (impl_construct), (ephy_dialog_construct): - * lib/ephy-dialog.h: - * lib/ephy-glade.c: (ephy_glade_widget_new): - * lib/ephy-glade.h: - * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_init): - * src/pdm-dialog.c: (pdm_dialog_init): - * src/prefs-dialog.c: (setup_add_language_dialog), - (prefs_dialog_init): - - Allow passing the translation domain to ephy_dialog_construct, - to make extension's dialogues translatable. Fix all callers. - -2004-01-23 Christian Persch - - * configure.in: - - We really depend on gtk+ >= 2.3.2. - -2004-01-23 Xan Lopez - - * embed/mozilla/MozDownload.cpp: - - Make Cancel safe against non active downloads. - -2004-01-23 Christian Persch - - * embed/ephy-embed.h: - * embed/mozilla/mozilla-embed.cpp: - * src/window-commands.c: (window_cmd_view_reload): - - Use both BYPASS_CACHE and BYPASS_PROXY on force-reload. - Unified the handling in mozilla-embed by introducing - EMBED_RELOAD_FORCE, and killed EMBED_RELOAD_BYPASS_[CACHE|PROXY] - since we now always use both together. - -2004-01-22 Christian Persch - - * embed/ephy-encodings.c: - - Delete UTF-7 from our list of known encodings, since no web page - should ever be in UTF-7. - -2004-01-22 Christian Persch - - * embed/mozilla/EventContext.cpp: - * src/ephy-tab.c: (address_has_web_scheme): - - data: urls can be opened in new tabs too. - -2004-01-22 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - - Work around a bug in mozilla where 0xa0 (NBSP) are converted to spaces, - so we think that the element is modified when in fact it's not. - (Thanks to Crispin). - -2004-01-22 Christopher James Lahey - - * lib/ephy-file-helpers.c, lib/ephy-file-helpers.h - (ephy_file_tmp_directory, ephy_file_delete_on_exit): New function - to get temp directory and moved ephy_shell_delete_on_exit to here. - - * lib/widgets/ephy-location-entry.c: Changed how this goes about - showing itself when hidden and activated. - - * src/ephy-shell.c, src/ephy-shell.h (ephy_shell_delete_on_exit): - Moved to ephy_file_delete_on_exit. - - * src/window-commands.c: Changed ephy_shell_delete_on_exit to - ephy_file_delete_on_exit. Used ephy_file_tmp_directory to save - source files for viewing in a directory that isn't world readable. - -2004-01-22 Marco Pesenti Gritti - - * data/epiphany-lockdown.schemas.in: - - Slightly better string for history disable. - -2004-01-22 Marco Pesenti Gritti - - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/ContentHandler.h: - - Set the parent of the dialogs. - - * src/ephy-window.c: - - Use Save Link As and correct icons. - -2004-01-21 Adam Hooper - - * embed/downloader-view.c: (downloader_view_build_ui): - * embed/find-dialog.c: (find_dialog_init): - * embed/mozilla/GtkNSSDialogs.cpp: - * embed/print-dialog.c: (ephy_print_dialog_new), - (ephy_print_setup_dialog_new): - * lib/ephy-glade.c: (ephy_glade_widget_new): - * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_init): - * src/pdm-dialog.c: (pdm_dialog_init): - * src/prefs-dialog.c: (setup_add_language_dialog), - (prefs_dialog_init): - - Explicitly call ephy_file () whenever specifying a Glade file. This - gives the ability to load a Glade file outside of SHARE_DIR (i.e., in - extensions). Fixes Bug #132018. - -2004-01-21 Marco Pesenti Gritti - - * embed/mozilla/ContentHandler.cpp: - - Destroy filepicker once it's done. I dunno - about much more bugs so please report now ;) - -2004-01-21 Christian Persch - - * src/bookmarks/ephy-bookmark-action.c: - (ephy_bookmark_action_get_type), - (ephy_bookmark_action_set_property), - (ephy_bookmark_action_get_property), - (ephy_bookmark_action_class_init): - - Set "tooltip" property on bookmark actions to the url. That way - we display it in the status bar with no extra steps taken. - -2004-01-21 Piers Cornwell - - * embed/downloader-view.c: (update_status_icon), - (downloader_view_remove_download): - - Use ngettext for number of downloads and remaining - minutes display in the tooltip of the tray icon. - -2004-01-21 Christian Persch - - * embed/mozilla/EventContext.cpp: - * src/ephy-tab.c: (address_has_web_scheme): - - about: can be opened in new tab too. - -2004-01-21 Christian Persch - - * embed/mozilla/mozilla-embed-single.cpp: - - Re-enable fonts language font filtering, fixes bug #128814 - -2004-01-19 Marco Pesenti Gritti - - * 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. - -2004-01-19 Christian Persch - - * NEWS: - - Merge from gnome-2-4 branch. - -2004-01-19 Marco Pesenti Gritti - - * 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 ~. - -2004-01-19 Marco Pesenti Gritti - - * data/epiphany.schemas.in: - * data/glade/prefs-dialog.glade: - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/ContentHandler.h: - * embed/mozilla/MozDownload.cpp: - * lib/ephy-prefs.h: - * src/prefs-dialog.c: (get_download_button_label): - - Change default dir to /home/Downloads. Show the - pref about warning on files downloading. Cleanup - warning dialogs a bit. - -2004-01-18 Christian Persch - - * lib/ephy-dialog.c: (ephy_dialog_hide): - * lib/ephy-dialog.h: - - Introduce ephy_dialog_hide(). - -2004-01-18 Christian Persch - - * embed/mozilla/mozilla-embed.cpp: - - We need to use do_QueryInterface to get from the - nsIDOM[Key|Mouse]Event to the nsIDOMEvent, not just - cast it. - -2004-01-17 Christian Persch - - * embed/mozilla/mozilla-embed.cpp: - * src/ephy-tab.c: (ephy_tab_init): - - Use g_signal_connect_object to connect the embed signals, - that way they're disconnected before the tab object is - finalised. Should fix crasher bug #131635. - -2004-01-16 - - * data/epiphany-lockdown.schemas.in: Typo fixes. - -2004-01-16 Christian Persch - - * src/prefs-dialog.c: (download_path_response_cb): - - Use gtk_file_chooser_get_filename() instead of - gtk_file_chooser_get_current_folder(). Fixes bug #131646. - -2004-01-16 Christian Persch - - * src/ephy-window.c: (menu_item_select_cb), - (menu_item_deselect_cb), (disconnect_proxy_cb), (connect_proxy_cb), - (setup_ui_manager), (ephy_window_init): - - Show help for menu items in the statusbar. - -2004-01-15 Christian Persch - - * embed/ephy-embed-event.c: (ephy_embed_event_get_type), - (ephy_embed_event_base_init), (ephy_embed_event_get_event_type), - (ephy_embed_event_get_context), (ephy_embed_event_get_modifier), - (ephy_embed_event_get_coords), (ephy_embed_event_get_property), - (ephy_embed_event_has_property), (ephy_embed_event_get_dom_event): - * embed/ephy-embed-event.h: - * embed/mozilla/EventContext.cpp: - * embed/mozilla/EventContext.h: - * embed/mozilla/Makefile.am: - * embed/mozilla/mozilla-embed-event.cpp: - * embed/mozilla/mozilla-embed-event.h: - * embed/mozilla/mozilla-embed.cpp: - * src/ephy-window.c: (popup_menu_at_coords): - * src/popup-commands.c: (popup_cmd_copy_link_address): - - Make EphyEmbedEvent abstract, implemented by MozillaEmbedEvent. - Port callers to the new api. - Fix some callers in src/ which were using private fields of - EphyEmbedEvent struct. - -2004-01-14 Xan Lopez - - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/ContentHandler.h: - - Let the user decide about what to do with automatic dialogs. - -2004-01-14 Christian Persch - - * embed/ephy-embed-persist.c: (ephy_embed_persist_to_string): - * embed/ephy-embed-persist.h: - * embed/mozilla/mozilla-embed-persist.cpp: - - Get the page content into a string. - -2004-01-13 Xan Lopez - - * embed/downloader-view.c: (status_icon_activated): - - Allow to show/hide downloader clicking on tray icon. - Fixes #131012. - -2004-01-13 Christian Persch - - * configure.in: - - Version 1.1.3. - -2004-01-13 Christian Persch - - * FEATURE FREEZE ! - - From now on, no commits are allowed which add new features. - -2004-01-12 Christian Persch - - * embed/downloader-view.c: (download_dialog_pause_cb): - - Add accelerator to Pause/Resume button. - -2004-01-12 Christian Persch - - * embed/ephy-history.c: (ephy_history_set_enabled), - (ephy_history_init): - - Default history to "enabled". - -2004-01-12 Christian Persch - - * embed/mozilla/EventContext.h: - * src/ephy-tab.c: (address_has_web_scheme): - - Forgot to commit those. - -2004-01-12 Christian Persch - - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/EventContext.cpp: - * embed/mozilla/EventContext.h: - * src/ephy-tab.c: (address_has_web_scheme): - * src/ephy-window.c: (show_embed_popup): - - Only allow "Open in New Tab/Window" for certain protocols. - -2004-01-10 Christian Persch - - * data/epiphany.xhtml: - - Verified the quote and put the original here. - -2004-01-10 Christian Persch - - * src/ephy-window.c: (update_exit_fullscreen_popup_position), - (ephy_window_fullscreen): - - Fix signal parameter, and add a NULL check. Fixes bug #131117, - patch by Martin Kretzschmar. - -2004-01-10 Christopher James Lahey - - * embed/mozilla/PrintingPromptService.cpp: - * lib/ephy-prefs.h: - * src/ephy-main.c: (main): - * src/ephy-window.c: (update_actions), (ephy_window_init), - (ephy_window_finalize), (ephy_window_print): - - Implement print and print setup disabling for lockdown mode. - -2004-01-10 Christian Persch - - * configure.in: - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EventContext.cpp: - - Adapt to the ever-changing mozilla API. - -2004-01-10 Christian Persch - - * embed/ephy-history.c: (ephy_history_get_type), - (ephy_history_set_enabled), (ephy_history_set_property), - (ephy_history_get_property), (ephy_history_class_init), - (page_removed_from_host_cb), (disable_history_notifier), - (ephy_history_init), (ephy_history_finalize), (ephy_history_new), - (ephy_history_get_host), (ephy_history_visited), - (ephy_history_add_page), (ephy_history_set_page_title), - (ephy_history_clear), (ephy_history_is_enabled): - * embed/ephy-history.h: - * lib/ephy-node-db.c: (ephy_node_db_get_property), - (ephy_node_db_set_property), (ephy_node_db_set_immutable): - * lib/ephy-node-db.h: - * lib/ephy-prefs.h: - * src/bookmarks/ephy-bookmarks.c: (clear_favorites), - (history_cleared_cb), (ephy_setup_history_notifiers): - - Implement history disabling. - -2004-01-09 Christopher James Lahey - - * data/epiphany-lockdown.schemas.in, lib/ephy-prefs.h: Added - disable_arbitrary_url, disable_toolbar_editing, and - disable_history keys. - - * src/ephy-automation.c (impl_ephy_automation_loadurl): Make this - ignore a url given on the command line if disable_arbitrary_url is - on. - - * src/ephy-notebook.c (notebook_drag_data_received_cb): Made this - ignore drags if disable_arbitrary_url is on. - - * src/ephy-session.c (ephy_session_load): Don't show history - window if disable_history is on. - - * src/ephy-tab.c (ephy_tab_dom_mouse_click_cb): Disable middle - click to paste url if disable_arbitrary_url is on. - - * src/ephy-window.c: Disable menu actions based on - disable_arbitrary_url, disable_toolbar_editing, and - disable_history keys. - -2004-01-10 Christian Persch - - * embed/mozilla/ContentHandler.cpp: - - Fix type to make it compile with MOZILLA_SNAPSHOT <= 11 again. - -2004-01-10 Christian Persch - - * src/ephy-notebook.c: (ephy_notebook_finalize): - - Call parent class' finalize. - -2004-01-10 Christian Persch - - * embed/mozilla/mozilla-embed-persist.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - - Use NS_ENSURE_SUCCESS/NS_ENSURE_TRUE at appropriate places. - -2004-01-10 Christian Persch - - * 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. - -2004-01-10 Christian Persch - - * embed/mozilla/ExternalProtocolHandlers.cpp: - - Use NS_ENSURE_SUCCESS/NS_ENSURE_TRUE at appropriate places. - -2004-01-10 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - - Use NS_ENSURE_SUCCESS/NS_ENSURE_TRUE at appropriate places. - -2004-01-10 Christian Persch - - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/ContentHandler.h: - - Use NS_ENSURE_SUCCESS/NS_ENSURE_TRUE at appropriate places. - -2004-01-10 Christian Persch - - * embed/mozilla/EphySingle.cpp: - - Use NS_ENSURE_SUCCESS/NS_ENSURE_TRUE at appropriate places instead of - silent "if (...) return ...;". - -2004-01-10 Christian Persch - - * embed/mozilla/EphyAboutRedirector.cpp: - * embed/mozilla/EphyAboutRedirector.h: - - Use NS_ENSURE_SUCCESS/NS_ENSURE_TRUE at appropriate places instead of - silent "if (...) return ...;". - Really kill "about:options". - -2004-01-10 Xan Lopez - - * data/ui/epiphany-ui.xml: - * src/ephy-window.c: - * src/popup-commands.c: (popup_cmd_download_link_as): - * src/popup-commands.h: - - Add "Download Link As" to the link context menu. - -2004-01-09 Christopher James Lahey - - * src/toolbar.c (update_location_editable): Check if embed is valid - here. - -2004-01-09 Christopher James Lahey - - * data/epiphany-lockdown.schemas.in, lib/ephy-prefs.h: Added - disable_bookmark_editing key. - - * lib/ephy-node-db.c, ephy-node-db.h, ephy-node.c: Added immutable - property. - - * lib/egg/egg-editable-toolbar.c (drag_data_received_cb, - toolbar_drag_motion_cb), src/ephy-toolbars-model.c - (impl_get_item_id): Made these handle immutable models/node_dbs. - - * src/ephy-automation.c, src/ephy-session.c: Don't show the - bookmark editor if disabled. - - * src/ephy-window.c: Disable a bunch of menus if bookmark editing - is disabled. - - * src/bookmarks/ephy-bookmarks-import.c, - src/bookmarks/ephy-bookmarks.c: Disable bookmark editing and - importing is key is set. Uses immutable property. - -2004-01-09 Christian Persch - - * data/epiphany.schemas.in: - * data/ui/epiphany-ui.xml: - * embed/ephy-embed-prefs.h: - * embed/mozilla/mozilla-notifiers.cpp: - * src/ephy-window.c: (ephy_window_finalize), - (browse_with_caret_notifier), (ephy_window_init): - * src/pdm-dialog.c: (show_cookies_properties): - * src/window-commands.c: (window_cmd_browse_with_caret): - * src/window-commands.h: - - Add an accellerator-only action (F7) to toggle caret browsing. Hook - up listener to set the mozilla pref, added the gconf key to the schema. - -2004-01-09 Roozbeh Pournader - - * lib/ephy-state.c: Fixed a logic error in using & instead of && - (bug #130919, Dave Jones). - -2004-01-08 Christopher James Lahey - - * embed/mozilla/ContentHandler.cpp (MIMEAskAction): Don't save the - file if disable_save_to_disk is on. - - * lib/ephy-prefs.h (CONF_DISABLE_SAVE_TO_DISK): Added this key here. - - * src/ephy-window.c (update_actions): Obey disable_save_to_disk. - Also, disable toggling view settings if their keys are locked. - -2004-01-06 Piers Cornwell - - * help/C/epiphany-C.omf - - Update help. - -2004-01-06 Christian Persch - - * src/ephy-encodings.c: (ephy_encodings_get_node): - - Add a comment for translators. - -2004-01-06 Christian Persch - - * src/ephy-encoding-menu.c: (update_encoding_menu_cb): - - Move "automatic" check back to where it was, since we now always have - a node for the encoding. - -2004-01-06 Christian Persch - - * Makefile.am: - * configure.in: - - Sigh, yet another intltool change. Remove OrigTree.pm from EXTRA_DIST, - and depend on intltool >= 0.29. - -2004-01-06 Christian Persch - - * embed/ephy-encodings.c: (add_encoding), - (ephy_encodings_get_node), (ephy_encodings_add_recent), - (ephy_encodings_get_recent), (ephy_encodings_init): - * embed/ephy-encodings.h: - * src/ephy-encoding-dialog.c: (sync_embed_cb): - * src/ephy-encoding-menu.c: (update_encoding_menu_cb), - (add_action), (ephy_encoding_menu_set_window): - * src/prefs-dialog.c: (create_node_combo): - - Behave better when the encoding used on the page is unknown to us. - Previously we skipped important steps in menu building, resulting in - incorrect encoding indicator. Now, we dynamically add an entry with - name "Unknown" to our menu. - - Also add back some rarely used encodings (us-ascii, UTF-16*, UTF-32*) - to our known encodings repertoire. - -2004-01-06 Christian Persch - - * src/ephy-encoding-menu.c: (update_encoding_menu_cb): - - Always set the "automatic" toggle button correctly, even if the encoding - wasn't found in our database - -2004-01-06 Mohammad DAMT - - * configure.in: Added "id" in ALL_LINGUAS - * po/id.po: Added Indonesian translation by - Tunggul Arif Siswoyo - -2004-01-06 Christian Persch - - * embed/mozilla/MozillaPrivate.cpp: - - Remove debug output leftover. - -2004-01-06 Christian Persch - - * embed/mozilla/MozillaPrivate.cpp: - * embed/mozilla/PrintingPromptService.cpp: - - Ensure that if the nsIDOMWindow provided is a frame inside an embed, - we get the top-level window and then get the embed from that. - Fixes bug #129028. - -2004-01-04 Christian Persch - - * src/window-commands.c: (window_cmd_help_about): - - Added spark to documenters tab. - -2004-01-04 Christian Persch - - * embed/print-dialog.c: (ephy_print_dialog_response_cb): - - Fix parent for help window. - -2004-01-04 Piers Cornwell - - * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_get_type), - (ephy_encoding_dialog_response_cb): - - Add help button to encodings dialogue. - -2004-01-04 Piers Cornwell - - * data/glade/certificate-dialogs.glade: - * data/glade/epiphany.glade: - * data/glade/print.glade: - * embed/mozilla/GtkNSSDialogs.cpp: - * embed/print-dialog.c: (ephy_print_dialog_response_cb), - (ephy_print_setup_dialog_help_button_cb): - * src/pdm-dialog.c: (pdm_dialog_show_help): - * src/prefs-dialog.c: (prefs_dialog_show_help): - - Add help buttons to Certificate Viewer, PDM, print and print setup - dialogues. - -2004-01-04 Christian Persch - - * src/ephy-window.c: (confirm_close_with_modified_forms): - - Daveb will hate me for this, but making the confirm dialogue only - window-modal will make menus not work after cancelling the close. - Removing this for the time being since it's a nasty regression, - until I find the bug. - -2004-01-04 Christian Persch - - * embed/ephy-embed.c: (ephy_embed_has_modified_forms): - * embed/ephy-embed.h: - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/mozilla-embed.cpp: - - Add API to check if an EphyEmbed has forms with user input in them. - Currently it required one modified textarea, or two modified text - fields. - - * src/ephy-notebook.c: (ephy_notebook_class_init), - (close_button_clicked_cb): - * src/ephy-notebook.h: - * src/ephy-window.c: (confirm_close_with_modified_forms), - (ephy_window_delete_event_cb), (tab_delete_cb), (setup_notebook), - (ephy_window_init), (ephy_window_remove_tab): - - When closing a window or tab, check if there is unsubmitted user - input in form fields, and if so, warn the user before closing. - Fixes bug #119857. - -2004-01-03 Michael Terry - - * data/ui/epiphany-ui.xml: - - Show copy text menu item also for links - - * src/ephy-window.c: (update_edit_actions_sensitivity), - (enable_edit_actions_sensitivity), (edit_menu_show_cb), - (edit_menu_hide_cb), (hide_embed_popup_cb), (show_embed_popup): - - Show copy text menu item only when there is actually selected - text. - -2004-01-03 Robert Sedak - - * configure.in: Added "hr" in ALL_LINGUAS. - -2004-01-02 Taneem Ahmed - - * configure.in: Added "bn" to ALL_LINGUAS. - -2004-01-01 Christian Persch - - * src/ephy-notebook.c: (notebook_drag_data_received_cb), - (ephy_notebook_insert_page), (ephy_notebook_remove_page): - * src/ephy-tab.c: (ephy_tab_for_embed), (ephy_tab_init): - * src/ephy-tab.h: - * src/ephy-tabs-menu.c: (tab_added_cb), (tab_removed_cb): - * src/ephy-window.c: (tab_context_menu_cb), (tab_added_cb), - (tab_removed_cb), (real_get_active_tab), (ephy_window_get_tabs): - - New API to get the EphyTab from an EphyEmbed. Port all users. - -2004-01-01 Christian Persch - - * embed/ephy-command-manager.c: (ephy_command_manager_get_type), - (ephy_command_manager_base_init), - (ephy_command_manager_do_command), - (ephy_command_manager_can_do_command): - * embed/ephy-command-manager.h: - * embed/ephy-cookie-manager.c: (ephy_cookie_manager_list_cookies), - (ephy_cookie_manager_remove_cookie), (ephy_cookie_manager_clear): - * embed/ephy-cookie-manager.h: - * embed/ephy-embed-dialog.h: - * embed/ephy-embed-shell.c: - * embed/ephy-embed-single.c: (ephy_embed_single_get_type), - (ephy_embed_single_iface_init), (ephy_embed_single_clear_cache), - (ephy_embed_single_clear_auth_cache), - (ephy_embed_single_set_offline_mode), - (ephy_embed_single_load_proxy_autoconf), - (ephy_embed_single_get_font_list): - * embed/ephy-embed-single.h: - * embed/ephy-embed.c: (ephy_embed_get_type), - (ephy_embed_base_init), (ephy_embed_load_url), - (ephy_embed_stop_load), (ephy_embed_can_go_back), - (ephy_embed_can_go_forward), (ephy_embed_can_go_up), - (ephy_embed_get_go_up_list), (ephy_embed_go_back), - (ephy_embed_go_forward), (ephy_embed_go_up), - (ephy_embed_get_title), (ephy_embed_get_location), - (ephy_embed_get_link_message), (ephy_embed_get_js_status), - (ephy_embed_reload), (ephy_embed_zoom_set), (ephy_embed_zoom_get), - (ephy_embed_shistory_n_items), (ephy_embed_shistory_get_nth), - (ephy_embed_shistory_get_pos), (ephy_embed_shistory_go_nth), - (ephy_embed_get_security_level), (ephy_embed_find_set_properties), - (ephy_embed_find_next), (ephy_embed_activate), - (ephy_embed_set_encoding), (ephy_embed_get_encoding_info), - (ephy_embed_print), (ephy_embed_print_preview_close), - (ephy_embed_print_preview_n_pages), - (ephy_embed_print_preview_navigate): - * embed/ephy-embed.h: - * embed/ephy-password-manager.h: - * embed/ephy-permission-manager.h: - * embed/mozilla/PrintingPromptService.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - * embed/mozilla/mozilla-embed-single.h: - * embed/mozilla/mozilla-embed.cpp: - - Unify interface struct and type macro naming to be EphyFooIFace, - EPHY_FOO_IFACE, EPHY_IS_FOO_IFACE, EPHY_FOO_GET_IFACE. - -2004-01-01 Christian Persch - - * embed/ephy-embed-prefs.h: - * embed/mozilla/mozilla-notifiers.cpp: - - Remove default font notifier, it's been obsoleted by the fonts rewrite. - -2004-01-01 Christian Persch - - * embed/mozilla/mozilla-notifiers.cpp: - - Set socks prefs from gconf too. - -2004-01-01 Roozbeh Pournader - - * configure.in: Added "fa" (Persian) to ALL_LINGUAS. - -2003-12-31 Christian Persch - - * embed/mozilla/MozDownload.cpp: - * embed/print-dialog.c: (ephy_print_get_print_info): - - Fix mem leaks. - -2003-12-30 Christian Persch - - * embed/mozilla/MozDownload.cpp: - * embed/mozilla/MozDownload.h: - - Adjust includes to make it compile with mozila 1.4. - -2003-12-30 Christian Persch - - * embed/ephy-embed-single.c: (ephy_embed_single_clear_auth_cache): - * embed/ephy-embed-single.h: - * embed/mozilla/mozilla-embed-single.cpp: - - Add API to EphyEmbedSingle to clear the HTTP authentication cache. - -2003-12-29 Christian Persch - - * embed/ephy-embed-shell.c: (ephy_embed_shell_get_favicon_cache), - (ephy_embed_shell_get_global_history), - (ephy_embed_shell_get_downloader_view), - (ephy_embed_shell_get_embed_single), - (ephy_embed_shell_get_encodings), (ephy_embed_shell_check_mime), - (ephy_embed_shell_class_init): - * embed/ephy-embed-shell.h: - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/GlobalHistory.cpp: - * embed/mozilla/mozilla-notifiers.cpp: - * src/bookmarks/ephy-bookmarks.c: (compute_lower_fav), - (ephy_setup_history_notifiers): - * src/ephy-completion-model.c: (ephy_completion_model_init): - * src/ephy-shell.c: (ephy_shell_get_history_window): - * src/ephy-tab.c: (ephy_tab_set_icon_address), - (ephy_tab_address_cb), (ephy_tab_zoom_changed_cb): - * src/ephy-toolbars-model.c: (impl_get_item_id): - * src/prefs-dialog.c: (setup_font_combo), - (prefs_clear_cache_button_clicked_cb): - - Unified return type of ephy_embed_shell_get_X to be GObject *. - Fixed all callers. - -2003-12-28 Christian Persch - - * Makefile.am: - - Added OrigTree.pm to EXTRA_DIST. - -2003-12-28 Marco Pesenti Gritti - - * NEWS: - * configure.in: - - Update for 1.1.2 - -2003-12-27 Christian Persch - - * lib/egg/egg-editable-toolbar.c: (find_action), - (drag_data_delete_cb), (drag_data_get_cb), - (egg_editable_toolbar_set_model), (egg_editable_toolbar_set_merge), - (egg_editable_toolbar_class_init), (egg_editable_toolbar_init), - (egg_editable_toolbar_finalize), (egg_editable_toolbar_new): - * lib/egg/egg-editable-toolbar.h: - * lib/egg/egg-toolbar-editor.c: (find_action), - (egg_toolbar_editor_set_merge), (egg_toolbar_editor_set_model), - (egg_toolbar_editor_class_init), (egg_toolbar_editor_finalize), - (egg_toolbar_editor_new), (editor_drag_data_received_cb), - (editor_drag_data_delete_cb), (update_editor_sheet), - (setup_editor), (egg_toolbar_editor_init): - * lib/egg/egg-toolbar-editor.h: - * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_to_xml), - (egg_toolbars_model_save), (egg_toolbars_model_add_separator), - (impl_add_item), (egg_toolbars_model_add_toolbar), - (egg_toolbars_model_load), (egg_toolbars_model_class_init), - (egg_toolbars_model_init), (egg_toolbars_model_finalize), - (egg_toolbars_model_new), (egg_toolbars_model_remove_toolbar), - (egg_toolbars_model_remove_item): - * lib/egg/egg-toolbars-model.h: - - Brought type macros in line with the rest of libegg; and use - gobject instance private data. - - * src/ephy-toolbars-model.c: (ephy_toolbars_model_get_type), - (update_toolbar_removeable_flag), - (ephy_toolbars_model_set_bookmarks), (toolbar_added), - (toolbar_removed), (ephy_toolbars_model_new), - (ephy_toolbars_model_has_bookmark): - * src/ephy-toolbars-model.h: - * src/toolbar.c: (toolbar_get_type), (init_normal_mode): - - Fix crasher bug #129991. - -2003-12-26 Christian Persch - - * src/prefs-dialog.c: (prefs_dialog_finalize), - (prefs_download_path_button_clicked_cb): - - One download directory chooser is enough. - -2003-12-25 Christian Persch - - * src/ephy-window.h: - * src/toolbar.h: - - Move Toolbar struct decl to toolbar.h. - -2003-12-25 Christian Persch - - * src/ephy-window.c: (ephy_window_get_toolbar), - (ephy_window_set_zoom): - * src/ephy-window.h: - * src/window-commands.c: (window_cmd_edit_toolbar), - (window_cmd_load_location): - - Bring ephy_window_get_toolbar signature in line with - ephy_window_get_[statusbar|notebook]. - -2003-12-24 Christian Persch - - * embed/mozilla/EventContext.cpp: - - GDK_Meta_L is a keycode, not a modifier code. - Map meta to GDK_MOD2_MASK. - -2003-12-23 David Bordoley - - * help/C/epiphany.xml: - - Updated printing docs from spark. GET A CVS ACCOUNT! - *hint*hint* - patch from Piers Cornwell - -2003-12-22 Christian Persch - - * embed/ephy-encodings.c: (ephy_encodings_add_recent): - - Fix mem leak. (Found by Crispin.) - -2003-12-22 Marco Pesenti Gritti - - * embed/mozilla/MozDownload.cpp: - * embed/mozilla/MozDownload.h: - - Correctly cancel the download instead of just - cancelling the request. - -2003-12-21 Xan Lopez - - * 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. - -2003-12-21 Christian Persch - - * embed/mozilla/GtkNSSClientAuthDialogs.cpp: - - Sync with galeon. - -2003-12-21 Christian Persch - - * data/glade/epiphany.glade: (encoding_dialog): - - Change mnemonic. - -2003-12-20 Marco Pesenti Gritti - - * src/epiphany.in: - - Do not try to pickup already set MOZILLA_FIVE_HOME, - hopefully fix crashes oepning links from thunderbird - -2003-12-20 Christian Persch - - * embed/mozilla/EphyAboutRedirector.cpp: - - Get rid of about:options. - -2003-12-20 Christian Neumair - - * src/prefs-dialog.c: (get_download_button_label): - - Set the download folder selection label to "Home" if download folder - is home folder (#129737). - -2003-12-20 Christian Persch - - * lib/ephy-gui.c: (ephy_gui_menu_position_under_widget): - - Fix popup coordinates in RTL mode. - -2003-12-20 Christian Persch - - * data/glade/prefs-dialog.glade: (add_language_dialog): - - Set the label's mnemonic widget. - -2003-12-19 Christian Persch - - * src/ephy-navigation-action.c: (ephy_navigation_action_get_type), - (new_history_menu_item), (setup_back_or_forward_menu), - (setup_up_menu): - - Use favicons in the back/forward menus. - -2003-12-19 Christian Persch - - * configure.in: - - Prepare for mozilla 1.6final and 1.7a. - -2003-12-19 Christian Persch - - * src/ephy-encoding-dialog.c: (sync_embed_cb): - * src/ephy-encoding-menu.c: (update_encoding_menu_cb): - - Use return, not g_return_if_fail. - -2003-12-19 Christian Persch - - * embed/print-dialog.c: (ephy_print_dialog_browse_button_cb): - - EphyFileChooser now destroys with parent, don't set the flag again here. - -2003-12-19 Christian Persch - - * lib/ephy-file-chooser.c: (ephy_file_chooser_new): - - Destroy file chooser with its parent window; fixes crashes. - -2003-12-19 Christian Persch - - * src/ephy-tab.c: (ephy_tab_dom_mouse_click_cb): - - Improve comment. - - * src/ephy-window.c: (setup_ui_manager), (setup_notebook), - (ephy_window_init): - - Only show the toolbar after the extensions have been attached - to the window. - -2003-12-19 Christian Persch - - * src/prefs-dialog.c: (add_lang_dialog_response_cb): - - Remove debug output leftovers. - -2003-12-18 Christian Persch - - * data/glade/prefs-dialog.glade: - * embed/mozilla/mozilla-notifiers.cpp: - * src/Makefile.am: - * src/language-editor.c: - * src/language-editor.h: - * src/prefs-dialog.c: (prefs_dialog_finalize), - (prefs_dialog_class_init), (language_editor_add), - (language_editor_update_pref), (language_editor_update_buttons), - (add_lang_dialog_response_cb), (setup_add_language_dialog), - (language_editor_add_button_clicked_cb), - (language_editor_remove_button_clicked_cb), - (language_editor_up_button_clicked_cb), - (language_editor_down_button_clicked_cb), - (language_editor_treeview_drag_end_cb), - (language_editor_selection_changed_cb), (create_language_section), - (prefs_dialog_init): - - In-line the language editor in the prefs dialogue. - -2003-12-18 Christian Persch - - * embed/ephy-encodings.c: (ephy_encoding_info_is_automatic): - * embed/ephy-encodings.h: - * src/ephy-encoding-dialog.c: (sync_embed_cb): - * src/ephy-encoding-menu.c: (update_encoding_menu_cb): - - Factor out the common encoding is_automatic check. - -2003-12-17 Christian Persch - - * src/ephy-tab.c: (ephy_tab_dom_mouse_click_cb): - - Don't try to save the submit button image instead of submitting - the form. [Found by xan.] - -2003-12-16 Christian Persch - - * lib/widgets/ephy-location-entry.c: (completion_func): - - Fix more mem leaks. - -2003-12-16 Christian Persch - - * lib/widgets/ephy-location-entry.c: (completion_func): - - Fix mem leak. (Found by synap.) - -2003-12-16 Marco Pesenti Gritti - - * embed/ephy-encodings.c: (ephy_encodings_get_encodings): - * embed/ephy-favicon-cache.c: (icons_added_cb), (icons_removed_cb), - (remove_obsolete_icons), (ephy_favicon_cache_init), - (kill_download), (ephy_favicon_cache_finalize), - (ephy_favicon_cache_get): - * embed/ephy-history.c: (remove_obsolete_pages), (hosts_added_cb), - (hosts_removed_cb), (pages_added_cb), (pages_removed_cb), - (update_host_on_child_remove), (update_hosts), (ephy_history_init), - (ephy_history_finalize), (ephy_history_get_host), - (ephy_history_get_page): - * lib/Makefile.am: - * lib/ephy-node-db.c: (ephy_node_db_init), (ephy_node_db_finalize), - (ephy_node_db_get_node_from_id), (_ephy_node_db_new_id), - (_ephy_node_db_add_id), (_ephy_node_db_remove_id), - (ephy_node_db_write_to_xml_valist): - * lib/ephy-node-filter.c: (ephy_node_filter_expression_evaluate): - * lib/ephy-node.c: (ephy_node_finalize), (real_remove_child), - (remove_child), (ephy_node_dispose), (ephy_node_new_with_id), - (ephy_node_get_id), (ephy_node_ref), (ephy_node_unref), - (child_changed), (ephy_node_set_property), - (ephy_node_get_property), (ephy_node_get_property_string), - (ephy_node_get_property_boolean), (ephy_node_get_property_long), - (ephy_node_get_property_int), (ephy_node_get_property_double), - (ephy_node_get_property_float), (ephy_node_get_property_node), - (write_parent), (ephy_node_write_to_xml), (ephy_node_add_child), - (ephy_node_remove_child), (ephy_node_has_child), - (ephy_node_sort_children), (ephy_node_reorder_children), - (ephy_node_get_children), (ephy_node_get_n_children), - (ephy_node_get_nth_child), (ephy_node_get_child_index), - (ephy_node_get_next_child), (ephy_node_get_previous_child): - * lib/ephy-node.h: - * lib/ephy-state.c: (find_by_name): - * lib/ephy-thread-helpers.c: - * lib/ephy-thread-helpers.h: - * lib/widgets/ephy-search-entry.c: (ephy_search_entry_timeout_cb): - * lib/widgets/ephy-tree-model-node.c: (filter_changed_cb): - * src/bookmarks/ephy-bookmarks-editor.c: (search_entry_search_cb): - * src/bookmarks/ephy-bookmarks-export.c: (write_topics_list), - (ephy_bookmarks_export_rdf): - * src/bookmarks/ephy-bookmarks-menu.c: (add_bookmarks_menu), - (ephy_bookmarks_menu_rebuild): - * src/bookmarks/ephy-bookmarks.c: (compute_lower_fav), - (get_topics_list), (topics_removed_cb), - (ephy_bookmarks_find_bookmark), (ephy_bookmarks_find_keyword): - * src/bookmarks/ephy-topic-action.c: (append_bookmarks_menu), - (build_topics_menu): - * src/bookmarks/ephy-topics-selector.c: (fill_model): - * src/ephy-favorites-menu.c: (ephy_favorites_menu_rebuild): - * src/ephy-history-window.c: (setup_filters): - * src/ephy-location-action.c: (init_actions_list): - * src/ephy-main.c: (main): - - No need to make our life hard being thread safe when we - never use that code in a thread. - -2003-12-15 Christian Persch - - * src/Makefile.am: - - Don't install statusbar.h. - -2003-12-15 Christian Persch - - * src/ephy-extension.c: (ephy_extension_get_type): - - Fix silly type flags. - -2003-12-15 Christian Persch - - * lib/widgets/ephy-zoom-action.c: (connect_proxy): - - Don't use deprecated macro. - -2003-12-14 Christian Persch - - * src/ephy-nautilus-view.c: (ephy_nautilus_view_finalize), - (gnv_cmd_select_encoding), (gnv_cmd_file_print), - (gnv_cmd_edit_find): - - Fix mem leaks. - Fix a crash when finalizing a nautilus view after having - used the find dialogue. - -2003-12-13 Christian Persch - - * src/bookmarks/ephy-bookmarks-import.c: - (ephy_bookmarks_import_mozilla): - - Better way of mapping hierarchy to topics when importing - bookmarks from mozilla. Fixes bug #124145. - -2003-12-13 Christian Persch - - * lib/ephy-string.c: (ephy_string_shorten), (ephy_string_to_int), - (ephy_string_blank_chr), (ephy_string_elide_underscores), - (ephy_string_double_underscores): - * lib/ephy-string.h: - * src/ephy-tab.c: (ephy_tab_set_link_message): - - Convert control chars to blanks. - -2003-12-13 Christian Persch - - * embed/print-dialog.c: (ephy_print_setup_dialog_new): - * lib/ephy-stock-icons.c: (ephy_stock_icons_init): - * lib/ephy-stock-icons.h: - * src/ephy-window.c: - - Use stock icon for print setup. - -2003-12-13 Christian Persch - - * lib/widgets/ephy-spinner.c: (ephy_spinner_init): - - Use g_signal_connect_object so the signal isn't emitted for a dead - spinner. - -2003-12-13 Marco Pesenti Gritti - - * src/ephy-tab.c: (update_net_state_message), - (ephy_tab_net_state_cb): - - Rework progress message building a bit to deal - with the new NULL == clear behavior - -2003-12-13 Marco Pesenti Gritti - Adam Hooper - - * src/ephy-tab.c: (ephy_tab_set_link_message), - (build_net_state_message), (ephy_tab_net_state_cb), - (ephy_tab_init), (ephy_tab_get_status_message): - * src/ephy-window.c: (sync_tab_message), (ephy_window_init): - * src/statusbar.c: (statusbar_set_progress): - * src/statusbar.h: - -2003-12-12 Christian Persch - - * embed/ephy-permission-manager.c: (ephy_permission_info_new), - (ephy_permission_info_copy), (ephy_permission_manager_add): - * embed/ephy-permission-manager.h: - * embed/mozilla/EphySingle.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - - Fix permission return types. - -2003-12-10 Christian Persch - - * data/glade/print.glade: - - Make print dialogue spacing HIG-compliant. - - * src/ephy-tabs-menu.c: (tab_set_action_accelerator), - (ephy_tabs_menu_update): - - Restore tabs menu shortcut keys ALT-1 .. ALT-0 for the first - ten tabs; they somehow got lost in the Egg->Gtk port. - -2003-12-09 Marco Pesenti Gritti - - * data/epiphany.schemas.in: - - Default history to show only title - -2003-12-09 Adam Hooper - - * embed/ephy-embed.c: (ephy_embed_base_init): - * embed/ephy-embed.h: - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/Makefile.am: - - Move events code inside EphyBrowser.cpp and - add an event for blocked popup. - - * embed/ephy-permission-manager.c: - - Some more docs - - * src/Makefile.am: - * src/ephy-window.c: (ephy_window_get_statusbar): - * src/ephy-window.h: - - Add a way to access the statusbar for plugins - -2003-12-09 Jorn Baayen - - * lib/egg/egg-editable-toolbar.c: (set_item_drag_source): - * lib/egg/egg-toolbar-editor.c: (compare_func), (sort_list), - (editor_drag_data_received_cb), (editor_drag_data_delete_cb), - (editor_create_item), (update_editor_sheet), - (egg_toolbar_editor_add_action), (egg_toolbar_editor_load_actions): - * src/toolbar.c: (toolbar_setup_actions): - - Make toolbar editing drag icons use the same icon size as the - actual toolbar icons; sort actions in the toolbar editor; give - the zoom action a zoom icon. - -2003-12-09 Marco Pesenti Gritti - - * autogen.sh: - - depend on automake 1.7, it seem it's needed by - the deprecates code. - -2003-12-09 Christian Persch - - * lib/widgets/ephy-spinner.c: (ephy_spinner_get_type), - (ephy_spinner_new), (get_spinner_dimensions), (ephy_spinner_init), - (select_spinner_image), (ephy_spinner_expose), - (bump_spinner_frame), (ephy_spinner_start), - (ephy_spinner_remove_update_callback), (ephy_spinner_stop), - (ephy_spinner_unload_images), (scale_to_real_size), - (extract_frame), (ephy_spinner_load_images), - (ephy_spinner_set_small_mode): - - Reformatted to conform to epiphany coding style. - Fix some error condition checks, and initialise variables. - -2003-12-09 Christian Persch - - * data/glade/prefs-dialog.glade: - * embed/print-dialog.c: (ephy_print_dialog_new): - * src/prefs-dialog.c: (create_language_menu), - (create_download_path_label), (prefs_dialog_init): - - Lockdown: set some buttons insensitive when their - pref key is not writable. - - * src/prefs-dialog.c: (download_path_response_cb): - - Convert filename to utf8 first. - -2003-12-09 Christian Persch - - * configure.in: - - Bump gtk+ and glib dependencies to 2.3.1. - -2003-12-08 Christian Persch - - * src/prefs-dialog.c: (setup_font_combo), - (create_fonts_language_menu), (create_node_combo), - (create_language_menu): - - Sort the list of fonts alphabetically. - - Fix a bunch of mem leaks. - -2003-12-08 Christian Persch - - * embed/ephy-embed-shell.c: (load_mime_from_xml): - - Don't use g_return_if_fail for run-time error conditions. - -2003-12-08 Christian Persch - - * src/ephy-tab.c: (save_property_url), - (ephy_tab_dom_mouse_click_cb): - - Make ctrl-click equivalent of middle click on links. Make shift-click - save the link. Fixes bug #110786. - - * src/ephy-window.c: (tab_context_menu_cb): - - Fix context_menu function return value type. - -2003-12-07 Marco Pesenti Gritti - - * Makefile.am: - * NEWS: - * configure.in: - - Update for 1.1.1 - -2003-12-07 Christian Persch - - * data/glade/print.glade: - * data/ui/epiphany-ui.xml: - * embed/mozilla/PrintingPromptService.cpp: - * embed/mozilla/mozilla-embed.cpp: - * embed/print-dialog.c: (ephy_print_info_free), - (ephy_print_get_print_info), (ephy_print_dialog_response_cb), - (print_filechooser_response_cb), - (ephy_print_dialog_browse_button_cb), - (ephy_print_setup_dialog_close_button_cb), (ephy_print_dialog_new), - (ephy_print_setup_dialog_new): - * embed/print-dialog.h: - * src/ephy-nautilus-view.c: (ephy_nautilus_view_new_component), - (gnv_cmd_file_print): - * src/ephy-nautilus-view.h: - * src/ephy-shell.c: (ephy_shell_get_type), (ephy_shell_class_init), - (ephy_automation_factory_cb), (ephy_automation_factory_new), - (ephy_shell_init), (server_timeout), (ephy_shell_startup), - (ephy_shell_finalize), (ephy_shell_new_tab), - (ephy_shell_get_session), (ephy_shell_get_bookmarks), - (ephy_shell_get_toolbars_model), (ephy_shell_get_bookmarks_editor), - (ephy_shell_get_history_window), - (ephy_shell_get_print_setup_dialog), (ephy_shell_delete_on_exit): - * src/ephy-shell.h: - * src/ephy-window.c: (ephy_window_set_print_preview), - (ephy_window_print): - * src/ephy-window.h: - * src/window-commands.c: (window_cmd_file_print_setup), - (window_cmd_file_print_preview): - * src/window-commands.h: - - Split print dialogue in print setup and actual print, and move - print preview into the menus too. Made print setup a global dialogue, - print a per-window dialogue. - - * lib/ephy-dialog.c: (set_value_from_pref), (set_pref_from_value), - (set_value_from_combobox), (set_combo_box_from_value), - (set_radiobuttongroup_from_value), (set_pref_from_info_and_emit), - (togglebutton_clicked_cb), (radiobutton_clicked_cb), - (spinbutton_timeout_cb), (changed_cb), (init_props), (load_info), - (save_info), (impl_show), (ephy_dialog_set_size_group), - (ephy_dialog_construct), (run_response_cb), (ephy_dialog_run), - (ephy_dialog_set_parent), (ephy_dialog_class_init), - (ephy_dialog_new_with_parent): - * lib/ephy-dialog.h: - * src/language-editor.c: (language_editor_class_init): - * src/language-editor.h: - * src/pdm-dialog.c: (pdm_dialog_init): - * src/prefs-dialog.c: (fonts_language_changed_cb), - (create_fonts_language_menu), (prefs_dialog_init), - (prefs_language_more_button_clicked_cb): - - Slight api change; port callers. - -2003-12-02 David Bordoley - - * help/C/epiphany.xml: - - New Securing and snake oil certificates section :P - New keybindings section. Update the prefs section - and download section to match actual ui - patch from Piers Cornwell - -2003-12-06 Christian Persch - - * embed/mozilla/mozilla-embed-single.cpp: - - Fix a mem leak (ported from galeon). - -2003-12-06 Christian Persch - - * embed/ephy-embed-shell.c: (ephy_embed_shell_get_type), - (ephy_embed_shell_finalize), (ephy_embed_shell_get_favicon_cache), - (ephy_embed_shell_get_global_history), - (ephy_embed_shell_get_downloader_view), (load_mime_from_xml), - (ephy_embed_shell_init), (ephy_embed_shell_class_init): - * embed/ephy-embed-shell.h: - * embed/ephy-embed.c: (ephy_embed_base_init): - * embed/ephy-embed.h: - * src/ephy-tab.c: (ephy_tab_init): - - Misc cleanups. Remove a duplicated signal from EphyEmbed. - -2003-12-05 Christian Persch - - * lib/ephy-state.c: (sync_expander_cb), (ephy_state_add_expander): - - Use notify::expanded to persist expander state. Bug found by Crispin. - -2003-12-05 Christian Persch - - * embed/mozilla/GtkNSSClientAuthDialog.cpp: - - Remove unused variable. - -2003-12-05 Christian Persch - - * embed/mozilla/GtkNSSClientAuthDialogs.cpp: - - Remove unneccessary _() call. - -2003-12-04 Christian Persch - - * embed/mozilla/EphyBrowser.cpp: - - Add some missing NULL checks. - -2003-12-03 Christian Persch - - * lib/widgets/ephy-spinner.c: - - Remove unused includes. - -2003-12-03 Christian Persch - - * embed/mozilla/Makefile.am: - - Epiphany is now 100% fat-free.... err... free of - deprecated widgets. Add -DGTK_DISABLE_DEPRECATED - flag back again when in maintainer mode. - -2003-12-03 Christian Persch - - * embed/mozilla/GtkNSSClientAuthDialogs.cpp: - - Port from optionmenu to new GtkComboBox. - -2003-12-03 Christian Persch - - * embed/mozilla/GtkNSSDialogs.cpp: - * src/pdm-dialog.c: (show_cookies_properties): - - Fix strftime(3) usage. - -2003-12-03 Christian Persch - - * src/pdm-dialog.c: (pdm_cmd_delete_selection), (compare_cookies): - - Fix two crashers. - -2003-12-03 Piers Cornwell - - * src/pdm-dialog.c: (show_cookies_properties): - - Improve cookie properties dialogue for bug #125498. - -2003-12-02 Christian Persch - - * lib/ephy-dialog.c: (set_info_from_pref): - - Set sensitivity from gconf key writability, and do it right. - -2003-12-02 David Bordoley - - * help/C/epiphany.xml: - - More cleanups. Added prefs section and downloader - section. Still needs work to be brought 100% - up2date. - patch from Piers Cornwell - -2003-12-02 Christian Persch - - * embed/mozilla/mozilla-notifiers.cpp: - - Add /system/http_proxy to list of directories to monitor. - -2003-12-02 Xan Lopez - - * data/mime-types-permissions.xml: - - Move quite a lot of things from unsafe to safe, still some to go. - -2003-12-01 Marco Pesenti Gritti - - * src/ephy-shell.c: (ephy_shell_get_history_window): - - pass the shell to the callbacks as expected. Fix warnings. - -2003-12-01 Marco Pesenti Gritti - - * embed/mozilla/mozilla-embed.cpp: - - Handle case of get_location on an unrealized widget - -2003-11-30 Christian Persch - - * src/window-commands.c: - - Update my email address. - -2003-11-30 Christian Persch - - * src/language-editor.c: (language_editor_add): - - Fix mem leak introduced by last commit. - -2003-11-30 Christian Persch - - * lib/ephy-dialog.c: - - Remove gtkoptionmenu.h include. - - * src/language-editor.c: (language_editor_add): - * src/prefs-dialog.c: (create_language_menu): - - Make languages list unique; don't allow to add an entry - already in the list. - -2003-11-30 Marco Pesenti Gritti - - * embed/Makefile.am: - * lib/Makefile.am: - * lib/widgets/Makefile.am: - * src/Makefile.am: - * src/bookmarks/Makefile.am: - - Readd gtk deprecates (only in maintainer mode). - - * src/ephy-location-action.c: (sync_editable): - - Use not deprecated api. - - * lib/ephy-dialog.c: (set_value_from_info), (set_info_from_value), - (connect_signals), (init_props): - - Remove optionmenu deprecated control. - -2003-11-30 Christian Persch - - * data/epiphany-lockdown.schemas.in: - - Added disable_unsafe_protocols and additional_safe_protocols keys. - -2003-11-30 Christian Persch - - * configure.in: - * data/glade/epiphany.glade: - * data/glade/prefs-dialog.glade: - * embed/downloader-view.c: (downloader_view_build_ui): - * embed/ephy-embed-dialog.c: (ephy_embed_dialog_new_with_parent): - * embed/ephy-encodings.c: (ephy_encodings_get_detectors): - * embed/ephy-encodings.h: - * embed/find-dialog.c: (update_navigation_controls), - (set_properties), (impl_show), (find_dialog_class_init), - (find_dialog_init), (find_dialog_new_with_parent): - * embed/print-dialog.c: (impl_show), (print_dialog_init), - (print_dialog_new_with_parent), (print_get_info): - * lib/ephy-dialog.c: (ephy_dialog_get_type), (lookup_info), - (set_sensitivity), (set_value_from_pref), (set_pref_from_value), - (set_value_from_editable), (set_value_from_optionmenu), - (set_value_from_combobox), (get_radio_button_active_index), - (set_value_from_radiobuttongroup), (set_value_from_spin_button), - (set_value_from_togglebutton), (set_value_from_info), - (set_editable_from_value), (get_index_from_value), - (set_optionmenu_from_value), (compare_values), - (set_combo_box_from_value), (set_radiobuttongroup_from_value), - (set_spin_button_from_value), (set_togglebutton_from_value), - (set_info_from_value), (set_pref_from_info), - (togglebutton_clicked_cb), (radiobutton_clicked_cb), - (spinbutton_timeout_cb), (spinbutton_changed_cb), (changed_cb), - (set_info_from_pref), (connect_signals), (disconnect_signals), - (init_props), (load_info), (save_info), (setup_default_size), - (dialog_destroy_cb), (impl_construct), (impl_show), - (ephy_dialog_set_modal), (ephy_dialog_add_enum), - (ephy_dialog_set_data_column), (ephy_dialog_set_pref), - (ephy_dialog_set_size_group), (ephy_dialog_construct), - (ephy_dialog_show), (ephy_dialog_run), (ephy_dialog_get_control), - (ephy_dialog_get_value), (ephy_dialog_set_value), (free_prop_info), - (ephy_dialog_init), (ephy_dialog_dispose), (ephy_dialog_finalize), - (ephy_dialog_set_parent), (ephy_dialog_set_property), - (ephy_dialog_get_property), (ephy_dialog_class_init), - (ephy_dialog_new), (ephy_dialog_new_with_parent): - * lib/ephy-dialog.h: - * lib/ephy-file-chooser.c: (ephy_file_chooser_new): - * src/ephy-encoding-dialog.c: (sync_embed_cb), - (sync_parent_window_cb), (activate_choice), - (view_node_selected_cb), (view_node_activated_cb), - (ephy_encoding_dialog_init), (ephy_encoding_dialog_new): - * src/ephy-shell.c: (ephy_shell_finalize), - (ephy_shell_get_pdm_dialog), (ephy_shell_get_prefs_dialog): - * src/ephy-shell.h: - * src/language-editor.c: (language_editor_get_type), - (language_editor_class_init), (language_editor_update_pref), - (language_editor_add_button_clicked_cb), - (language_editor_set_view), (language_editor_init), - (language_editor_new), (language_editor_set_model), - (language_editor_add): - * src/language-editor.h: - * src/pdm-dialog.c: (pdm_dialog_show_help), - (action_treeview_selection_changed_cb), (setup_action), - (cookies_treeview_selection_changed_cb), - (pdm_dialog_cookies_construct), (pdm_dialog_passwords_construct), - (pdm_dialog_init), (show_cookies_properties): - * src/prefs-dialog.c: (prefs_dialog_get_type), - (prefs_dialog_class_init), (prefs_dialog_show_help), - (setup_font_combo), (fonts_language_combo_changed_cb), - (create_fonts_language_menu), (create_node_combo), - (language_combo_changed_cb), (create_language_menu), - (get_download_button_label), (create_download_path_label), - (prefs_dialog_init), (prefs_dialog_response_cb), - (set_homepage_entry), (prefs_homepage_current_button_clicked_cb), - (prefs_homepage_blank_button_clicked_cb), - (language_dialog_changed_cb), - (prefs_language_more_button_clicked_cb), - (download_path_response_cb), - (prefs_download_path_button_clicked_cb): - * src/prefs-dialog.h: - * src/window-commands.c: (window_cmd_edit_prefs): - - Improved API and implementation of EphyDialog. Add support for - new combo box, and removed optionmenu. - - Port all dialogues to new API and use combobox instead of optionmenus. - -2003-11-30 Chris Lahey - Marco Pesenti Gritti - - * data/Makefile.am: - * data/epiphany-lockdown.schemas.in: - * src/ephy-main.c: (main): - * src/ephy-tab.c: (ephy_tab_new_window_cb), (ephy_tab_size_to_cb): - * src/ephy-window.c: (update_chromes_visibility), (update_chrome), - (ephy_window_fullscreen), (ephy_window_unfullscreen), - (show_embed_popup), (update_layout_toggles), (chrome_notifier), - (ephy_window_init), (ephy_window_finalize), - (ephy_window_request_chrome), (ephy_window_set_print_preview), - (ephy_window_show), (print_dialog_preview_cb): - * src/ephy-window.h: - * src/ppview-toolbar.c: (ppview_toolbar_set_window), - (toolbar_cmd_ppv_close): - * src/window-commands.c: (window_cmd_view_bookmarks_bar), - (window_cmd_view_toolbar), (window_cmd_view_statusbar): - - Implement lockdown pref to not allow javascript to modify - chromes. Do necessary changes to chromes code to make - it possible. - -2003-11-28 Marco Pesenti Gritti - - * embed/downloader-view.c: (status_icon_activated), - (seconds_remaining_total), (update_status_icon), - (download_changed_cb), (downloader_view_add_download): - - Show total downloads and time in the tray icon tooltip - -2003-11-28 Christian Persch - - * lib/widgets/ephy-zoom-control.c: (ephy_zoom_control_get_type), - (proxy_menu_activate_cb), (combo_changed_cb), (sync_zoom_cb), - (ephy_zoom_control_init), (ephy_zoom_control_set_tooltip), - (ephy_zoom_control_class_init), (ephy_zoom_control_finalize): - * lib/widgets/ephy-zoom-control.h: - - Port from option menu to GtkComboBox. - -2003-11-28 Xan Lopez - - * 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 - -2003-11-27 Piers Cornwell - - * data/glade/prefs-dialog.glade: - - Fix some mnemonics, and make some mnemonics work by - assigning a mnemonic_widget. - -2003-11-26 Christian Persch - - * embed/mozilla/EphyContentPolicy.cpp: - * embed/mozilla/EphyContentPolicy.h: - * embed/mozilla/Makefile.am: - * embed/mozilla/MozRegisterComponents.cpp: - - Implement disabling unsafe protocols for lock-down mode. - -2003-11-26 Christian Persch - - * src/ephy-shell.c: (ephy_shell_init), (ephy_shell_finalize), - (ephy_shell_get_history_window), (ephy_shell_get_pdm_dialog): - * src/ephy-shell.h: - * src/pdm-dialog.c: (pdm_dialog_response_cb): - * src/pdm-dialog.h: - * src/window-commands.c: (window_cmd_edit_personal_data): - - Make PDM dialogue a singleton. - -2003-11-26 Christian Persch - - * embed/ephy-cookie-manager.c: (ephy_cookie_copy), - (ephy_cookie_manager_remove_cookie): - * embed/ephy-cookie-manager.h: - * embed/ephy-password-manager.c: (ephy_password_info_copy): - * embed/ephy-password-manager.h: - * embed/ephy-permission-manager.c: (ephy_permission_info_copy): - * embed/ephy-permission-manager.h: - * embed/mozilla/mozilla-embed-single.cpp: - - Mark parameters "const" where appropriate. - - * src/pdm-dialog.c: (pdm_cmd_delete_selection), (compare_cookies), - (cookie_to_iter), (cookie_added_cb), (cookie_changed_cb), - (cookie_deleted_cb), (cookies_cleared_cb), - (pdm_dialog_fill_cookies_list), (pdm_dialog_fill_passwords_list), - (pdm_dialog_init): - - Make the cookies list auto-updating. - -2003-11-26 Marco Pesenti Gritti - - * data/ui/epiphany-ui.xml: - * src/ephy-window.c: (update_edit_actions_sensitivity), - (edit_menu_show_cb), (show_embed_popup): - - Restore clipboard actions in input context menu. - Show it only if mozilla is recent enough though. - -2003-11-26 Marco Pesenti Gritti - - * embed/downloader-view.c: (update_download_row), - (download_changed_cb), (downloader_view_add_download), - (downloader_view_build_ui): - * lib/widgets/ephy-cell-renderer-progress.c: - - Try out a different layout for downloads rows. - Make the file column expand. - -2003-11-25 Christian Persch - - * embed/ephy-cookie-manager.c: (ephy_cookie_manager_base_init): - * embed/ephy-cookie-manager.h: - * embed/ephy-permission-manager.c: - (ephy_permission_manager_base_init): - * embed/mozilla/EphySingle.cpp: - - Change signal names to be unique for interfaces on the same object. - -2003-11-25 Christian Persch - - * embed/ephy-cookie-manager.c: (ephy_cookie_manager_base_init): - - Fix marshaller type. - -2003-11-25 Christian Persch - - * embed/mozilla/EphySingle.cpp: - - Make it compile with mozilla < 1.5. - -2003-11-24 Xan Lopez - - * embed/downloader-view.c: (download_changed_cb): - - Use gnome_vfs_format_file_size_for_display to display size, put - Unknown when size/remaining time are unknown instead of weird - numbers. - -2003-11-24 Christian Persch - - * embed/ephy-permission-manager.h: - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphySingle.cpp: - * embed/mozilla/EphySingle.h: - * embed/mozilla/Makefile.am: - * embed/mozilla/mozilla-embed-single.cpp: - * src/ephy-encoding-dialog.c: (sync_embed_encoding), - (automatic_toggled_cb), (ephy_encoding_dialog_init): - - Implemented cookie and permissions observer used to actually - send notifications on EphyCookieManager and EphyPermissionManager - signals. - -2003-11-24 Christian Persch - - * embed/mozilla/nsUnicharUtils.cpp: - * embed/mozilla/nsUnicharUtils.h: - - Re-sync with mozilla. - -2003-11-24 Christian Persch - - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/EphyEventListener.cpp: - * embed/mozilla/ExternalProtocolHandlers.cpp: - * embed/mozilla/ExternalProtocolHandlers.h: - * embed/mozilla/ExternalProtocolService.cpp: - * embed/mozilla/FilePicker.cpp: - * embed/mozilla/GlobalHistory.cpp: - * embed/mozilla/PrintingPromptService.cpp: - * embed/mozilla/mozilla-notifiers.cpp: - - Get rid of NS_INIT_ISUPPORTS() macros in constructors; - it's not been needed since mozilla 1.3. - -2003-11-24 Marco Pesenti Gritti - - * embed/mozilla/MozRegisterComponents.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - - No need to handle mailto registration separately. - -2003-11-24 Christian Persch - - * data/glade/epiphany.glade: - - Delete the obsolete mime-ask-action dialogue from glade file. - -2003-11-24 Christian Persch - - * src/pdm-dialog.c: (pdm_dialog_get_type), (pdm_dialog_class_init), - (action_treeview_selection_changed_cb), (pdm_cmd_delete_selection), - (pdm_key_pressed_cb), (pdm_dialog_remove_button_clicked_cb), - (setup_action), (cookies_treeview_selection_changed_cb), - (pdm_dialog_cookies_construct), (cookie_added_cb), - (cookie_changed_cb), (cookie_deleted_cb), (cookies_cleared_cb), - (pdm_dialog_fill_cookies_list), (pdm_dialog_cookies_destruct), - (pdm_dialog_cookie_add), (pdm_dialog_cookie_remove), - (pdm_dialog_passwords_construct), (password_added_cb), - (password_changed_cb), (password_deleted_cb), - (passwords_cleared_cb), (pdm_dialog_fill_passwords_list), - (pdm_dialog_passwords_destruct), (pdm_dialog_password_add), - (pdm_dialog_password_remove), (sync_notebook_tab), - (pdm_dialog_init), (pdm_dialog_finalize), - (show_cookies_properties), - (pdm_dialog_cookies_properties_button_clicked_cb), - (pdm_dialog_response_cb), (pdm_dialog_new): - - Refactored pdm dialogue code. Use new boxed cookie/password info - types. Hook up to the single signals to get notified on password/ - cookie updates [actual updating code to be written :)]. - -2003-11-24 Christian Persch - - * data/Makefile.am: - - Added $(mimepermission_DATA) to EXTRA_DIST. - -2003-11-24 Christian Persch - - * doc/reference/Makefile.am: - - Added egg tray icon headers to IGNORE_HFILES. - -2003-11-24 Christian Persch - - * data/Makefile.am: - - Fix typo in EXTRADIST: s/check_mime/check-mime/ - -2003-11-24 Christian Persch - - * lib/Makefile.am: - - Remove ephy-types.h from Makefile.am, it's long gone. - -2003-11-24 Christian Persch - - * doc/reference/epiphany-docs.sgml: - - s/[Insert name here]/Epiphany/ - -2003-11-24 David Bordoley - - * help/C/epiphany.xml: - - s/window/tab in the open link in new tab section. - -2003-11-24 David Bordoley - - * help/C/epiphany.xml: - - A big chuck of doc neatening and organization - plus some new stuff... - - patch from Piers Cornwell - aka spark, with a few quick fixes from me. - -2003-11-24 Marco Pesenti Gritti - - * embed/mozilla/BaseProtocolContentHandler.cpp: - * embed/mozilla/BaseProtocolContentHandler.h: - * embed/mozilla/BaseProtocolHandler.cpp: - * embed/mozilla/BaseProtocolHandler.h: - - Remove. - - * embed/mozilla/ExternalProtocolHandlers.cpp: - * embed/mozilla/ExternalProtocolHandlers.h: - - Merge base implementations here. No need - of using 200 files for a work around of - mozilla problems ;) - - * embed/mozilla/Makefile.am: - * embed/mozilla/MozRegisterComponents.cpp: - - Use ftp CID directly from mozilla headers - instead of doing a copy of it in ours. - -2003-11-23 Christian Persch - - * src/bookmarks/ephy-bookmarks-export.c: - (ephy_bookmarks_export_rdf): - - When exporting to RDF, write all bookmarks, not just every - second bookmark. - -2003-11-23 Marco Pesenti Gritti - - * embed/mozilla/ExternalProtocolService.cpp: - * embed/mozilla/MozRegisterComponents.cpp: - - Do not build our externla protocol service - with mozilla 1.6. It has his own and api is changed. - -2003-11-23 Xan Lopez - - * src/prefs-dialog.c: (get_download_button_label), - (download_path_response_cb), - (prefs_download_path_button_clicked_cb): - - Use EphyFileChooser API, convert download path to UTF8. - -2003-11-23 Christian Persch - - * embed/mozilla/mozilla-embed-single.cpp: - - Make it compile with mozilla 1.4 and 1.4.1 again. - -2003-11-23 Marco Pesenti Gritti - - * embed/Makefile.am: - * embed/downloader-view.c: (status_icon_activated), - (show_status_icon), (downloader_view_init), - (downloader_view_finalize), (download_dialog_delete_cb): - * lib/egg/Makefile.am: - * lib/egg/update-from-egg.sh: - - Very basic tray icon for downloader. - -2003-11-22 Marco Pesenti Gritti - - * data/art/Makefile.am: - * data/art/epiphany-bookmark-page.png: - * lib/ephy-stock-icons.c: (ephy_stock_icons_init): - * lib/ephy-stock-icons.h: - * src/bookmarks/ephy-new-bookmark.c: (ephy_new_bookmark_construct): - * src/ephy-history-window.c: - * src/ephy-window.c: - - Use icon theme icon for add bookmark - -2003-11-22 Marco Pesenti Gritti - - * doc/reference-howto.txt: - - Add a tip on how to clean docs. - - * doc/reference/Makefile.am: - * doc/reference/epiphany-docs.sgml: - * doc/reference/epiphany.types: - * doc/reference/tmpl/ephy-cookie-manager.sgml: - * doc/reference/tmpl/ephy-embed-factory.sgml: - * doc/reference/tmpl/ephy-embed-single.sgml: - * doc/reference/tmpl/ephy-password-manager.sgml: - * doc/reference/tmpl/ephy-permission-manager.sgml: - - Add some files chpe documented to the build. - - * embed/ephy-embed-factory.c: - - Document - -2003-11-22 Marco Pesenti Gritti - - * src/ephy-location-action.c: (sync_editable), (connect_proxy), - (ephy_location_action_set_property), - (ephy_location_action_get_property), - (ephy_location_action_class_init), (ephy_location_action_init): - * src/toolbar.c: (update_location_editable), - (arbitrary_url_notifier), (toolbar_setup_actions), - (toolbar_set_window), (toolbar_finalize): - - Implement arbitrary url lockdown pref - -2003-11-22 Marco Pesenti Gritti - - * doc/reference/Makefile.am: - * embed/Makefile.am: - * embed/ephy-embed-persist.c: (ephy_embed_persist_save): - * embed/ephy-embed-persist.h: - * embed/ephy-embed-popup-control.c: (save_url), - (embed_popup_set_image_as_background_cmd): - * embed/ephy-embed-shell.c: (ephy_embed_shell_get_embed_single): - * embed/ephy-embed.c: - * embed/ephy-embed.h: - * embed/ephy-favicon-cache.c: (ephy_favicon_cache_download): - * embed/mozilla/mozilla-embed-persist.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - * embed/mozilla/mozilla-embed-single.h: - * embed/mozilla/mozilla-embed.cpp: - * src/Makefile.am: - * src/ephy-nautilus-view.c: (ephy_nautilus_view_instance_init): - * src/ephy-tab.c: (ephy_tab_init): - * src/popup-commands.c: (save_property_url), - (popup_cmd_set_image_as_background): - * src/window-commands.c: (window_cmd_file_save_as), - (save_temp_source): - - Add a factory to create embed objects and use it. - Deal with dependency of mozilla-embed and mozilla-embed-persist - on mozilla-embed-single internally. - -2003-11-22 Christian Persch - - * embed/mozilla/mozilla-embed-single.cpp: - - Fix cookie deletion; use do_GetService instead of - do_CreateInstance. - -2003-11-22 Christian Persch - - * embed/ephy-embed-single.c: (ephy_embed_single_class_init), - (ephy_embed_single_load_proxy_autoconf): - - Added API documentation. - -2003-11-21 Christian Persch - - * embed/Makefile.am: - * embed/ephy-cookie-manager.c: (ephy_cookie_get_type), - (ephy_cookie_new), (ephy_cookie_copy), (ephy_cookie_free), - (ephy_cookie_manager_get_type), (ephy_cookie_manager_base_init), - (ephy_cookie_manager_list_cookies), - (ephy_cookie_manager_remove_cookie), (ephy_cookie_manager_clear): - * embed/ephy-cookie-manager.h: - * embed/ephy-embed-single.c: (ephy_embed_single_get_type), - (ephy_embed_single_class_init), (ephy_embed_single_clear_cache), - (ephy_embed_single_set_offline_mode), - (ephy_embed_single_load_proxy_autoconf), - (ephy_embed_single_get_font_list): - * embed/ephy-embed-single.h: - * embed/ephy-password-manager.c: (ephy_password_info_get_type), - (ephy_password_info_new), (ephy_password_info_copy), - (ephy_password_info_free), (ephy_password_manager_get_type), - (ephy_password_manager_add), (ephy_password_manager_remove), - (ephy_password_manager_list): - * embed/ephy-password-manager.h: - * embed/ephy-permission-manager.c: (ephy_permission_info_get_type), - (ephy_permission_info_new), (ephy_permission_info_copy), - (ephy_permission_info_free), (ephy_permission_manager_get_type), - (ephy_permission_manager_base_init), (ephy_permission_manager_add), - (ephy_permission_manager_remove), (ephy_permission_manager_clear), - (ephy_permission_manager_test), (ephy_permission_manager_list): - * embed/ephy-permission-manager.h: - * embed/mozilla/mozilla-embed-single.cpp: - * embed/mozilla/mozilla-embed-single.h: - * embed/mozilla/mozilla-notifiers.cpp: - * src/Makefile.am: - * src/pdm-dialog.c: (pdm_dialog_get_type), (pdm_dialog_cookie_add), - (pdm_dialog_password_add), (pdm_dialog_cookie_remove), - (pdm_dialog_password_remove), (pdm_dialog_cookies_free), - (pdm_dialog_passwords_free), (pdm_dialog_init), (pdm_dialog_new), - (show_cookies_properties), - (pdm_dialog_cookies_properties_button_clicked_cb): - * src/pdm-dialog.h: - - New interfaces: EphyCookieManager, EphyPermissionManager, - EphyPasswordManager. - Port all callers to new interfaces. - Change linking order to make it link. - - Only set autoconf proxy url if it's non-empty. - -2003-11-21 Marco Pesenti Gritti - - * lib/ephy-stock-icons.c: (ephy_stock_icons_init): - * lib/ephy-stock-icons.h: - - Pass a source based on filename instead of pixbuf - for our own icon set, so that they are created only - when necessary. - Add code to insert icon theme icons in our icon set - and use icon theme icons when possible. - - * src/ephy-window.c: - - Update icons id. - -2003-11-20 Marco Pesenti Gritti - - * data/glade/prefs-dialog.glade: - - Hide Open downloads pref. Since both behaviors are available - maybe it's not necessary at all. Also I feel it confusing to - have only one of the cases respecting it. I guess better - to wait feedback on releases before making a call on this. - - * src/ephy-window.c: - - No more need of ... on dowload context menu - -2003-11-20 Marco Pesenti Gritti - - * embed/ephy-embed-single.c: (ephy_embed_single_class_init): - * embed/ephy-embed-single.h: - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/EphyHeaderSniffer.h: - * lib/ephy-marshal.list: - - Implement an handle_content signal to allow to write - plugins to support external download managers. - -2003-11-20 Marco Pesenti Gritti - - * embed/ephy-command-manager.c: (ephy_command_manager_base_init): - * embed/ephy-embed-persist.c: (ephy_embed_persist_class_init): - * embed/ephy-embed.c: (ephy_embed_base_init): - - Not necessary to store signal id in an array for interfaces. - -2003-11-20 Marco Pesenti Gritti - - * src/ephy-session.c: (ephy_session_save): - - hrm misplaced free in last commit - -2003-11-20 Marco Pesenti Gritti - - * src/ephy-session.c: (ephy_session_save): - - Make xml saving low disk safe. - -2003-11-20 Marco Pesenti Gritti - - * src/ephy-window.c: (show_embed_popup): - - Fix unrefing of context menu event - -2003-11-20 Marco Pesenti Gritti - - * embed/mozilla/mozilla-embed.cpp: - - If it's not possible to go up fails do not assert, just fail - silently. - -2003-11-19 Marco Pesenti Gritti - - * Makefile.am: - * doc/reference/Makefile.am: - * doc/reference/epiphany-docs.sgml: - * doc/reference/tmpl/config.sgml: - - Do not document config.h ;) - Reenable docs build. - -2003-11-19 Marco Pesenti Gritti - - * doc/reference/.cvsignore: - * doc/reference/Makefile.am: - * doc/reference/epiphany-docs.sgml: - * doc/reference/epiphany.types: - * doc/reference/tmpl/config.sgml: - * doc/reference/tmpl/ephy-session.sgml: - * doc/reference/tmpl/ephy-shell.sgml: - - Complete docs base implementation. Should work - more or less. - - * embed/Makefile.am: - * lib/Makefile.am: - * src/Makefile.am: - - Cleanup a bit libs build and use a static lib - also for the src/ code so that we can use it - for documents. - - * src/ephy-nautilus-view.c: - - Bad chpe forgot to modify func signature. - -2003-11-19 Christian Persch - - * embed/downloader-view.h: - * embed/ephy-download.h: - * embed/ephy-embed-dialog.h: - * embed/ephy-embed-event.h: - * embed/ephy-embed-persist.h: - * embed/ephy-embed-popup-control.h: - * embed/ephy-embed-shell.h: - * embed/ephy-embed-single.h: - * embed/ephy-encodings.h: - * embed/ephy-favicon-cache.h: - * embed/ephy-history.h: - * embed/find-dialog.h: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/GtkNSSKeyPairDialogs.cpp: - * embed/mozilla/mozilla-download.h: - * embed/mozilla/mozilla-embed-persist.h: - * embed/mozilla/mozilla-embed-single.h: - * embed/print-dialog.h: - * lib/egg/egg-editable-toolbar.h: - * lib/egg/egg-toolbar-editor.h: - * lib/egg/egg-toolbars-model.h: - * lib/ephy-debug.h: - * lib/ephy-dialog.h: - * lib/ephy-dnd.h: - * lib/ephy-file-chooser.h: - * lib/ephy-node-db.h: - * lib/ephy-node-filter.h: - * lib/ephy-node.h: - * lib/ephy-prefs.h: - * lib/ephy-state.h: - * lib/ephy-string.h: - * lib/ephy-zoom.h: - * lib/widgets/ephy-arrow-toolbutton.h: - * lib/widgets/ephy-cell-renderer-progress.h: - * lib/widgets/ephy-ellipsizing-label.h: - * lib/widgets/ephy-location-entry.h: - * lib/widgets/ephy-node-view.h: - * lib/widgets/ephy-search-entry.h: - * lib/widgets/ephy-spinner.h: - * lib/widgets/ephy-tree-model-node.h: - * lib/widgets/ephy-tree-model-sort.h: - * lib/widgets/ephy-zoom-action.h: - * lib/widgets/ephy-zoom-control.h: - * src/bookmarks/ephy-bookmark-action.h: - * src/bookmarks/ephy-bookmark-properties.h: - * src/bookmarks/ephy-bookmarks-editor.h: - * src/bookmarks/ephy-bookmarks-menu.h: - * src/bookmarks/ephy-bookmarks.h: - * src/bookmarks/ephy-new-bookmark.h: - * src/bookmarks/ephy-topic-action.h: - * src/bookmarks/ephy-topics-selector.h: - * src/ephy-automation.h: - * src/ephy-completion-model.h: - * src/ephy-encoding-dialog.h: - * src/ephy-encoding-menu.h: - * src/ephy-extensions-manager.h: - * src/ephy-favicon-action.h: - * src/ephy-favorites-menu.h: - * src/ephy-go-action.h: - * src/ephy-history-window.h: - * src/ephy-location-action.h: - * src/ephy-nautilus-view.h: - * src/ephy-navigation-action.h: - * src/ephy-notebook.h: - * src/ephy-session.h: - * src/ephy-shell.h: - * src/ephy-tab.h: - * src/ephy-tabs-menu.h: - * src/ephy-toolbars-model.h: - * src/ephy-window.h: - * src/language-editor.h: - * src/pdm-dialog.h: - * src/ppview-toolbar.h: - * src/prefs-dialog.h: - * src/statusbar.h: - * src/toolbar.h: - - Mark all EphyFooPrivate structs as private for gtk-doc. - -2003-11-19 Christian Persch - - * embed/ephy-embed.c: - - Forgot to remove signal IDs from enum when I removed the signals. - -2003-11-19 Christian Persch - - * lib/ephy-dialog.c: (ephy_dialog_set_parent): - * src/ephy-encoding-dialog.c: (sync_parent_window_cb), - (ephy_encoding_dialog_init), (ephy_encoding_dialog_class_init), - (ephy_encoding_dialog_new): - - Make encodings dialogue transient. - -2003-11-19 Christian Persch - - * embed/ephy-embed.c: (ephy_embed_base_init), - (ephy_embed_get_location), (ephy_embed_get_link_message), - (ephy_embed_get_js_status): - * embed/ephy-embed.h: - * embed/mozilla/mozilla-embed.cpp: - * src/ephy-nautilus-view.c: (ephy_nautilus_view_instance_init), - (gnv_embed_link_message_cb): - * src/ephy-nautilus-view.h: - * src/ephy-tab.c: (ephy_tab_set_link_message), - (ephy_tab_link_message_cb), (ephy_tab_init): - - Re-use some more signals from GtkMozEmbed; fix getter_Copies usage in - mozilla-embed.cpp. Fixes bug #127335. - -2003-11-18 Marco Pesenti Gritti - - * Makefile.am: - * configure.in: - * doc/Makefile.am: - * doc/reference/Makefile.am: - * doc/reference/epiphany-docs.sgml: - * doc/reference/epiphany.types: - - Begin of gtk-doc support - -2003-11-17 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_import): - - Api fix - -2003-11-17 Christian Persch - - * embed/mozilla/GtkNSSClientAuthDialogs.cpp: - * embed/mozilla/GtkNSSClientAuthDialogs.h: - * embed/mozilla/Makefile.am: - * embed/mozilla/MozRegisterComponents.cpp: - * lib/ephy-state.c: (ephy_state_add_paned), (expander_activate_cb), - (ephy_state_add_expander): - * lib/ephy-state.h: - - Ported the Crispin's GtkNSSClientAuthDialogs from galeon. - Changes: - - use GtkExpander instead of the CDDB disclosure thingy - - persist state in ephy-state - - assing a mnemonic to expander label. - -2003-11-17 Marco Pesenti Gritti - - * embed/mozilla/EphyBrowser.cpp: - - Pass WebPageDescriptor, not CurrentDescriptor. - This way we dont refetch page on post. - -2003-11-17 Marco Pesenti Gritti - - * configure.in: - * embed/mozilla/GtkNSSDialogs.cpp: - * embed/mozilla/GtkNSSKeyPairDialogs.cpp: - - Resync with galeon. - - * embed/mozilla/mozilla-embed-single.cpp: - - Header name change - -2003-11-16 Marco Pesenti Gritti - - * src/ephy-shell.c: (toolwindow_show_cb), (toolwindow_hide_cb), - (ephy_shell_get_bookmarks_editor): - - Do not access session from priv struct but use get_session, - so it's properly initialized-> Fix epiphany -b crash - -2003-11-16 Marco Pesenti Gritti - - * src/ephy-session.c: (get_session_filename), (ephy_session_init), - (ephy_session_finalize): - * src/ephy-shell.c: (save_yourself_cb), (die_cb), - (gnome_session_init), (ephy_shell_startup): - - Move gnome session code in the shell. - -2003-11-16 Xan Lopez - - * data/glade/prefs-dialog.glade: - * src/prefs-dialog.c: (prefs_dialog_finalize), - (get_download_button_label), (create_download_path_label), - (prefs_dialog_init), (prefs_language_more_button_clicked_cb), - (download_path_response_cb), - (prefs_download_path_button_clicked_cb): - - Implement UI for default download path and auto open downlads - prefs for the downloader. - -2003-11-15 Marco Pesenti Gritti - - * configure.in: - * embed/Makefile.am: - * embed/mozilla/Makefile.am: - * lib/Makefile.am: - * lib/widgets/Makefile.am: - * src/Makefile.am: - - Enable deprecates and werror only in maintainer mode - (in the way suggested by Jamesh). - -2003-11-14 Marco Pesenti Gritti - - * data/GNOME_Epiphany_Automation.server.in: - * data/GNOME_Epiphany_NautilusView.server.in: - - Use an unique factory for both interfaces. - - * data/ui/Makefile.am: - - Do not try to merge translations in nautilus xml. - - * src/ephy-nautilus-view.c: (disconnected_idle), - (control_disconnected_cb), (ephy_nautilus_view_instance_init), - (ephy_nautilus_view_finalize): - - Unref the view on control disconnected, not on finalize. - - * src/ephy-main.c: (main): - - Add a server mode argument, used internally by bonobo interface. - Free popt context only when no more necessary. - - * src/ephy-automation.c: - * src/ephy-automation.h: - * src/ephy-shell.c: (ephy_nautilus_view_new), - (ephy_automation_factory_cb), (ephy_automation_factory_new), - (ephy_shell_init), (path_from_command_line_arg), (open_urls), - (server_timeout), (ephy_shell_startup), (ephy_shell_finalize), - (ephy_shell_new_tab): - * src/ephy-shell.h: - - When running in server mode unref (and so exit) on a timeout. - - Expand args passed to the command line. - -2003-11-13 Marco Pesenti Gritti - - * embed/ephy-embed-shell.c: (ephy_embed_shell_get_embed_single): - * embed/mozilla/mozilla-embed-single.cpp: - * embed/mozilla/mozilla-embed-single.h: - * src/ephy-shell.h: - - Put back borked mozilla alert. - -2003-11-13 Marco Pesenti Gritti - - * src/ephy-shell.c: (ephy_shell_finalize): - - Looks like we need to unregister factory since - we initialized it by ourself. - -2003-11-13 Marco Pesenti Gritti - - * embed/mozilla/mozilla-notifiers.cpp: - * src/ephy-main.c: (main): - * src/ephy-shell.c: (ephy_shell_init), (ephy_shell_startup), - (ephy_shell_finalize), (ephy_shell_get_session), - (ephy_shell_get_extensions_manager): - * src/ephy-window.c: (ensure_default_icon), (ephy_window_init): - - Rework shell services initialization so that it happen either - on every instance, before the automation stuff is used, either - when they are requested. This appear to fix the crash with two - instances runned simultaneously. - (Christian I'm not quite sure this is ok for plugins manager, if - there are problems let me know.) - -2003-11-13 Marco Pesenti Gritti - - * idl/EphyAutomation.idl: - * src/ephy-automation.c: (ephy_automation_factory_cb), - (ephy_automation_factory_new), (impl_ephy_automation_loadurl): - * src/ephy-automation.h: - * src/ephy-main.c: (shell_weak_notify), (main): - * src/ephy-shell.c: (ephy_shell_error_quark), (ephy_shell_init), - (init_services), (open_urls), (ephy_shell_startup), - (ephy_shell_finalize), (ephy_shell_new): - * src/ephy-shell.h: - - First stab at reorganizing initialization. - Fix crashes when launching an epiphany instance while - another once is still not initialized completely. It still - doesnt open the second session correctly though. - -2003-11-12 Marco Pesenti Gritti - - * embed/mozilla/mozilla-embed-single.cpp: - * embed/mozilla/mozilla-embed.cpp: - - Silly typos, thanks crispin. - -2003-11-12 Christian Persch - - * src/window-commands.c: (toolbar_editor_response_cb): - - Link up toolbar editor help button. - -2003-11-11 Christian Persch - - * data/glade/epiphany.glade: - - Set initial visibility to false, fixes a warning when showing the - encodings dialogue. - -2003-11-11 Marco Pesenti Gritti - - * embed/ephy-embed-single.c: (ephy_embed_single_class_init): - * embed/ephy-embed-single.h: - * embed/mozilla/mozilla-embed-persist.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - * embed/mozilla/mozilla-embed.cpp: - * embed/mozilla/mozilla-embed.h: - * src/ephy-nautilus-view.c: (gnv_embed_new_window_cb): - * src/ephy-session.c: (write_ephy_window): - * src/ephy-shell.c: (ephy_shell_init): - * src/ephy-tab.c: (ephy_tab_size_to_cb): - * src/ephy-window.c: (translate_default_chrome): - - Build xul dialogs using GtkWindow+GtkMozEmbed. - Make src code simpler and fix a pair of bugs. - -2003-11-10 Christian Persch - - * data/glade/Makefile.am: - - And add it to Makefile.am too. - -2003-11-10 Christian Persch - - * data/glade/certificate-dialogs.glade: - - We really need the glade file from galeon too. - -2003-11-10 Christian Persch - - New extensions API. - - * Makefile.am: - * configure.in: - * lib/Makefile.am: - * lib/ephy-module-loader.c: (ephy_module_loader_get_type), - (ephy_module_loader_new), (ephy_module_loader_load), - (ephy_module_loader_unload), (ephy_module_loader_class_init), - (ephy_module_loader_init), (ephy_module_loader_finalize), - (ephy_module_loader_factory): - * lib/ephy-module-loader.h: - * plugins/.cvsignore: - * plugins/Makefile.am: - * plugins/sample/.cvsignore: - * plugins/sample/Makefile.am: - * plugins/sample/sample.c: - * src/Makefile.am: - * src/bookmarks/ephy-bookmarks-editor.c: (get_target_window): - * src/bookmarks/ephy-bookmarks.c: - * src/ephy-automation.c: (ephy_automation_factory), - (ephy_automation_factory_new), (impl_ephy_automation_loadurl), - (impl_ephy_automation_load_session), (ephy_automation_class_init): - * src/ephy-extension.c: (ephy_extension_get_type), - (ephy_extension_attach_window), (ephy_extension_detach_window): - * src/ephy-extension.h: - * src/ephy-extensions-manager.c: - (ephy_extensions_manager_get_type), - (ephy_extensions_manager_instantiate_extension), - (ephy_extensions_manager_load), (ephy_extensions_manager_load_dir), - (ephy_extensions_manager_add), (ephy_extensions_manager_init), - (ephy_extensions_manager_finalize), (impl_attach_window), - (impl_detach_window), (ephy_extensions_manager_iface_init), - (ephy_extensions_manager_class_init), - (ephy_extensions_manager_new): - * src/ephy-extensions-manager.h: - * src/ephy-history-window.c: (get_target_window): - * src/ephy-plugin.c: - * src/ephy-plugin.h: - * src/ephy-session.c: (ephy_session_get_type), - (get_session_filename), (session_delete), (net_stop_cb), - (tab_added_cb), (tab_removed_cb), (tabs_reordered_cb), - (impl_attach_window), (impl_detach_window), (save_yourself_cb), - (die_cb), (gnome_session_attach), (gnome_session_detach), - (ensure_session_directory), (ephy_session_init), - (ephy_session_dispose), (ephy_session_finalize), - (ephy_session_iface_init), (ephy_session_class_init), - (offer_to_resume), (ephy_session_autoresume), (ephy_session_close), - (write_tab), (write_window_geometry), (write_tool_window), - (write_ephy_window), (ephy_session_save), (parse_embed), - (ephy_session_load), (ephy_session_get_windows), - (ephy_session_add_window), (ephy_session_remove_window), - (ephy_session_get_active_window): - * src/ephy-session.h: - * src/ephy-shell.c: (ephy_shell_init), (ephy_shell_finalize), - (ephy_shell_get_session), (ephy_shell_get_extensions_manager), - (toolwindow_show_cb), (toolwindow_hide_cb): - * src/ephy-shell.h: - * src/ephy-window.c: (ephy_window_destroy), (ephy_window_init): - * src/prefs-dialog.c: (prefs_homepage_current_button_clicked_cb): - * src/session.c: - * src/session.h: - - Create a new extensions API. Make session an internal extension :) - Port callers to session API changes. - -2003-11-10 Xan Lopez - - * embed/mozilla/mozilla-embed-persist.cpp: - - Deja-vu. - -2003-11-10 Marco Pesenti Gritti - - * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_load): - - Fix compile warning. - - * src/ephy-completion-model.c: (init_text_col): - - Correct TEXT column get_value - -2003-11-10 Marco Pesenti Gritti - - * embed/mozilla/mozilla-embed.cpp: - - Remove a decl I forgot. - - * lib/egg/egg-editable-toolbar.c: (create_item_from_action), - (create_item), (drag_data_received_cb), (item_added_cb), - (egg_editable_toolbar_construct): - - Copy hack from gtk to make tooltips work. - -2003-11-10 Christian Persch - - * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_load): - * lib/egg/egg-toolbars-model.h: - * src/ephy-toolbars-model.c: (ephy_toolbars_model_set_bookmarks): - - Fix recovery from corrupted toolbar layout file. - -2003-11-10 Marco Pesenti Gritti - - * embed/mozilla/MozDownload.cpp: - - Do not disable conversion. Some pages was - saved as gz compressed. - -2003-11-09 Marco Pesenti Gritti - - * embed/ephy-embed.c: (ephy_embed_base_init): - * embed/ephy-embed.h: - * embed/mozilla/mozilla-embed.cpp: - * src/ephy-tab.c: (ephy_tab_init): - - Do not connect and reemit same signal for nothing. - Remove unused/expensive progress signal. - - * src/session.c: (session_save): - - Unlink session file when all windows are removed. - -2003-11-09 Marco Pesenti Gritti - - * embed/ephy-embed.h: - * idl/EphyAutomation.idl: - * src/ephy-automation.c: (impl_ephy_automation_loadurl), - (impl_ephy_automation_open_bookmarks_editor), - (ephy_automation_init), (ephy_automation_object_finalize), - (ephy_automation_class_init): - * src/ephy-completion-model.c: (root_child_removed_cb): - * src/ephy-main.c: (ephy_main_start): - * src/ephy-shell.c: (ephy_shell_get_active_window), - (toolwindow_show_cb), (toolwindow_hide_cb), - (ephy_shell_get_bookmarks_editor), (ephy_shell_get_history_window): - * src/ephy-shell.h: - * src/ephy-tab.c: (ephy_tab_net_state_cb), (ephy_tab_size_to_cb): - * src/ephy-window.c: (remove_from_session), (ephy_window_init): - * src/session.c: (session_autoresume), (session_close), - (session_dispose), (save_window_geometry), (save_tool_window), - (save_ephy_window), (session_save), (session_load), - (session_get_windows), (net_stop_cb), (tab_added_cb), - (tab_removed_cb), (tabs_reordered_cb), (session_add_window), - (session_remove_window), (save_yourself_cb), (session_die_cb), - (gnome_session_init), (session_init): - * src/session.h: - * src/window-commands.c: (window_cmd_go_bookmarks), - (window_cmd_go_history): - - Cleanup session. Persist also history and bookmarks. - -2003-11-09 Christian Persch - - * src/window-commands.c: (window_cmd_help_about): - - Don't unref the icon theme, we don't own it. - -2003-11-09 Marco Pesenti Gritti - - * embed/ephy-history.c: (ephy_history_save): - - Do not save All node - -2003-11-08 Marco Pesenti Gritti - - * embed/mozilla/mozilla-embed-persist.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - * embed/mozilla/mozilla-embed.cpp: - - Remove decls from the top - -2003-11-08 Marco Pesenti Gritti - - * lib/widgets/ephy-tree-model-node.c: - (ephy_tree_model_node_get_flags): - * src/ephy-completion-model.c: (ephy_completion_model_get_flags): - - Pass ITEMS_PERSIST and LIST_ONLY to the models, the implementation - looks already ok with it to me. Hopefully not missing something ... - -2003-11-08 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarks-editor.c: - (ephy_bookmarks_editor_update_menu): - * src/ephy-history-window.c: (ephy_history_window_show), - (ephy_history_window_class_init), - (ephy_history_window_update_menu): - - Focus history entry on _show. - Do not try to update paste menu item using the wait - api, it can cause a crash on a timeout and anyway - it's incosistent what we do in main window. - -2003-11-08 Christian Persch - - * embed/ephy-favicon-cache.c: (ephy_favicon_cache_get_type), - (ephy_favicon_cache_finalize): - * embed/ephy-history.c: (ephy_history_save): - * lib/ephy-file-helpers.c: (ephy_file_switch_temp_file): - * lib/ephy-file-helpers.h: - * lib/ephy-node-db.c: (ephy_node_db_load_from_file), - (ephy_node_db_write_to_xml_valist), - (ephy_node_db_write_to_xml_safe): - * lib/ephy-node-db.h: - * lib/ephy-node.c: (write_parent), (ephy_node_write_to_xml): - * lib/ephy-node.h: - * lib/ephy-state.c: (ephy_states_save), (ensure_states): - * src/bookmarks/ephy-bookmarks-export.c: (write_topics_list), - (ephy_bookmarks_export_rdf): - * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_save): - - Port node db saving and RDF export to xml writer api. - -2003-11-07 Christian Persch - - * src/ephy-favicon-actio.c: (ephy_favicon_action_finalize): - - Fix mem leak. - -2003-11-07 Christian Persch - - * src/ephy-location-action.c: (ephy_location_action_finalize): - - Chain up to parent's finalize method. - -2003-11-07 Marco Pesenti Gritti - - * src/ephy-completion-model.c: (get_path_real), - (node_iter_from_node), (get_index_root), (root_child_removed_cb), - (root_child_added_cb), (root_child_changed_cb), - (ephy_completion_model_get_value), - (ephy_completion_model_get_iter), (ephy_completion_model_get_path), - (ephy_completion_model_iter_next), - (ephy_completion_model_iter_children), - (ephy_completion_model_iter_n_children), - (ephy_completion_model_iter_nth_child), - (ephy_completion_model_iter_parent): - - Rewrite the iteration part to take advantage of user_data2. Should - be faster and a bit cleaner. - -2003-11-06 Xan Lopez - - * embed/downloader-view.c: (download_changed_cb): - - Use kB, MB and GB for the total size of the files being downloaded. - Fixes #126387 - - * embed/mozilla/ContentHandler.cpp: - - Small cleanup. - -2003-11-06 Marco Pesenti Gritti - - * src/ephy-completion-model.c: (ephy_completion_model_iter_next): - - Handle correctly last bookmark case - -2003-11-06 Marco Pesenti Gritti - - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/ContentHandler.h: - - Small cleanups - -2003-11-06 Marco Pesenti Gritti - - * src/ephy-main.c: - * src/ephy-shell.c: - - More headers fixup. - - * src/window-commands.c: (window_cmd_help_about): - - Use gtk icon theme here too. - -2003-11-06 Marco Pesenti Gritti - - * embed/downloader-view.c: - * embed/ephy-embed-popup-control.c: - * embed/mozilla/ExternalProtocolService.cpp: - * embed/mozilla/FilePicker.cpp: - * embed/mozilla/GtkNSSDialogs.cpp: - * embed/mozilla/GtkNSSKeyPairDialogs.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - * embed/mozilla/mozilla-notifiers.cpp: - * lib/ephy-file-helpers.c: - * lib/widgets/ephy-search-entry.c: - - Change some more i18n inclusion and remove several - unused includes. - -2003-11-06 Marco Pesenti Gritti - - * data/epiphany.schemas.in: - - Correct download dir default. - - * embed/ephy-embed-shell.h: - * embed/ephy-embed-shell.c: (ephy_embed_shell_init), - (ephy_embed_shell_finalize), (ephy_embed_shell_get_encodings), - (load_mime_from_xml), (ephy_embed_shell_check_mime): - - Add check_mime api for permissions. - - * embed/mozilla/ContentHandler.cpp: - - First incomplete try at using it. - -2003-11-06 Marco Pesenti Gritti - - * data/Makefile.am: - * data/check-mime.py: - * data/mime-types-permissions.xml: - - Add a list of permissions for mime and a script - to update it (py hackers please forgive me). - I put only very obvious items in the safe list - for now. - -2003-11-05 Christian Persch - - * embed/downloader-view.c: - * embed/ephy-embed-popup-control.c: - * embed/ephy-encodings.c: - * embed/ephy-history.c: - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/FilePicker.cpp: - * lib/eel-gconf-extensions.c: - * lib/egg/egg-editable-toolbar.c: - * lib/ephy-file-helpers.c: - * lib/ephy-gui.c: - * lib/ephy-langs.c: - * lib/ephy-node.c: - * lib/ephy-zoom.h: - * lib/widgets/ephy-cell-renderer-progress.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-import.c: - * src/bookmarks/ephy-bookmarks-menu.c: - * src/bookmarks/ephy-bookmarks.c: - * src/bookmarks/ephy-new-bookmark.c: - * src/bookmarks/ephy-topic-action.c: - * src/ephy-encoding-dialog.c: - * src/ephy-encoding-menu.c: - * src/ephy-go-action.c: - * src/ephy-history-window.c: - * src/ephy-notebook.c: - * src/ephy-shell.c: - * src/ephy-tab.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/session.c: - * src/toolbar.c: - * src/window-commands.c: - - Use new glib gi18n.h instead of bonobo's bonobo-i18n.h. - -2003-11-05 Christian Persch - - * data/glade/print.glade: - * embed/print-dialog.c: (impl_show), (print_dialog_class_init), - (print_dialog_new), (print_dialog_new_with_parent), - (print_dialog_print), (print_dialog_preview), - (print_cancel_button_cb), (print_preview_button_cb): - - Only allow choosing "Selection" if there really is one. - - * lib/ephy-dialog.c: (impl_run): - - Use ephy_dialog_show() when running an EphyDialog. - -2003-11-05 Marco Pesenti Gritti - - * lib/ephy-gui.c: (ephy_gui_help): - * lib/ephy-gui.h: - - Remove unused func, bad xan - -2003-11-05 Christian Persch - - * embed/ephy-command-manager.c: - (ephy_command_manager_can_do_command): - * embed/ephy-command-manager.h: - * embed/mozilla/mozilla-embed.cpp: - * src/ephy-window.c: (edit_menu_show_cb): - - Renamed to get_command_state to can_do_command. - -2003-11-05 Marco Pesenti Gritti - - * embed/ephy-embed-prefs.h: - * embed/mozilla/mozilla-notifiers.cpp: - - Migrate font family too - -2003-11-05 Christian Persch - - * embed/Makefile.am: - * embed/ephy-command-manager.c: (ephy_command_manager_do_command), - (ephy_command_manager_get_command_state): - * embed/ephy-command-manager.h: - * embed/ephy-embed-event.c: (ephy_embed_event_get_type), - (ephy_embed_event_class_init), (ephy_embed_event_init), - (ephy_embed_event_finalize), (ephy_embed_event_new), - (ephy_embed_event_get_event_type), (ephy_embed_event_get_coords), - (ephy_embed_event_get_context), (ephy_embed_event_set_property): - * embed/ephy-embed-event.h: - * embed/ephy-embed-persist.c: (ephy_embed_persist_cancel): - * embed/ephy-embed-persist.h: - * embed/ephy-embed-popup-control.c: - (ephy_embed_popup_control_set_event), - (embed_popup_copy_location_cmd), (embed_popup_save_page_as_cmd), - (embed_popup_open_frame_cmd): - * embed/ephy-embed-single.c: (ephy_embed_single_get_type), - (ephy_embed_single_class_init), (ephy_embed_single_clear_cache), - (ephy_embed_single_set_offline_mode), - (ephy_embed_single_load_proxy_autoconf), - (ephy_embed_single_get_font_list), - (ephy_embed_single_list_cookies), - (ephy_embed_single_remove_cookies), - (ephy_embed_single_list_passwords), - (ephy_embed_single_remove_passwords), - (ephy_embed_single_free_cookies), - (ephy_embed_single_free_passwords): - * embed/ephy-embed-single.h: - * embed/ephy-embed-types.h: - * embed/ephy-embed.c: (ephy_embed_get_type), - (ephy_embed_base_init), (ephy_embed_new), (ephy_embed_load_url), - (ephy_embed_stop_load), (ephy_embed_can_go_back), - (ephy_embed_can_go_forward), (ephy_embed_can_go_up), - (ephy_embed_get_go_up_list), (ephy_embed_go_back), - (ephy_embed_go_forward), (ephy_embed_go_up), - (ephy_embed_get_title), (ephy_embed_get_location), - (ephy_embed_reload), (ephy_embed_zoom_set), (ephy_embed_zoom_get), - (ephy_embed_shistory_n_items), (ephy_embed_shistory_get_nth), - (ephy_embed_shistory_get_pos), (ephy_embed_shistory_go_nth), - (ephy_embed_get_security_level), (ephy_embed_find_set_properties), - (ephy_embed_find_next), (ephy_embed_activate), - (ephy_embed_set_encoding), (ephy_embed_get_encoding_info), - (ephy_embed_print), (ephy_embed_print_preview_close), - (ephy_embed_print_preview_n_pages), - (ephy_embed_print_preview_navigate): - * embed/ephy-embed.h: - * embed/ephy-history.c: - * embed/find-dialog.c: (find_dialog_go_next), - (find_dialog_go_prev): - * embed/mozilla/mozilla-embed-persist.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - * embed/mozilla/mozilla-embed.cpp: - * embed/mozilla/mozilla-embed.h: - * lib/Makefile.am: - * lib/ephy-state.c: - * lib/ephy-types.h: - * src/ephy-encoding-dialog.c: (sync_embed_cb), (activate_choice): - * src/ephy-encoding-menu.c: (update_encoding_menu_cb), - (encoding_activate_cb): - * src/ephy-favicon-action.c: (each_url_get_data_binder): - * src/ephy-nautilus-view.c: (gnv_embed_dom_mouse_click_cb), - (gnv_embed_context_menu_cb), (gnv_embed_title_cb), - (gnv_popup_cmd_frame_in_new_window), (gnv_zoomable_zoom_in_cb), - (gnv_zoomable_zoom_out_cb): - * src/ephy-navigation-action.c: (activate_up_menu_item_cb), - (setup_back_or_forward_menu), (setup_up_menu): - * src/ephy-tab.c: (ephy_tab_address_cb), - (ephy_tab_zoom_changed_cb), (ephy_tab_title_cb), - (ephy_tab_dom_mouse_click_cb), (ephy_tab_update_navigation_flags), - (ephy_tab_set_title): - * src/ephy-window.c: (edit_menu_show_cb), (sync_tab_security), - (show_embed_popup), (ephy_window_set_zoom): - * src/pdm-dialog.c: (pdm_dialog_init): - * src/popup-commands.c: (popup_cmd_frame_in_new_tab), - (popup_cmd_frame_in_new_window), (popup_cmd_open_frame): - * src/ppview-toolbar.c: (toolbar_update_sensitivity), - (toolbar_cmd_ppv_goto_last), (clamp_page_limits): - * src/prefs-dialog.c: (setup_font_menu), - (prefs_homepage_current_button_clicked_cb): - * src/session.c: (save_tab): - * src/window-commands.c: (window_cmd_file_send_to), - (window_cmd_file_bookmark_page), (window_cmd_view_page_source): - - Get rid of gresult type. Use return values instead of out-parameters - whereever possible, and port all callers. - -2003-11-04 Marco Pesenti Gritti - - * embed/ephy-embed-prefs.h: - - Better names for new font size keys - -2003-11-04 Marco Pesenti Gritti - - * lib/eel-gconf-extensions.c: (global_client_free), - (eel_gconf_client_get_global), (eel_gconf_handle_error), - (eel_gconf_set_string), (eel_gconf_is_default), - (eel_gconf_key_is_writable), (eel_gconf_monitor_add), - (eel_gconf_monitor_remove), (eel_gconf_preload_cache), - (eel_gconf_get_default_value), (eel_strcmp), (eel_str_is_equal), - (simple_value_is_equal), (eel_gconf_value_is_equal), - (eel_gconf_value_get_string_list), - (eel_gconf_value_set_string_list), (eel_gconf_set_float), - (eel_gconf_get_float): - * lib/eel-gconf-extensions.h: - - Resync with eel. - - * lib/ephy-prefs.h: - * lib/widgets/ephy-spinner.c: - * embed/ephy-embed-prefs.h: - * embed/mozilla/mozilla-notifiers.cpp: - - Migrate old font size settings. This will screw things - for 1.1 users, not much we can do about it now. - -2003-11-04 Marco Pesenti Gritti - - * embed/downloader-view.c: - * embed/mozilla/ExternalProtocolService.cpp: - * embed/mozilla/mozilla-embed-single.cpp: - * lib/widgets/ephy-spinner.c: - * src/bookmarks/ephy-bookmarks-editor.c: - * src/language-editor.c: - * src/session.c: - - Remove unused ephy-prefs includes - -2003-11-04 Xan Lopez - - * data/epiphany.schemas.in: - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/ContentHandler.h: - * lib/ephy-prefs.h: - - Rework ContentHandler to use the auto_open_downloads key. - -2003-11-04 Marco Pesenti Gritti - - * src/ephy-window.c: (edit_menu_show_cb): - - Fix sensitivity of Paste. Still not set for native - entries, I cant really see a way to do it without waiting and so - making the change visible which sucks. - -2003-11-04 Marco Pesenti Gritti - - * src/ephy-window.c: (edit_menu_show_cb), (edit_menu_hide_cb), - (init_menu_updaters), (setup_window): - - Yet another sensitivity update strategy. Set sensitivity - on menu show and reset it on menu hide, so that accellerators - ever work. - -2003-11-04 Marco Pesenti Gritti - - * src/ephy-window.c: (window_cmd_edit): - - update undo/redo sensitivity - -2003-11-04 David Adam Bordoley - - * data/ui/epiphany-ui.xml: - * src/window-commands.c: (window_cmd_edit_undo), - (window_cmd_edit_redo): - * src/window-commands.h: - - Menus for Undo/Redo - -2003-11-04 Marco Pesenti Gritti - - * data/ui/epiphany-ui.xml: - - Show only paste in the context menu, it's the only - one that works in mozilla. - - * embed/ephy-command-manager.c: - (ephy_command_manager_get_command_state): - * embed/ephy-command-manager.h: - - Rename the state api. - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/mozilla-embed.cpp: - - Implement state api. - - * src/ephy-window.c: (window_cmd_edit), (show_embed_popup): - - Update clipboard menus on activate. - -2003-11-03 Christian Persch - - * lib/ephy-marshal.list: - - Remove unused types. - - * embed/ephy-embed.c: (ephy_embed_base_init): - * lib/widgets/ephy-arrow-toolbutton.c: - (ephy_arrow_toolbutton_class_init): - * src/ephy-notebook.c: (ephy_notebook_class_init): - - Use g_cclosure_marshal_* instead of our own ephy_marshal_* - where there is a one. - - For signals returning a boolean, use the - g_signal_accumulator_true_handled accumulator. - -2003-11-02 Xan Lopez - - * data/epiphany.schemas.in: - - Remove the "show_details in downloader" schema. - - * embed/ephy-embed-popup-control.c: (save_url): - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/EphyHeaderSniffer.cpp: - * lib/ephy-prefs.h: - * src/popup-commands.c: (save_property_url): - - Implement the new downloading mechanism in CH, also rename - CONF_STATE_DOWNLOADING_DIR to CONF_STATE_DOWNLOAD_DIR. - -2003-11-02 Christian Persch - - * lib/ephy-dialog.c: (impl_run): - - Initialise the dialogue on run too. - -2003-11-02 Christian Persch - - * embed/mozilla/PrintingPromptService.cpp: (ShowPrintDialog): - - Adjust return value so that mozilla doesn't erreonously put up - a failure dialogue. - -2003-11-02 Christian Persch - - * embed/mozilla/PrintingPromptService.cpp: - * embed/print-dialog.c: (print_dialog_new), - (print_dialog_new_with_parent), (print_dialog_print), - (print_cancel_button_cb), (print_preview_button_cb): - - Don't unref the print dialogue twice when shown from - mozilla. - -2003-11-02 Christian Persch - - * embed/mozilla/mozilla-embed.cpp: (impl_print): - - Unset silent mode after printing, should fix bug #125984. - -2003-11-01 Christian Persch - - * embed/ephy-history.c: (ephy_history_save), (hosts_added_cb), - (hosts_removed_cb), (hosts_changed_cb), (pages_added_cb), - (pages_removed_cb), (pages_changed_cb), (ephy_history_init): - - Only save history db if there have been changes. Fixes bug #125973. - -2003-11-01 Christian Persch - - * embed/mozilla/FilePicker.cpp: - * lib/ephy-file-chooser.c: (current_folder_changed_cb), - (ephy_file_chooser_init), (ephy_file_chooser_set_persist_key), - (ephy_file_chooser_get_persist_key), - (ephy_file_chooser_get_property), (ephy_file_chooser_class_init), - (ephy_file_chooser_new): - * lib/ephy-file-chooser.h: - - Don't set the persist key on object construction time. - Fixes bug #125589. - -2003-10-31 Christian Persch - - * embed/mozilla/MozillaPrivate.cpp: - * embed/mozilla/MozillaPrivate.h: - * embed/mozilla/PrintingPromptService.cpp: - - Correctly set the embed for the print dialogue. - -2003-10-31 Marco Pesenti Gritti - - * embed/mozilla/ContentHandler.cpp: - * lib/ephy-file-helpers.c: - * lib/ephy-file-helpers.h: - - Use gnomevfs helper to open applications, drop our own. - -2003-10-31 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (set_drag_cursor): - * lib/egg/egg-toolbar-editor.c: (set_drag_cursor): - - Set the cursor hotspot to something sensible. All bugs - seem to be gone here, feel free to report more ;) - -2003-10-31 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb): - - When changing toolbar unhighlight the old one, not the new - -2003-10-30 Christian Persch - - * embed/mozilla/mozilla-embed-single.cpp: (getUILang): - * configure.in: - - Yet another mozilla API change. - -2003-10-30 Marco Pesenti Gritti - - * embed/mozilla/FilePicker.cpp: - - Do not require a parent window - -2003-10-30 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (drag_data_received_cb): - - Fix creation of special drag types items - -2003-10-30 Marco Pesenti Gritti - - * lib/ephy-dnd.c: (add_one_netscape_url), (add_one_uri), - (add_one_topic): - * lib/ephy-dnd.h: - * lib/widgets/ephy-tree-model-sort.c: - (each_property_get_data_binder): - * src/ephy-favicon-action.c: (each_url_get_data_binder): - - Add a title param to dnd iterator and remove unused screen - location params. - -2003-10-29 Christian Persch - - * embed/ephy-history.c: (ephy_history_add_host), - (ephy_history_get_host): - * embed/ephy-history.h: - - Add public function to get a host node from a page url. - - * src/ephy-tab.c: (address_has_web_scheme), (ephy_tab_address_cb), - (ephy_tab_zoom_changed_cb), (open_link_in_new_tab), - (ephy_tab_init): - - Persist zoom settings per host. - -2003-10-29 Soren Sandmann - - * lib/egg/egg-editable-toolbar.c: (drag_data_received_cb), - (free_dragged_item), (toolbar_drag_drop_cb), - (toolbar_drag_motion_cb), (toolbar_drag_leave_cb), - (toolbar_added_cb), (item_removed_cb): - - Make it use new api and make the highlighting a good deal - smoother. - -2003-10-29 Marco Pesenti Gritti - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/EventContext.cpp: - - We cant cache mDOMDocument, it changes for - every document loaded. - Remove some unused methods from definition. - -2003-10-29 Marco Pesenti Gritti - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - - Make some vars private, remove an unused one. - - * embed/mozilla/EventContext.cpp: - - Use the content dom document to determine - is_framed_page. - -2003-10-29 Xan Lopez - - * lib/ephy-prefs.h: - - Forgot this. - -2003-10-29 Xan Lopez - - * embed/downloader-view.c: (downloader_view_remove_download): - - Implement smart selection in the downloader view. - - * data/epiphany.schemas.in: - * embed/ephy-embed-popup-control.c: - (embed_popup_download_link_cmd): - * embed/mozilla/EphyHeaderSniffer.cpp: - * lib/ephy-prefs.h: - * src/popup-commands.c: (popup_cmd_download_link): - - Make persist downloads store the files in the download dir - automatically without asking the user (key only accessible via - gconf atm). CH downloads still need fixing. - -2003-10-28 Christian Persch - - * src/prefs-dialog.c: (sort_detectors), (create_optionmenu), - (prefs_dialog_init): - - Always list "Off" as first item in the list of autodetectors. - Fixes bug #125723. - -2003-10-28 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_import): - - Unref the store once added to the combo. - -2003-10-28 Marco Pesenti Gritti - - * data/Makefile.am: - - Build nautilus server only when the view is enabled - -2003-10-28 Christian Persch - - * embed/mozilla/ContentHandler.cpp: - (MimeAskActionDialog::MimeAskActionDialog): - - Add sanity check. - -2003-10-28 Marco Pesenti Gritti - - * 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. - -2003-10-27 Marco Pesenti Gritti - - * embed/mozilla/EphyBrowser.cpp: - - Fix page cloning, I was query descriptors interface - on webBrowser instead of docshell. - -2003-10-27 Marco Pesenti Gritti - - * embed/mozilla/EphyBrowser.cpp: - - We need to force the encoding to be able - to unset it. - -2003-10-27 Christian Persch - - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/EphyHeaderSniffer.h: - - Implement filechooser for ASK_DESTINATION. - -2003-10-27 Marco Pesenti Gritti - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/mozilla-embed.cpp: - - Solving the wrapper mess THE END - - An about:blank document is created syncronously - on _init, which means there are no more race conditions ! - Mozilla api is CRACK. - -2003-10-27 Marco Pesenti Gritti - - * embed/mozilla/EphyBrowser.cpp: - * embed/mozilla/EphyBrowser.h: - * embed/mozilla/EphyWrapper.cpp: - * embed/mozilla/EphyWrapper.h: - * embed/mozilla/EventContext.cpp: - * embed/mozilla/EventContext.h: - * embed/mozilla/Makefile.am: - * embed/mozilla/mozilla-embed-persist.cpp: - * embed/mozilla/mozilla-embed.cpp: - * embed/mozilla/mozilla-embed.h: - - Solving the wrapper mess Episode 3. - Rename to EphyBrowser and add sanity checks. - GtkMozEmbed initialize the browser on realize, that - means until that we shouldnt use most of the EphyBrowser - methods. I'm quite sure there are not such cases in - current implementation, otherwise we would have had - problems also before. Though better avoid problems - in the future. - -2003-10-27 Marco Pesenti Gritti - - * embed/mozilla/EphyWrapper.cpp: - * embed/mozilla/EphyWrapper.h: - * embed/mozilla/mozilla-embed.cpp: - - Solving the wrapper mess Episode 2. - - Create EphyWrapper on _init. Initialize it - on realize. Initialize the document part of it - on state changed (mozilla is full of hacks like this, - wouldnt have it be simpler to create an event ?;). - -2003-10-27 Marco Pesenti Gritti - - * embed/ephy-embed.c: - * embed/ephy-embed.h: - * embed/mozilla/EphyWrapper.cpp: - * embed/mozilla/EphyWrapper.h: - * embed/mozilla/EventContext.cpp: - * embed/mozilla/mozilla-embed-persist.cpp: - * embed/mozilla/mozilla-embed.cpp: - - Solving the wrapper mess Episode 1. - - Cleanup EphyWrapper to use higher level apis. - Do not set docshell history explicitly, it seem - to pickup the registered one nicely. - -2003-10-27 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (egg_editable_toolbar_set_fixed): - - Sink after ref - -2003-10-27 Marco Pesenti Gritti - - * src/ephy-nautilus-view.c: (gnv_embed_dom_mouse_click_cb), - (gnv_popup_cmd_new_window), (gnv_popup_cmd_image_in_new_window), - (gnv_popup_cmd_frame_in_new_window): - - Sync with nautilus api - -2003-10-27 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (create_dock), (set_fixed_style), - (unset_fixed_style), (toolbar_changed_cb), (unparent_fixed), - (update_fixed), (toolbar_removed_cb), (toolbars_clean), - (egg_editable_toolbar_construct), (egg_editable_toolbar_init), - (egg_editable_toolbar_finalize), (egg_editable_toolbar_set_fixed): - * lib/egg/egg-editable-toolbar.h: - * src/toolbar.c: (toolbar_style_sync), (create_spinner), - (toolbar_init): - - Fixup spinner when resetting the toolbar model. - Update spinner on toolbar style change. - Fix a typo in toolbars creation that wa causing fs toolbar - to be hidden. - -2003-10-26 Christian Persch - - * src/toolbar.c: (toolbar_init), (toolbar_finalize): - - Fix refounting of the spinner. - -2003-10-26 Christian Persch - - * lib/ephy-file-chooser.c: (current_folder_changed_cb), - (ephy_file_chooser_set_persist_key): - - Convert filenames from/to UTF-8 when persisting the directory. - -2003-10-26 Christian Persch - - * src/window-commands.c: (open_response_cb): - - Really used the converted string [in UTF-8] instead of - the directly using filename. - -2003-10-26 Christian Persch - - * src/bookmarks/ephy-bookmarks-editor.c: - (import_dialog_response_cb): - - One set of buttons is enough. - -2003-10-26 Christian Persch - - 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. - -2003-10-26 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb): - - Resync api - -2003-10-25 Christian Persch - - * data/default-prefs.js: - - Use "" instead of null, the new mozilla prefs parser doesn't - recognise null and aborts. Thanks to Crispin for alerting me - to this. - -2003-10-25 Christian Persch - - * data/default-prefs.js: - - Add missing font.size prefs for zh-HK font group. - -2003-10-25 Marco Pesenti Gritti - - * embed/Makefile.am: - * embed/ephy-command-manager.c: (ephy_command_manager_get_type), - (ephy_command_manager_base_init), - (ephy_command_manager_do_command), - (ephy_command_manager_can_do_command), - (ephy_command_manager_observe_command): - * embed/ephy-command-manager.h: - - Interface for commands. Useful for undo. (cmd_undo works). - - * embed/ephy-embed.c: - * embed/ephy-embed.h: - - Remove all clipboard calls. - - * embed/mozilla/EphyWrapper.cpp: - * embed/mozilla/EphyWrapper.h: - * embed/mozilla/Makefile.am: - * embed/mozilla/mozilla-embed.cpp: - - Implement part of the commands interface. - No regressions. - - * src/window-commands.c: (window_cmd_edit_cut), - (window_cmd_edit_copy), (window_cmd_edit_paste), - (window_cmd_edit_select_all): - - Implement clipboard using commands. - -2003-10-25 Xan Lopez - - * embed/downloader-view.c: (downloader_view_build_ui), - (download_dialog_delete_cb): - - Remove a debug print, don't do anything on wm delete event. - -2003-10-25 Marco Pesenti Gritti - - * embed/mozilla/GtkNSSDialogs.cpp: - * embed/mozilla/GtkNSSDialogs.h: - * embed/mozilla/GtkNSSKeyPairDialogs.cpp: - * embed/mozilla/GtkNSSKeyPairDialogs.h: - * embed/mozilla/Makefile.am: - - Resync with galeon. - -2003-10-25 Xan Lopez - - * data/glade/epiphany.glade: - * embed/downloader-view.c: (downloader_view_init), - (downloader_view_finalize), (get_row_from_download), - (download_changed_cb), (downloader_view_add_download), - (downloader_view_build_ui), (downloader_view_remove_download), - (download_dialog_delete_cb): - - Remove open button, autclose when there are no downloads left. - -2003-10-25 David Bordoley - - * src/ephy-tab.c: (build_net_state_message): - - don't pollute the statusbar with a "Done." message. - -2003-10-24 Christian Persch - - * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_response_cb), - (view_node_selected_cb), (automatic_toggled_cb), - (ephy_encoding_dialog_init): - * data/glade/epiphany.glade: - - Made encoding dialog auto-apply. - -2003-10-24 Marco Pesenti Gritti - - * lib/egg/egg-toolbar-editor.c: (set_drag_cursor), - (event_box_realize_cb), (editor_create_item): - - Use special drag cursors also for editor. - Do not hide separator when dragging it. - -2003-10-24 David Bordoley - - * data/art/hand-open.png: - - Took the open hand icon used in eog, did some - gimp magic. Why am I up at 4:30 in the morning - doing this? - -2003-10-25 Christian Persch - - * embed/mozilla/EphyHeaderSniffer.cpp: - - Use translatable title for untitled pages. - -2003-10-24 Marco Pesenti Gritti - - * 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. - -2003-10-23 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (create_item_from_action), - (egg_editable_toolbar_construct): - - Remove invalid items - -2003-10-23 Marco Pesenti Gritti - - * src/toolbar.c: (toolbar_spinner_start), (toolbar_spinner_stop): - - Make the spinner spin again. - -2003-10-23 Marco Pesenti Gritti - - * data/ui/epiphany-toolbar.xml: - * lib/egg/egg-editable-toolbar.c: (get_toolbar_position), - (get_dock_nth), (get_toolbar_nth), (create_dock), (update_fixed), - (toolbar_added_cb), (toolbar_removed_cb), - (egg_editable_toolbar_construct), (egg_editable_toolbar_init), - (egg_editable_toolbar_finalize), (egg_editable_toolbar_show), - (egg_editable_toolbar_hide), (egg_editable_toolbar_set_fixed): - * lib/egg/egg-editable-toolbar.h: - * src/Makefile.am: - * src/toolbar.c: (toolbar_setup_actions), (toolbar_init), - (toolbar_spinner_start), (toolbar_spinner_stop): - - Move the spinner in his own mini toolbar. - -2003-10-23 Xan Lopez - - * embed/mozilla/EphyEventListener.cpp: - * embed/mozilla/EphyWrapper.cpp: - * embed/mozilla/EphyWrapper.h: - * embed/mozilla/EventContext.cpp: - - Every time you change API God kills a kitten. - Think of the kitten!! (That means you, Mozilla :) - -2003-10-22 Marco Pesenti Gritti - - * data/ui/Makefile.am: - - Add xml files to extra data - -2003-10-22 Marco Pesenti Gritti - - * NEWS: - - Update for 1.1.0 - -2003-10-21 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (drag_begin_cb), (drag_end_cb), - (set_drag_cursor), (unset_drag_cursor), (create_item_from_action), - (create_item), (data_is_separator), (set_status_pending), - (get_status_pending), (drag_data_received_cb), (remove_toolbar_cb), - (popup_toolbar_context_menu_cb), (free_dragged_item), - (toolbar_drag_drop_cb), (toolbar_drag_motion_cb), - (toolbar_drag_leave_cb), (create_toolbar), (item_removed_cb), - (egg_editable_toolbar_set_drag_dest): - * lib/egg/egg-toolbar-editor.c: (drag_begin_cb), (drag_end_cb), - (editor_create_item): - - Use new api for highlighting and make it pick up and drop behavior - -2003-10-20 Christian Persch - - Encoding menu improvements, Episode V: - MPT strikes back. - - * data/glade/epiphany.glade: - * embed/ephy-encodings.c: (ephy_encodings_finalize), - (ephy_encodings_init): - * embed/ephy-encodings.h: - * src/ephy-encoding-dialog.c: (encoding_is_automatic), - (sync_embed_cb), (activate_choice), - (ephy_encoding_dialog_response_cb), (view_node_selected_cb), - (view_node_activated_cb), (ephy_encoding_dialog_init): - - Replace the 2-pane view with a single list, and restore - the automatic and manual radio buttons. - -2003-10-20 Marco Pesenti Gritti - - * src/ephy-history-window.c: (setup_filters), - (ephy_history_window_construct): - - Make sure that both sites and hosts are filtered - on construct - -2003-10-19 Marco Pesenti Gritti - - * embed/downloader-view.c: (downloader_view_build_ui): - * src/language-editor.c: (language_editor_set_view): - - unref the model once it's set in the view - -2003-10-19 Marco Pesenti Gritti - - * src/ephy-location-action.c: (remove_completion_actions): - - Index are not identifiers - -2003-10-19 Marco Pesenti Gritti - - * embed/ephy-history.c: (update_host_on_child_remove), - (update_hosts): - - We cant remove while iterating childrens, build a list - and remove later. - -2003-10-19 Christian Persch - - * src/ephy-location-action.c: (init_actions_list): - - Thaw smartbookmarks node after use. - -2003-10-19 Marco Pesenti Gritti - - * TODO: - * embed/ephy-download.c: (ephy_download_class_init), - (ephy_download_init), (update_remaining_time), - (ephy_download_get_remaining_time): - * embed/ephy-download.h: - - Update remaning time every two seconds - - * embed/mozilla/mozilla-download.cpp: - - Source/target was swapped - - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/EphyHeaderSniffer.h: - - Fix style - -2003-10-19 Marco Pesenti Gritti - - * embed/ephy-history.c: (update_hosts): - - do not try to remove All node - -2003-10-19 Marco Pesenti Gritti - - * embed/mozilla/mozilla-embed-persist.cpp: - - cleanup. Fix warning when fetching favicons. - -2003-10-18 Marco Pesenti Gritti - - * embed/mozilla/EphyHeaderSniffer.cpp: - - Looks like I copied a bug from mozilla js code. - Do not show bogus checkbox. - -2003-10-18 Marco Pesenti Gritti - - * embed/mozilla/MozDownload.cpp: - - initialize cur/total size - -2003-10-18 Marco Pesenti Gritti - - * TODO: - * embed/mozilla/MozDownload.cpp: - * embed/mozilla/MozDownload.h: - - fixup style - -2003-10-18 Marco Pesenti Gritti - - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/EphyHeaderSniffer.h: - - Add nsIAuthPrompt implementation, necessary - to make downloads on authenticated pages work. - -2003-10-18 Christian Persch - - * src/bookmarks/ephy-bookmarks.c: (add_to_favorites), - (history_site_visited_cb): - * src/ephy-favorites-menu.c: (ephy_favorites_menu_get_type), - (ephy_favorites_menu_clean), (ephy_favorites_menu_rebuild), - (ephy_favorites_menu_set_property), - (ephy_favorites_menu_get_property), - (ephy_favorites_menu_class_init), (do_updates), (fav_removed_cb), - (fav_added_cb), (ephy_favorites_menu_init), - (ephy_favorites_menu_finalize), (ephy_favorites_menu_new): - * src/ephy-favorites-menu.h: - * src/ephy-window.c: - * src/ephy-window.h: - - Get rid of the last vestige of ephy_window_update_control(), and make - the favourites menu self-updating. - -2003-10-18 Marco Pesenti Gritti - - * src/ephy-window.c: (setup_window): - - Show encoding menu also when empty, fix - oddness when opening View menu - -2003-10-18 Marco Pesenti Gritti - - * embed/mozilla/EphyWrapper.cpp: - - Fix string for old mozilla versions. - -2003-10-18 Christian Persch - - Encoding menu improvements, Part 4: - The Rewrite. - - * data/glade/epiphany.glade: - * data/ui/epiphany-ui.xml: - * data/ui/nautilus-epiphany-view.xml.in: - * embed/Makefile.am: - * embed/ephy-embed-shell.c: (ephy_embed_shell_init), - (ephy_embed_shell_finalize), (ephy_embed_shell_new), - (ephy_embed_shell_get_encodings): - * embed/ephy-embed-shell.h: - * embed/ephy-embed-utils.c: (ephy_embed_utils_save): - * embed/ephy-embed-utils.h: - * embed/ephy-embed.c: (ephy_embed_get_encoding_info): - * embed/ephy-embed.h: - * embed/ephy-encodings.c: (ephy_encodings_get_type), - (ephy_encodings_finalize), (ephy_encodings_class_init), - (ephy_encodings_get_node), (ephy_encodings_get_encodings), - (ephy_encodings_get_detectors), (ephy_encodings_get_all), - (ephy_encodings_get_categories), (ephy_encodings_add_recent), - (ephy_encodings_get_recent), (ephy_encodings_init), - (ephy_encoding_info_free), (ephy_encodings_new): - * embed/ephy-encodings.h: - * embed/mozilla/EphyWrapper.cpp: - * embed/mozilla/EphyWrapper.h: - * embed/mozilla/Makefile.am: - * embed/mozilla/mozilla-embed.cpp: - * embed/mozilla/mozilla-notifiers.cpp: - * lib/Makefile.am: - * lib/ephy-encodings.c: - * lib/ephy-encodings.h: - * lib/ephy-langs.c: (ephy_font_languages), (ephy_font_n_languages): - * lib/ephy-langs.h: - * src/Makefile.am: - * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_get_type), - (setup_filter), (sync_embed_cb), (sync_active_tab), - (ephy_encoding_dialog_set_window), (activate_choice), - (activate_automatic), (ephy_encoding_dialog_response_cb), - (category_node_selected_cb), (view_node_selected_cb), - (view_node_activated_cb), (ephy_encoding_dialog_init), - (ephy_encoding_dialog_finalize), - (ephy_encoding_dialog_set_property), - (ephy_encoding_dialog_get_property), - (ephy_encoding_dialog_class_init), (ephy_encoding_dialog_new): - * src/ephy-encoding-dialog.h: - * src/ephy-encoding-menu.c: (ephy_encoding_menu_init), - (sort_encodings), (add_menu_item), (update_encoding_menu_cb), - (encoding_activate_cb), (add_action), - (ephy_encoding_menu_view_dialog_cb), - (ephy_encoding_menu_automatic_cb), (ephy_encoding_menu_set_window), - (ephy_encoding_menu_finalize), (ephy_encoding_menu_class_init), - (ephy_encoding_menu_new): - * src/ephy-nautilus-view.c: (gnv_bonobo_control_activate_cb), - (gnv_cmd_select_encoding), (gnv_cmd_edit_find): - * src/ephy-window.c: (ephy_window_set_active_tab), - (setup_notebook), (ephy_window_set_property), - (ephy_window_get_property), (ephy_window_class_init): - * src/language-editor.h: - * src/pdm-dialog.c: (setup_passwords_treeview), - (setup_cookies_treeview): - * src/prefs-dialog.c: (prefs_dialog_finalize), - (get_current_language_code), (fonts_language_info_cmp), - (create_fonts_language_menu), (find_encoding_in_list_cmp), - (sort_encodings), (create_optionmenu), (prefs_dialog_init): - - Made encodings menu dynamic, containing recently used items + items - related to the currently active encoding. Split encodings out as a - embed shell service, port all users over to that. Harvest all encoding - info we can get from mozilla. - -2003-10-17 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarks-editor.c: - (ephy_bookmarks_editor_show), (ephy_bookmarks_editor_class_init), - (ephy_bookmarks_editor_construct): - - Grab focus in the entry when showing because we dont - rebuild the dialog. - -2003-10-17 Marco Pesenti Gritti - - * embed/mozilla/mozilla-embed-persist.cpp: - - Fix Save As, we need ever to pass the url now. - Now hope chpe stop to bug me about things - xan broke ... - -2003-10-16 Mark McLoughlin - - Change the behaviour of --nautilus-view such that the process - doesn't exit until the last control has been destroyed. The - previous behaviour caused intermittent activation failure - when the process timed out and died before the view could be - created - bug #124768. - - * src/ephy-main.c: - (ephy_main_start): don't unref the shell when started with - --nautilus-view. - (ephy_main_dummy_url_argument), - (ephy_main_translate_url_arguments): create a dummy argument - when no arguments are supplied which will cause the default - window to be opened. - - * src/ephy-shell.c: - (ephy_nautilus_view_all_controls_dead): unref the shell - here causing the process to exit. - (ephy_nautilus_view_init_factory): setup the all_controls_dead - callback. - (ephy_nautilus_view_new): instrument the control. - -2003-10-17 Ettore Perazzoli - - * src/bookmarks/ephy-bookmarks-editor.c - (ephy_bookmarks_editor_construct): Make the search entry grab the - focus, for added ease of use when using the keyboard. - -2003-10-15 Christian Persch - - * embed/mozilla/EventContext.cpp: - - Include config.h. - -2003-10-14 Kristian Rietveld - - * configure.in: also support mozilla 1.5. (Works fine, verified with - mozilla 1.5rc2). - -2003-10-14 Marco Pesenti Gritti - - * lib/widgets/ephy-location-entry.c: - (ephy_location_entry_class_init), - (ephy_location_entry_construct_contents), - (ephy_location_entry_init), (ephy_location_entry_activate): - * lib/widgets/ephy-location-entry.h: - * src/ephy-history-window.c: (confirmation_dialog_response_cb): - * src/ephy-location-action.c: (remove_completion_actions), - (add_completion_actions), (connect_proxy), - (ephy_location_action_set_address): - * src/ephy-location-action.h: - * src/toolbar.c: - * src/toolbar.h: - - Make location a normal entry. - -2003-10-13 Marco Pesenti Gritti - - * lib/widgets/ephy-location-entry.c: - (ephy_location_entry_set_completion): - - Unref completion - -2003-10-13 Christian Persch - - * embed/ephy-embed-single.c: (ephy_embed_single_free_passwords): - * embed/ephy-embed-single.h: - * embed/ephy-embed-utils.c: - (ephy_embed_utils_build_encodings_submenu): - * embed/mozilla/mozilla-embed-single.cpp: - * embed/mozilla/mozilla-notifiers.cpp: - * lib/Makefile.am: - * lib/ephy-encodings.c: (ephy_encoding_info_free), - (encodings_info_cmp), (ephy_encodings_get_list): - * lib/ephy-encodings.h: - * lib/ephy-langs.c: (ephy_lang_group_info_free), - (lang_group_info_cmp), (ephy_lang_get_group_list), - (fonts_language_info_cmp), (ephy_font_langs_get_codes_list), - (ephy_font_langs_get_list): - * lib/ephy-langs.h: - * po/POTFILES.in: - * src/ephy-encoding-menu.c: (ephy_encoding_menu_set_window), - (ephy_encoding_menu_rebuild): - * src/prefs-dialog.c: (prefs_dialog_finalize), - (get_current_language_code), (create_fonts_language_menu), - (default_encoding_menu_changed_cb), (find_encoding_in_list_cmp), - (create_default_encoding_menu): - - Encodings menu improvements, part 3: Refactored the encodings - list; it no longer is neccessary to have it in the embed single. - Ported all callers to new infrastructure. - -2003-10-13 Marco Pesenti Gritti - - * data/art/Makefile.am: - * lib/egg/Makefile.am: - * lib/egg/egg-editable-toolbar.c: (set_drag_cursor): - - Use a costum icon for the cursor - -2003-10-13 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (set_drag_cursor), - (unset_drag_cursor), (create_item), - (egg_editable_toolbar_set_edit_mode): - - Better implementation of cursor. - -2003-10-13 Marco Pesenti Gritti - - * lib/egg/egg-editable-toolbar.c: (enter_notify_cb), - (leave_notify_cb), (create_item): - - Show a different cursor when hovering toolbar items - in edit mode. - -2003-10-13 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarks-editor.c: (add_bookmarks_source), - (import_dialog_response_cb), (cmd_bookmarks_import): - - Port to new combo. - -2003-10-13 Marco Pesenti Gritti - - * src/ephy-history-window.c: (add_by_date_filter), - (time_combo_changed_cb), (build_search_box), (save_date_filter): - - Port to new combo. Size is wrong, prolly a bug in combo - size request, will look at it later. - -2003-10-13 Christian Persch - - * embed/mozilla/mozilla-notifiers.cpp: - (get_system_language): - - Return "en" when in C locale. - -2003-10-11 Christian Persch - - * embed/mozilla/EphyWrapper.cpp: - - Include config.h. - -2003-10-11 Christian Persch - - * embed/mozilla/EphyWrapper.cpp: - * embed/mozilla/EphyWrapper.h: - * embed/mozilla/mozilla-embed.cpp: - - Adapt EphyWrapper::GetEncoding to varying mozilla APIs. - -2003-10-11 Christian Persch - - * embed/ephy-embed.c: (ephy_embed_get_encoding): - * embed/ephy-embed.h: - * embed/mozilla/EphyWrapper.cpp: - * embed/mozilla/EphyWrapper.h: - * embed/mozilla/mozilla-embed.cpp: - * src/ephy-encoding-menu.c: (ephy_encoding_menu_verb_cb), - (update_encoding_menu_cb), (ephy_encoding_menu_set_window): - - Encoding menu improvements, part 2: Implement ephy_embed_get_encoding, - and use it in the menu to indicate the encoding of the loaded page. - -2003-10-11 Christian Persch - - * src/ephy-encoding-menu.c: (ephy_encoding_menu_get_type), - (ephy_encoding_menu_verb_cb), (ephy_encoding_menu_init), - (ephy_encoding_menu_set_window), (ephy_encoding_menu_set_property), - (ephy_encoding_menu_get_property), (ephy_encoding_menu_class_init), - (ephy_encoding_menu_new), (ephy_encoding_menu_rebuild): - * src/ephy-encoding-menu.h: - - Encodings menu improvements, part 1: Ported to new gtk ui manager - api, and general code cleanups. - -2003-10-10 Marco Pesenti Gritti - - * embed/mozilla/FilePicker.cpp: - * embed/mozilla/FilePicker.h: - * embed/mozilla/mozilla-embed-single.cpp: - * lib/Makefile.am: - * lib/ephy-dialog.c: (get_pref_type_from_widget), - (prefs_connect_signals), (load_props), (save_props): - * lib/ephy-gui.h: - * lib/widgets/Makefile.am: - * src/Makefile.am: - * src/bookmarks/Makefile.am: - * src/bookmarks/ephy-topic-action.c: - * src/ephy-history-window.c: - - Reenable deprecated api where necessary, fixup some - header inclusions. - Remove unused color picker control in ephy-dialog. - Remove unused file types optionmenu in Filepicker. - -2003-10-07 Marco Pesenti Gritti - - * lib/widgets/ephy-tree-model-node.c: (root_child_removed_cb), - (get_path_real), (root_child_added_cb), - (ephy_tree_model_node_update_node), (root_child_changed_cb), - (root_children_reordered_cb), (root_destroy_cb), - (ephy_tree_model_node_class_init), (ephy_tree_model_node_init), - (ephy_tree_model_node_finalize), - (ephy_tree_model_node_add_prop_column), - (ephy_tree_model_node_add_func_column), - (ephy_tree_model_node_get_column_type), - (ephy_tree_model_node_get_value), (ephy_tree_model_node_get_iter), - (ephy_tree_model_node_get_path), (ephy_tree_model_node_iter_next), - (ephy_tree_model_node_iter_children), - (ephy_tree_model_node_iter_n_children), - (ephy_tree_model_node_iter_nth_child), - (ephy_tree_model_node_iter_from_node), - (ephy_tree_model_node_tree_model_init): - * lib/widgets/ephy-tree-model-node.h: - - Merge fixes from branch and clean up. - -2003-10-16 Marco Pesenti Gritti - - * embed/mozilla/ContentHandler.cpp: - - pass handler with full path, not only - exec name. I dont get how it worked before. - -2003-10-16 Marco Pesenti Gritti - - * lib/widgets/ephy-cell-renderer-progress.c: - (ephy_cell_renderer_progress_init), - (ephy_cell_renderer_progress_set_value), - (ephy_cell_renderer_progress_set_property), (compute_dimensions), - (ephy_cell_renderer_progress_get_size), - (ephy_cell_renderer_progress_render), - (ephy_cell_renderer_progress_finalize), - (ephy_cell_renderer_progress_class_init): - * lib/widgets/ephy-cell-renderer-progress.h: - - fix for unknown/failed states - -2003-10-16 Xan Lopez - - * embed/mozilla/MozDownload.cpp: - * embed/mozilla/MozDownload.h: - - Unbreak for real. - -2003-10-16 Xan Lopez - - * TODO: - * embed/downloader-view.c: - * embed/mozilla/MozDownload.cpp: - - Evil marco loves to break my changes, ahem. - -2003-10-16 Marco Pesenti Gritti - - * TODO: - * embed/downloader-view.c: (downloader_view_init), - (get_row_from_download), (download_changed_cb), - (downloader_view_add_download), (downloader_view_build_ui), - (download_dialog_pause_cb), (downloader_view_remove_download), - (download_dialog_abort_cb): - * embed/ephy-download.c: (ephy_download_get_state): - * embed/ephy-download.h: - * embed/mozilla/MozDownload.cpp: - * embed/mozilla/MozDownload.h: - * embed/mozilla/mozilla-download.cpp: - - Implement state. - -2003-10-16 Marco Pesenti Gritti - - * data/glade/epiphany.glade: - - Remove details - - * embed/downloader-view.c: - - Remove details button leftover - -2003-10-16 Marco Pesenti Gritti - - * embed/mozilla/MozDownload.cpp: - - Fix some bugs - -2003-10-16 Marco Pesenti Gritti - - * embed/ephy-embed-persist.h: - * embed/ephy-favicon-cache.c: (ephy_favicon_cache_download): - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/MozDownload.cpp: - * embed/mozilla/MozDownload.h: - - Implement no_view downloads and use for favicons. - -2003-10-15 Marco Pesenti Gritti - - * embed/mozilla/MozDownload.cpp: - - Fix reference problem when using persist. - -2003-10-15 Xan Lopez - - * data/glade/epiphany.glade: - * embed/downloader-view.c: (downloader_view_init), - (downloader_view_finalize), (download_changed_cb), - (downloader_view_add_download), (downloader_view_build_ui), - (download_dialog_pause_cb), (downloader_view_remove_download), - (download_dialog_abort_cb), (download_dialog_delete_cb): - - Re-add abort UI, drop details - Serious glade cleanup is left as an exercise for the reader - -2003-10-15 Xan Lopez - - * data/glade/epiphany.glade: - * embed/downloader-view.c: (downloader_view_add_download), - (download_dialog_pause_cb), (download_dialog_abort_cb): - * embed/downloader-view.h: - - Fix stop button (UI not updated yet) - - * embed/mozilla/MozDownload.cpp: - - Init mEmbedPersist to nsnull (Marco) - -2003-10-14 Marco Pesenti Gritti - - * embed/downloader-view.c: (format_interval), - (download_changed_cb), (downloader_view_build_ui): - * embed/ephy-download.c: (ephy_download_get_remaining_time), - (ephy_download_get_current_progress), - (ephy_download_get_total_progress), (ephy_download_get_percent), - (ephy_download_get_elapsed_time): - * embed/ephy-download.h: - * embed/mozilla/MozDownload.cpp: - * embed/mozilla/MozDownload.h: - * embed/mozilla/mozilla-download.cpp: - * lib/widgets/Makefile.am: - - Get back the treeview info to work. Use - procman progress renderer for percent. - -2003-10-14 Marco Pesenti Gritti - - * embed/downloader-view.c: (download_changed_cb), - (downloader_view_add_download): - - Fix percent/filenamee - -2003-10-14 Marco Pesenti Gritti - - * embed/downloader-view.c: (download_changed_cb), - (downloader_view_add_download), (downloader_view_build_ui), - (downloader_treeview_selection_changed_cb): - * embed/ephy-download.c: (ephy_download_class_init), - (ephy_download_new), (ephy_download_get_name): - * embed/ephy-download.h: - * embed/mozilla/MozDownload.cpp: - * embed/mozilla/MozDownload.h: - - Implement a download changed signal and try to update - percent in the treeview. - -2003-10-14 Marco Pesenti Gritti - - * embed/ephy-download.c: (ephy_download_get_source), - (ephy_download_get_target), (ephy_download_get_percent): - * embed/ephy-download.h: - * embed/mozilla/mozilla-download.cpp: - - Implement basic download info getters. - -2003-10-14 Marco Pesenti Gritti - - * embed/Makefile.am: - * embed/downloader-view.c: (destroy_details_cb), - (downloader_view_update_controls), - (downloader_view_update_details), - (downloader_view_set_download_info), - (downloader_view_add_download), (downloader_view_build_ui), - (download_dialog_pause_cb), (download_dialog_abort_cb), - (downloader_treeview_selection_changed_cb), - (download_dialog_delete_cb), (open_selection_foreach), - (download_dialog_open_cb): - * embed/downloader-view.h: - * embed/ephy-download.c: (ephy_download_get_type), - (ephy_download_class_init), (ephy_download_init), - (ephy_download_new), (ephy_download_cancel), (ephy_download_pause), - (ephy_download_resume): - * embed/ephy-download.h: - * embed/ephy-embed-shell.c: (impl_get_downloader_view): - * embed/mozilla/EphyDownload.cpp: - * embed/mozilla/EphyDownload.h: - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/Makefile.am: - * embed/mozilla/MozDownload.cpp: - * embed/mozilla/MozDownload.h: - * embed/mozilla/MozRegisterComponents.cpp: - * embed/mozilla/mozilla-download.cpp: - * embed/mozilla/mozilla-download.h: - * embed/mozilla/mozilla-embed-persist.cpp: - * lib/Makefile.am: - * lib/widgets/Makefile.am: - * src/Makefile.am: - * src/bookmarks/Makefile.am: - - Big architectural changes. Now I think it make sense, - but we need to rewrite a lot of ui code. - -2003-10-14 Xan Lopez - - * embed/downloader-view.c: (downloader_view_class_init), - (download_dialog_pause_cb), (delete_pending_foreach): - * embed/mozilla/mozilla-downloader-view.cpp: - * embed/mozilla/mozilla-downloader-view.h: - - Some cleanups. - -2003-10-14 Xan Lopez - - * embed/downloader-view.c: (download_dialog_abort_cb), - (downloader_cancel_download): - * embed/mozilla/mozilla-downloader-view.cpp: - - Evil stuff. - -2003-10-14 Xan Lopez - - * embed/ephy-embed-shell.c: (impl_get_downloader_view): - * embed/mozilla/mozilla-downloader-view.cpp: - * embed/mozilla/mozilla-downloader-view.h: - - And More. - -2003-10-13 Xan Lopez - - * embed/mozilla/EphyDownload.h: - - Cleanup - - * embed/mozilla/Makefile.am: - * embed/mozilla/mozilla-downloader-view.cpp: - * embed/mozilla/mozilla-downloader-view.h: - - Yet More Work. - -2003-10-13 Xan Lopez - - * embed/downloader-view.c: (downloader_view_class_init), - (download_dialog_pause_cb), (download_dialog_abort_cb), - (delete_pending_foreach), (downloader_cancel_download), - (downloader_pause_download), (downloader_resume_download): - * embed/downloader-view.h: - - More work. - -2003-10-07 Marco Pesenti Gritti - - * embed/mozilla/EphyHeaderSniffer.cpp: - - Fix crash when download start - -2003-10-07 Marco Pesenti Gritti - - * embed/ephy-embed-persist.h: - * embed/ephy-embed-popup-control.c: (save_property_url), - (embed_popup_download_link_cmd), (embed_popup_save_image_as_cmd), - (save_url), (embed_popup_save_page_as_cmd), - (embed_popup_save_background_as_cmd): - * embed/ephy-embed-utils.c: (ephy_embed_utils_save): - * embed/ephy-embed-utils.h: - * embed/mozilla/EphyDownload.cpp: - * embed/mozilla/EphyDownload.h: - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/EphyHeaderSniffer.h: - * embed/mozilla/mozilla-embed-persist.cpp: - * src/popup-commands.c: (save_property_url), - (popup_cmd_download_link), (popup_cmd_save_image_as), - (popup_cmd_save_background_as): - * src/window-commands.c: (window_cmd_file_save_as): - - Make embed-persist use nsIDownload and cleanup api a bit. - -2003-10-06 Xan Lopez - - * embed/mozilla/ContentHandler.cpp: - * embed/mozilla/EphyWrapper.cpp: - * embed/mozilla/EphyWrapper.h: - * embed/mozilla/EventContext.cpp: - * embed/mozilla/GlobalHistory.h: - * embed/mozilla/ProgressListener.cpp: - * embed/mozilla/ProgressListener.h: - * embed/mozilla/mozilla-embed-persist.cpp: - - Remove ProgressListener again, hopefully everything - compiles without it now. - -2003-10-06 Xan Lopez - - * embed/mozilla/EphyDownload.cpp: - * embed/mozilla/EphyDownload.h: - * embed/mozilla/EphyHeaderSniffer.cpp: - * embed/mozilla/EphyHeaderSniffer.h: - * embed/mozilla/MozRegisterComponents.cpp: - * embed/mozilla/ProgressListener.cpp: - * embed/mozilla/ProgressListener.h: - * embed/mozilla/mozilla-embed-persist.cpp: - - Cleanups. - -2003-10-06 Xan Lopez - - * embed/mozilla/Makefile.am: - * embed/mozilla/MozRegisterComponents.cpp: - * embed/mozilla/mozilla-embed-persist.cpp: - - Make it work, behold the all new EphyDownload. - -2003-10-06 Christian Persch - - * src/ephy-notebook.c: (find_notebook_at_pointer), - (ephy_notebook_init), (ephy_notebook_finalize): - - Allow dragging of tabs to a window even when the tabs bar is not - shown. Fixes bug #123908. - -2003-10-06 Marco Pesenti Gritti - - * src/ephy-history-window.c: (setup_filters), - (site_node_selected_cb), (search_entry_search_cb), - (time_optionmenu_changed_cb): - - More granular filtering update - -2003-10-06 Marco Pesenti Gritti - - * embed/ephy-history.c: (update_host_on_child_remove), - (update_hosts), (page_removed_from_host_cb), (ephy_history_init), - (ephy_history_finalize): - - Update host last visit when removing sites from it. - -2003-10-06 Marco Pesenti Gritti - - * src/ephy-history-window.c: (search_entry_search_cb): - - update priv->select_node, signals are blocked so it would - not be updated otherwise - -2003-10-06 Marco Pesenti Gritti - - * lib/widgets/ephy-node-view.c: (did_not_drag): - - Do not unselect all on single selection mode, to not generate - useless node selection changes. - - * src/ephy-history-window.c: (site_node_selected_cb): - - Do not refilter if the new selected node is the same - as the old one. - -2003-10-03 Christian Persch - - * lib/egg/egg-toolbars-model.c: (safe_save_xml), - (egg_toolbars_model_load): - - Check for failed load of the toolbars model from the XML file, - and fix the check for failed save of same to the XML file. - -2003-10-02 Marco Pesenti Gritti - - * src/bookmarks/ephy-bookmarks-menu.c: (add_bookmarks_menu), - (ephy_bookmarks_menu_rebuild): - - Use new gtk api for empty submenus - -2003-10-07 Marco Pesenti Gritti - - * src/ephy-completion-model.c: (node_iter_from_node), - (ephy_completion_model_init), (ephy_completion_model_get_value), - (ephy_completion_model_get_iter), (ephy_completion_model_get_path), - (ephy_completion_model_iter_next), - (ephy_completion_model_iter_children), - (ephy_completion_model_iter_n_children), - (ephy_completion_model_iter_nth_child): - - Add stamp. - -2003-10-06 Marco Pesenti Gritti - - * lib/widgets/ephy-location-entry.c: (completion_func), - (match_selected_cb), (ephy_location_entry_construct_contents), - (ephy_location_entry_init), (sort_func), - (ephy_location_entry_set_completion): - * lib/widgets/ephy-location-entry.h: - * src/Makefile.am: - * src/ephy-completion-model.c: (ephy_completion_model_class_init), - (root_child_removed_cb), (node_iter_from_node), (get_path_real), - (root_child_added_cb), (root_child_changed_cb), (connect_signals), - (ephy_completion_model_init), - (ephy_completion_model_get_column_type), (init_text_col), - (init_action_col), (init_keywords_col), (init_relevance_col), - (ephy_completion_model_get_value), - (ephy_completion_model_get_iter): - * src/ephy-location-action.c: (connect_proxy): - - Implement our own completion model. The big part of the - new location entry impl is done. When gtk completion will - be fixed I'll be able to merge this on head. - -2003-10-05 Marco Pesenti Gritti - - * lib/widgets/ephy-location-entry.c: - (ephy_location_entry_class_init), (entry_activate_cb): - * lib/widgets/ephy-location-entry.h: - - Remove the activated signal. - - * src/ephy-location-action.c: (action_activated_cb), - (location_url_activate_cb), (remove_completion_actions), - (add_completion_actions), (connect_proxy), - (ephy_location_action_init): - - Just use entry activate signal. Implement smart - bookmarks activation. - -2003-10-05 Marco Pesenti Gritti - - * lib/ephy-node-common.h: - * lib/widgets/ephy-location-entry.c: - (ephy_location_entry_get_entry): - * lib/widgets/ephy-location-entry.h: - * src/bookmarks/ephy-bookmark-action.c: (sync_bookmark_properties): - * src/bookmarks/ephy-bookmarks-export.c: - (ephy_bookmarks_export_rdf): - * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init), - (update_has_smart_address), (ephy_bookmarks_add), - (ephy_bookmarks_set_address), (ephy_bookmarks_unset_keyword), - (ephy_bookmarks_get_smart_bookmarks): - * src/bookmarks/ephy-bookmarks.h: - - Modify smart bookmarks to use a separate root instead - of a property. - - * src/ephy-location-action.c: (remove_completion_actions), - (add_completion_actions), (connect_proxy), (init_actions_list), - (update_actions_list), (actions_child_removed_cb), - (actions_child_added_cb), (actions_child_changed_cb), - (ephy_location_action_init), (ephy_location_action_finalize): - - Implement smart bookmarks as location actions. - -2003-10-05 Marco Pesenti Gritti - - * lib/widgets/ephy-location-entry.c: (add_to_history), - (entry_activate_cb), (ephy_location_entry_construct_contents), - (ephy_location_entry_init), (save_location_history), - (ephy_location_entry_finalize), - (ephy_location_entry_clear_history): - - Implement location history. - - * lib/widgets/ephy-tree-model-node.c: (root_children_reordered_cb): - - Fixup reorder notification. - -2003-10-03 Marco Pesenti Gritti - - * lib/widgets/ephy-location-entry.c: (match_selected_cb), - (ephy_location_entry_construct_contents), - (ephy_location_entry_add_completion): - - Do not create multiple gtk completions, open the - url when a match is selected. - -2003-10-02 Marco Pesenti Gritti - - * lib/egg/Makefile.am: - * lib/egg/eggtreemodelunion.c: - * lib/egg/eggtreemodelunion.h: - - Add from libegg. - - * lib/widgets/ephy-location-entry.c: (completion_func), - (ephy_location_entry_construct_contents), - (ephy_location_entry_add_completion): - * lib/widgets/ephy-location-entry.h: - * lib/widgets/ephy-tree-model-node.c: - (ephy_tree_model_node_get_value): - * src/ephy-location-action.c: (connect_proxy): - - Merge bookmarks in autocompletion and implement - case unsensitive match. - -2003-10-02 Marco Pesenti Gritti - - * lib/widgets/ephy-location-entry.c: (completion_func), - (ephy_location_entry_init), (ephy_location_entry_add_completion): - - Costum match function to deal with prefixes. - - * lib/widgets/ephy-tree-model-node.c: - (ephy_tree_model_node_get_column_type), - (ephy_tree_model_node_get_value): - - Fix column indexes. - -2003-10-01 Marco Pesenti Gritti - - * lib/widgets/ephy-location-entry.c: (entry_button_press_cb), - (ephy_location_entry_construct_contents): - - Put back double click -> select all - -2003-10-01 Marco Pesenti Gritti - - * lib/widgets/ephy-location-entry.c: (location_focus_out_cb), - (ephy_location_entry_construct_contents), - (ephy_location_entry_init), (ephy_location_entry_finalize), - (ephy_location_entry_add_completion), - (ephy_location_entry_set_location), - (ephy_location_entry_get_location), (ephy_location_entry_activate), - (ephy_location_entry_clear_history): - * lib/widgets/ephy-location-entry.h: - - cleanups - -2003-10-01 Marco Pesenti Gritti - - * embed/ephy-history.c: (ephy_history_get_type), - (ephy_history_init), (ephy_history_visited): - * lib/Makefile.am: - * lib/ephy-autocompletion-source.c: - * lib/ephy-autocompletion-source.h: - * lib/ephy-autocompletion.c: - * lib/ephy-autocompletion.h: - * lib/widgets/Makefile.am: - * lib/widgets/ephy-autocompletion-window.c: - * lib/widgets/ephy-autocompletion-window.h: - * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_get_type), - (bookmarks_changed_cb), (bookmarks_removed_cb), - (ephy_bookmarks_init), (ephy_bookmarks_add): - - Remove old implementation completely - -2003-10-01 Marco Pesenti Gritti - - * lib/widgets/ephy-location-entry.c: - (ephy_location_entry_class_init), (editable_changed_cb), - (entry_activate_cb), (ephy_location_entry_construct_contents), - (ephy_location_entry_init), (ephy_location_entry_finalize), - (ephy_location_entry_new), (ephy_location_entry_add_completion), - (ephy_location_entry_set_location), - (ephy_location_entry_clear_history): - * lib/widgets/ephy-location-entry.h: - * lib/widgets/ephy-tree-model-node.c: - (ephy_tree_model_node_add_prop_column), - (ephy_tree_model_node_add_func_column): - * src/ephy-location-action.c: (connect_proxy): - * src/ephy-shell.c: (ephy_shell_finalize), - (ephy_shell_get_session): - * src/ephy-shell.h: - - Beginning of new location entry implementation - -2003-09-30 Marco Pesenti Gritti - - * data/epiphany.schemas.in: - * data/ui/epiphany-history-window-ui.xml: - * src/ephy-history-window.c: (set_columns_visibility), - (cmd_view_columns), (get_details_value), - (ephy_history_window_construct): - - Implement view menu. - -2003-09-30 Christian Persch - - * src/ephy-history-window.c: (build_search_box): - - Use ngettext. - -2003-09-30 Christian Persch - - * embed/print-dialog.c: (print_get_info): - - Don't pass NULL to gnome_vfs_expand_initial_tilde. - -2003-09-30 Marco Pesenti Gritti - - * embed/ephy-history.c: - * src/ephy-history-window.c: (build_search_box): - - More accurate description for Ever filter. - Keep the backend as is, so we dont have to change - it if we change history expire. - -2003-09-29 Marco Pesenti Gritti - - * data/default-prefs.js: - - Add defaults in points for fonts - -2003-09-28 Marco Pesenti Gritti - - * embed/mozilla/mozilla-embed-single.cpp: - - The file picker dir can be NULL, check before - trying to expand tilde. - - * src/bookmarks/ephy-bookmarks-editor.c: - (import_dialog_response_cb), (cmd_bookmarks_import): - - Implement import from a file - -2003-09-27 Xan Lopez - - * configure.in: - - Forgot this. - -2003-09-27 Xan Lopez - - * configure.in: - * embed/mozilla/ContentHandler.cpp: - - API sync, from galeon. - -2003-09-27 Christian Persch - - * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_import): - * src/bookmarks/ephy-bookmarks-import.h: - - Offer to import from Firebird too. - -2003-09-27 Marco Pesenti Gritti - - * lib/ephy-gui.c: (ephy_gui_get_pixbuf_from_mime_type): - - Simpler implementation. - - * lib/widgets/ephy-spinner.c: (ephy_spinner_load_images): - * src/ephy-shell.c: (ephy_shell_init): - - Pass 0 as flags - -2003-09-27 Marco Pesenti Gritti - - * embed/mozilla/ContentHandler.cpp: - * lib/ephy-gui.c: (make_mime_name), - (ephy_gui_get_pixbuf_from_mime_type): - * lib/ephy-gui.h: - * lib/widgets/ephy-spinner.c: (ephy_spinner_init), - (ephy_spinner_theme_changed), (ephy_spinner_load_images), - (ephy_spinner_finalize): - * src/ephy-shell.c: (ephy_shell_init): - - Use gtkicontheme, and use it also for mime icons. - -2003-09-26 Marco Pesenti Gritti - - * data/epiphany.schemas.in: - * lib/ephy-node-filter.c: (ephy_node_filter_evaluate): - * src/ephy-history-window.c: (ephy_history_window_finalize), - (add_by_site_filter), (add_by_date_filter), (add_by_word_filter), - (setup_filters), (site_node_selected_cb), (search_entry_search_cb), - (time_optionmenu_changed_cb), (build_search_box), - (ephy_history_window_construct), (save_date_filter), - (ephy_history_window_dispose): - - Implement history time filter - -2003-09-26 Marco Pesenti Gritti - - * src/ephy-window.c: - - Remove unused includes, they was causing warnings on solaris + Splitting ChangeLog. diff --git a/ChangeLog-20040912 b/ChangeLog-20040912 new file mode 100644 index 000000000..d498c6841 --- /dev/null +++ b/ChangeLog-20040912 @@ -0,0 +1,10997 @@ +2004-09-12 Marco Pesenti Gritti + + * src/toolbar.c: + + Use SAME_APP flag for drag destination. Fix #152388 + +2004-09-11 Christian Persch + + * embed/Makefile.am: + + Install ephy-embed-factory.h. + +2004-09-11 Christian Persch + + * embed/ephy-embed-factory.c: + + Change documentation accordingly. + +2004-09-11 Christian Persch + + * src/bookmarks/ephy-bookmarks-editor.c: + (import_dialog_response_cb), (ephy_bookmarks_editor_dispose): + + Add another mimetype to import types file filter. + +2004-09-11 Christian Persch + + * embed/ephy-embed-factory.c: (ephy_embed_factory_new_object): + * embed/ephy-embed-factory.h: + * embed/ephy-embed-shell.c: (ephy_embed_shell_get_embed_single): + * embed/ephy-favicon-cache.c: (ephy_favicon_cache_download): + * src/ephy-tab.c: (save_property_url), (ephy_tab_init): + * src/popup-commands.c: (save_property_url), + (popup_cmd_set_image_as_background): + * src/window-commands.c: (window_cmd_file_save_as), + (save_temp_source): + + Just pass a GType to ephy_embed_factory_new_object(). + +2004-09-11 Marco Pesenti Gritti + + * src/bookmarks/ephy-topics-selector.c: (toggle_topic), + (node_toggled_cb), (ephy_topics_selector_new_topic): + + Select the topic when adding it. Fix #151925 + +2004-09-08 Christian Persch + + * lib/egg/eggdropdowntoolbutton.c: + (egg_dropdown_tool_button_set_arrow_tooltip): + * lib/egg/eggdropdowntoolbutton.h: + + Update from egg. + +2004-09-07 Christian Persch + + * src/ephy-shell.c: (save_yourself_cb): + + Use rm -f as remove command, not rm -r. Reported by Nikolai Weibull. + +2004-09-07 Christian Persch + + * src/ephy-navigation-action.c: (new_history_menu_item), + (activate_back_or_forward_menu_item_cb), + (activate_up_menu_item_cb), (build_back_or_forward_menu), + (build_up_menu), (menu_activated_cb), (connect_proxy), + (ephy_navigation_action_init), + (ephy_navigation_action_set_property), + (ephy_navigation_action_get_property), + (ephy_navigation_action_class_init): + + Simplify and de-cruft this code a bit. + +2004-09-07 Christian Persch + + * configure.ac: + + Fix "trunk" version number. + + * lib/egg/eggdropdowntoolbutton.c: + (egg_dropdown_tool_button_set_arrow_tooltip), (menu_position_func), + (egg_dropdown_tool_button_set_menu), + (egg_dropdown_tool_button_get_menu): + * lib/egg/eggdropdowntoolbutton.h: + + Fix menu positioning, menu ownership and remove unnecessary functions + from the .h. + + * lib/widgets/Makefile.am: + R lib/widgets/ephy-arrow-toolbutton.c: + R lib/widgets/ephy-arrow-toolbutton.h: + + Remove EphyArrowToolButton. + + * src/ephy-navigation-action.c: (menu_activated_cb), + (connect_proxy), (ephy_navigation_action_class_init), + (ephy_navigation_action_init): + + Port to EggDropdownToolButton. + +2004-09-07 Christian Persch + + * lib/egg/Makefile.am: + R lib/egg/eggmarshalers.c: + R lib/egg/eggmarshalers.h: + + Remove auto-generated sources from cvs. + +2004-09-07 Christian Persch + + * lib/egg/Makefile.am: + * lib/egg/update-from-egg.sh: + A lib/egg/eggdropdowntoolbutton.c: + A lib/egg/eggdropdowntoolbutton.h: + + Add Dropdown tool button from egg. + +2004-09-05 Christian Persch + + * src/ephy-window.c: (ephy_window_key_press_event): + + Use the gtk setting for the menubar accel instead of hardcoding F10. + +2004-09-05 Christian Persch + + * configure.ac: + + Add "ml" to ALL_LINGUAS. + +2004-09-05 Christian Persch + + * src/toolbar.c: (toolbar_setup_actions): + + Also use "visible-overflown = FALSE" for favicon action too. + +2004-09-05 Christian Persch + + * src/ephy-location-action.c: (connect_proxy): + * src/toolbar.c: (toolbar_setup_actions): + + Use "visible-overflown = FALSE" for the location entry action, instead + of manually setting overflow menu item to NULL. + +2004-09-05 Christian Persch + + * src/ephy-go-action.c: (connect_proxy): + + Only connect clicked signal on a button, not on a menu item + proxy. Same as bug #141548, but for the Go action. + +2004-09-04 Christian Persch + + * src/ephy-navigation-action.c: (connect_proxy): + + Only connect menu-activated signal to an arrow toolbutton, + not on menu items. Fixes bug #151648. + +2004-09-04 Christian Persch + + * data/ui/epiphany-ui.xml: + * src/ephy-window.c: (show_embed_popup): + + Separate context menu for email links. Fixes bug #144244. + +2004-09-04 Marco Pesenti Gritti + + * data/art/Makefile.am: + * lib/ephy-stock-icons.c: (ephy_stock_icons_init): + * lib/ephy-stock-icons.h: + * src/ephy-notebook.c: (build_tab_label): + + Use a small custom icon for tabs close instead of cutting + the image with set_size_request. Fix #144772 + +2004-09-03 Christian Persch + + * src/ephy-shell.h: + + Remove leftover get_active_window (which has been on EphySession + for a long time). Noticed by Jean-François Rameau. + +2004-09-02 Christian Persch + + * data/art/Makefile.am: + R data/art/epiphany-secure.png: + R data/art/epiphany-unsecure.png: + * lib/ephy-stock-icons.c: (ephy_stock_icons_init): + * lib/ephy-stock-icons.h: + * src/ephy-statusbar.c: (ephy_statusbar_set_security_state): + * src/ephy-statusbar.h: + * src/ephy-window.c: (sync_tab_security): + + Use stock icons for the security padlock. + +2004-09-01 Christian Persch + + * src/ephy-tab.c: (ephy_tab_set_title): + * src/ephy-tabs-menu.c: (connect_proxy_cb), + (ephy_tabs_menu_set_window), (ephy_tabs_menu_class_init), + (ephy_tabs_menu_new): + + Ellipsize the menu item in the tabs menu, instead of + shortening the string itself. + +2004-08-31 Christian Persch + + * embed/downloader-view.c: (show_status_icon): + + Fix status icon. Fixes bug #151501. + +2004-08-31 Christian Persch + + * embed/ephy-encodings.c: + * embed/ephy-encodings.h: + + Remove some cruft. + +2004-08-31 Christian Persch + + * src/ephy-main.c: (main): + * src/ephy-shell.c: (ephy_shell_init), (ephy_shell_startup), + (ephy_shell_finalize): + * src/ephy-shell.h: + + Remove -s mode which I forgot to remove when removing the + nautilus view. + +2004-08-31 Christian Persch + + * embed/downloader-view.c: (update_download_row), + (progress_cell_data_func), (downloader_view_build_ui): + * embed/ephy-download.h: + * embed/mozilla/MozDownload.cpp: + * lib/widgets/Makefile.am: + R lib/widgets/ephy-cell-renderer-progress.c: + R lib/widgets/ephy-cell-renderer-progress.h: + + Remove EphyCellRendererProgress. + +2004-08-30 Christian Persch + + * autogen.sh: + A configure.ac: + R configure.in: + + Modernise configure. + +2004-08-30 Christian Persch + + R lib/widgets/ephy-label.h: + R lib/widgets/ephy-label.c: + * lib/widgets/Makefile.am: + * src/ephy-notebook.c: (sync_label), (build_tab_label): + * src/pdm-dialog.c: (show_cookies_properties): + * src/prefs-dialog.c: (create_download_path_label), + (download_path_response_cb): + + Remove EphyLabel. + +2004-08-30 Christian Persch + + * configure.in: + * data/.cvsignore: + R data/epiphany-1.4.pc.in: + A data/epiphany-1.6.pc.in: + + Epiphany 1.5. + +2004-08-30 Christian Persch + + * configure.in: + + Post-release version bump. + +2004-08-30 Christian Persch + + * doc/reference/tmpl/ephy-embed.sgml: + + === Release 1.3.8 === + +2004-08-30 Christian Persch + + * NEWS: + * configure.in: + + Version 1.3.8. + +2004-08-29 Christian Persch + + * embed/print-dialog.c: (sanitize_filename), + (ephy_print_get_print_info): + + Make sure the filename to print to doesn't contain slashes. + Fixes bug #148849. + +2004-08-29 Christian Persch + + * data/default-prefs.js: + + Disable SSLv2 by default. + +2004-08-28 Christian Persch + + * help/ja/legal.xml: + + Translate this too. Translation by 佐藤 暁 (SATOH Satoru). + +2004-08-28 Christian Persch + + * NEWS: + + Updated. + +2004-08-28 Christian Persch + + * configure.in: + * help/Makefile.am: + * help/ja/Makefile.am: + * help/ja/epiphany-ja.omf: + * help/ja/epiphany.xml: + * help/ja/figures/ephy-addressbar-smartbookmark-screenshot.png: + * help/ja/figures/ephy-bookmarkbar-smartbookmark-screenshot.png: + * help/ja/figures/ephy-history-window-screenshot.png: + * help/ja/figures/ephy-screenshot.png: + * help/ja/legal.xml: + + Added japanese translation of the manual. + Translated by 佐藤 暁 (SATOH Satoru) . + +2004-08-28 Christian Persch + + * src/bookmarks/ephy-topic-action.c: (popup_menu_cb), + (ephy_topic_action_new): + + popup_menu signal handler has to return gboolean, not void. + +2004-08-28 Christian Persch + + * src/bookmarks/ephy-bookmark-action.c: (popup_menu_cb), + (ephy_bookmark_action_finalize): + + popup_menu signal handler has to return gboolean, not void. + +2004-08-28 Christian Persch + + * src/bookmarks/ephy-bookmarksbar-model.c: + (ephy_bookmarksbar_model_init), (ephy_bookmarksbar_model_dispose), + (ephy_bookmarksbar_model_finalize): + + Remove the save timeout on dispose. + +2004-08-28 Christian Persch + + * src/ephy-window.c: (ephy_window_init): + + Make sure to instantiate the toolbars model before instantiating the + bookmarksbar model; otherwise forwarding doesn't work. + Fixes bug #151267. + +2004-08-27 Christian Persch + + * embed/mozilla/GlobalHistory.cpp: + + Mozilla API change on stable branch. + +2004-08-27 Christian Persch + + * embed/mozilla/MozDownload.cpp: + + QI instead of cast. + +2004-08-26 Christian Persch + + * src/ephy-notebook.c: (ephy_notebook_add_tab): + + Get the position of the new tab after the tab_added signal was emitted, + to get it right in the case the signal handler reorders the tabs. + Patch by Justin Wake. + +2004-08-26 Christian Persch + + * src/ephy-window.c: (update_actions_sensitivity): + + Make "FileSave" action obey lockdown too. Fixes bug #151039. + +2004-08-25 Christian Persch + + * configure.in: + + Post-release version bump. + +2004-08-25 Christian Persch + + === Release 1.3.7 === + + * src/bookmarks/ephy-bookmarks-menu.c: (open_bookmark_cb), + (add_action_for_bookmark): + + Fix crash when opening a bookmark from the menu. Fixes bug #150982. + + * NEWS: + * configure.in: + + Version 1.3.7. + +2004-08-24 Christian Persch + + * configure.in: + + Post-release version bump. + +2004-08-24 Christian Persch + + === Release 1.3.6 === + +2004-08-24 Christian Persch + + * NEWS: + * configure.in: + + Version 1.3.6. + +2004-08-23 Christian Persch + + * lib/widgets/ephy-label.c: (ephy_label_ensure_layout), + (ephy_label_size_allocate): + + Sync. + +2004-08-23 Christian Persch + + * NEWS: + + Update for 1.3.6. + +2004-08-23 Christian Persch + + * lib/widgets/ephy-node-view.c: (ephy_node_view_key_press_cb), + (ephy_node_view_button_press_cb), (ephy_node_view_class_init): + * src/bookmarks/ephy-bookmarks-editor.c: + (ephy_bookmarks_editor_show_popup_cb), + (keyword_node_show_popup_cb), (ephy_bookmarks_editor_construct): + * src/ephy-history-window.c: (ephy_history_window_show_popup_cb), + (ephy_history_window_construct), (ephy_history_window_dispose): + + Just use the popup_menu signal. Fixes bug #150830. + +2004-08-23 Christian Persch + + * src/bookmarks/ephy-bookmarks.h: + + Change hierarchy separator to "->". Fixes bug #149150. + +2004-08-23 Christian Persch + + * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_import): + * src/bookmarks/ephy-bookmarks-import.c: (xbel_parse_folder), + (folders_list_to_topic_name): + * src/bookmarks/ephy-bookmarks.h: + + Make the hierarchy separator a #define. + + * src/bookmarks/ephy-bookmarks-menu.c: (remove_action), + (ephy_bookmarks_menu_clean), (open_bookmark_cb), + (add_action_for_bookmark), (ensure_bookmark_actions), + (create_menu), (create_submenu), (ephy_bookmarks_menu_rebuild), + (do_update_cb), (ephy_bookmarks_menu_maybe_update), + (ephy_bookmarks_menu_set_window), + (ephy_bookmarks_menu_set_property), + (ephy_bookmarks_menu_get_property), (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_init), (ephy_bookmarks_menu_constructor), + (ephy_bookmarks_menu_finalize), (ephy_bookmarks_menu_class_init), + (ephy_bookmarks_menu_new): + * src/bookmarks/ephy-bookmarks-menu.h: + * src/bookmarks/ephy-bookmarks.c: (bookmarks_removed_cb), + (topics_removed_cb), (ephy_bookmarks_add): + + Speed up bookmarks menu with large bookmarks collections, partially + fixes bug #141269. + Fix topic hierarchy and updating on changes, fixes bug #147470, + bug 147786, and bug #150246. + +2004-08-23 Christian Persch + + * NEWS: + + Merge from gnome-2-6 branch. + +2004-08-23 Christian Persch + + * lib/widgets/ephy-label.c: (ephy_label_size_allocate): + + Fix a warning when moving tabs between windows; see bug #150822. + +2004-08-21 Christian Persch + + * doc/reference/tmpl/ephy-embed.sgml: + * src/pdm-dialog.c: (pdm_dialog_password_remove): + + Fix crash when removing a password, introduced by the last commit. + +2004-08-21 Christian Persch + + * embed/ephy-password-manager.c: (ephy_password_manager_get_type), + (ephy_password_manager_base_init): + * embed/ephy-password-manager.h: + * embed/mozilla/EphySingle.cpp: + * src/pdm-dialog.c: (cookies_cleared_cb), + (pdm_dialog_fill_cookies_list), (passwords_changed_cb), + (pdm_dialog_fill_passwords_list), (pdm_dialog_password_remove), + (pdm_dialog_finalize): + + Keep the passwords list in the pdm dialogue up-to-date wrt. + new passwords saved from web pages. + Fixes bug #150296. + +2004-08-21 Christian Persch + + * src/ephy-window.c: + + Set accel for normal zoom, as per HIG. + +2004-08-21 Christian Persch + + * configure.in: + * src/Makefile.am: + + Add autoconf check for dlopen, and add '-dlopen self' to + LDFLAGS. Fixes bug #150673. + +2004-08-20 Christian Persch + + * data/default-prefs.js: + + Set default horizontal wheel action to 'scroll'. + Fixes bug #148557. + +2004-08-19 Marco Pesenti Gritti + + * embed/mozilla/Makefile.am: + * embed/mozilla/mozilla-embed-single.cpp: + + Set mozilla binaries path before firing up. + Fixes bug #150358. + +2004-08-18 Christian Persch + + * lib/widgets/ephy-cell-renderer-progress.c: + (ephy_cell_renderer_progress_render): + * lib/widgets/ephy-tree-model-node.c: + * src/ephy-completion-model.c: + + Change guint to correct enum type. + +2004-08-16 Christian Rose + + * configure.in: Added "bs" to ALL_LINGUAS. + +2004-08-16 Kjartan Maraas + + * configure.in: Added nb to ALL_LINGUAS. + +2004-08-16 Christian Persch + + * embed/ephy-embed-event.c: + + Remove superflous private struct. + +2004-08-16 Christian Persch + + * configure.in: + + Post-release version bump. + +2004-08-16 Christian Persch + + * doc/reference/tmpl/ephy-embed.sgml: + + === Release 1.3.5 === + +2004-08-16 Christian Persch + + * NEWS: + + Update for 1.3.5. + +2004-08-16 Christian Persch + + * configure.in: + + Version 1.3.5. + Make dist produce a .tar.bz2 too. + +2004-08-16 Christian Persch + + * embed/mozilla/EventContext.cpp: + + Use GetLocalName instead of GetTagName to get the attribute name. + Patch by Mikael Brockman, fixes bug #150208. + +2004-08-12 Christian Persch + + * configure.in: + + We don't build against 1.8a1, so don't list it in the help + for --with-mozilla-snapshot. + +2004-08-11 Christian Persch + + * lib/egg/egg-editable-toolbar.c: (drag_data_get_cb), + (set_item_drag_source), (egg_editable_toolbar_set_model): + + Remove unused variables. + +2004-08-10 Christian Persch + + * embed/mozilla/GlobalHistory.cpp: + + Include mozilla-version.h; thanks to Crispin for testing. + +2004-08-10 Christian Persch + + * embed/mozilla/GlobalHistory.cpp: + * embed/mozilla/GlobalHistory.h: + + Yet another mozilla API change. + +2004-08-09 Christian Persch + + * lib/egg/egg-editable-toolbar.c: (find_action), + (egg_editable_toolbar_construct), (egg_editable_toolbar_set_model), + (egg_editable_toolbar_set_ui_manager), + (egg_editable_toolbar_set_property), + (egg_editable_toolbar_get_property), + (egg_editable_toolbar_class_init), (egg_editable_toolbar_finalize), + (egg_editable_toolbar_new), (egg_editable_toolbar_new_with_model), + (egg_editable_toolbar_get_model): + * lib/egg/egg-editable-toolbar.h: + * lib/egg/egg-toolbar-editor.c: (find_action), + (egg_toolbar_editor_set_ui_manager), + (egg_toolbar_editor_set_property), + (egg_toolbar_editor_get_property), (egg_toolbar_editor_class_init), + (egg_toolbar_editor_finalize), (egg_toolbar_editor_new), + (egg_toolbar_editor_init): + * lib/egg/egg-toolbar-editor.h: + * src/bookmarks/ephy-bookmarksbar.c: + (ephy_bookmarksbar_set_window): + * src/toolbar.c: (toolbar_new): + + Fix object property naming leftover from EggMenuMerge days, to + UI manager. + +2004-08-09 Christian Persch + + * lib/egg/egg-editable-toolbar.c: + (egg_editable_toolbar_deconstruct): + + Use g_list_foreach() here. + +2004-08-09 Christian Persch + + * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import): + + Fix a mem leak. + +2004-08-09 Christian Persch + + * lib/egg/egg-toolbar-editor.c: (compare_actions): + + Fix compilation with gcc 2.95. + +2004-08-09 Christian Persch + + * lib/widgets/ephy-label.c: + + Include config.h upfront. + +2004-08-09 Christian Persch + + * lib/widgets/ephy-label.c: + * lib/widgets/ephy-label.h: + + Only use this for gtk < 2.5.1, and just add a few + #defines otherwise. + +2004-08-09 Christian Persch + + * src/bookmarks/ephy-topics-selector.c: + (ephy_topics_selector_get_type), (ephy_topics_selector_apply), + (provide_toggle), (ephy_topics_selector_constructor), + (topic_destroy_cb), (node_toggled_cb), + (ephy_topics_selector_finalize), (ephy_topics_selector_class_init): + + Free list and filter on finalize; fixes bug #149689. + Use g_list_prepend instead of _append. + Mark the column title for translation. + +2004-08-08 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + + Fix compiler warning about anon enum mismatch. + +2004-08-08 Christian Persch + + * embed/mozilla/mozilla-embed.cpp: + + Allow XUL windows to open new windows. + +2004-08-08 Christian Neumair + + * src/bookmarks/ephy-topics-selector.c: + (ephy_topics_selector_constructor): + + Sort topics by name. Fixes #149639. + +2004-08-08 Christian Persch + + * doc/reference/Makefile.am: + + Removed reference to ephy-ellipsizing-label. + + * po/POTFILES.in: + + Added lib/widgets/ephy-label.c + +2004-08-08 Christian Persch + + * lib/ephy-marshal.list: + * lib/widgets/Makefile.am: + R lib/widgets/ephy-ellipsizing-label.c: + R lib/widgets/ephy-ellipsizing-label.h: + A lib/widgets/ephy-label.c: + A lib/widgets/ephy-label.h: + * src/ephy-notebook.c: (sync_label), (build_tab_label): + * src/pdm-dialog.c: (show_cookies_properties): + * src/prefs-dialog.c: (create_download_path_label), + (download_path_response_cb): + + Kill our ellipsising label implementation, and import GtkLabel + into our prefix. Fixes bug #149114. + + * configure.in: + + Depend on pango 1.5.1 for ellipsisation support. + +2004-08-08 Christian Persch + + * configure.in: + * src/Makefile.am: + R src/epiphany.in: + + Get rid of the startup script, and use rpath linking instead. + Ported from galeon. + +2004-08-08 Christian Persch + + * src/ephy-notebook.c: (notebook_drag_data_received_cb): + + Remove unused variable. + +2004-08-08 Christian Persch + + * src/ephy-notebook.c: + + Include "ephy-string.h", fixes build with -Werror. + +2004-08-08 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphySingle.cpp: + * embed/mozilla/EventContext.cpp: + * embed/mozilla/MozillaPrivate.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + * embed/mozilla/mozilla-embed.cpp: + + Consistent naming for nsresult vars. Since 'rv' had the majority, + 'rv' it is. + +2004-08-08 Christian Persch + + * embed/ephy-embed-single.c: (ephy_embed_single_open_window): + * embed/ephy-embed-single.h: + * embed/mozilla/mozilla-embed-single.cpp: (impl_open_window): + * src/ephy-tab.c: (popups_manager_show): + + Make ephy_embed_single_open_window() return the newly opened + embed widget. + +2004-08-06 Christian Persch + + * data/default-prefs.js: + * embed/mozilla/mozilla-embed-single.cpp: + + Make keyword search URL localisable. Fixes bug #144909. + +2004-08-06 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/mozilla-embed.cpp: + * embed/mozilla/mozilla-version.h: + + Fix the reload workaround version checks to look for the + correct versions. Thanks to Crispin for noticing this. + +2004-08-06 Christian Persch + + * lib/ephy-string.c: (ephy_string_parse_uri_list): + * lib/ephy-string.h: + * lib/widgets/ephy-node-view.c: (drag_data_received_cb), + (ephy_node_view_class_init): + * src/bookmarks/ephy-bookmarks-editor.c: + * src/ephy-notebook.c: (notebook_drag_data_received_cb): + * src/ephy-notebook.h: + * src/ephy-session.c: + * src/ephy-shell.c: (ephy_shell_new_tab): + * src/ephy-tab.c: (ephy_tab_new_window_cb): + * src/ephy-window.c: (ephy_window_load_in_tabs): + + Fix dragging of urls which gnome-vfs can't handle. + Fix new tab positioning when opening tabs from drags. + +2004-08-06 Christian Persch + + * src/ephy-session.c: (write_window_geometry), (write_tool_window), + (ephy_session_load): + + Fix restoring the history window on resume. + +2004-08-06 Christian Persch + + * src/ephy-session.c: (ephy_session_init), + (ephy_session_autoresume), (ephy_session_save), + (ephy_session_get_active_window): + + Avoid overwriting the session file while resuming; preserves + the crashed session when crashing while resuming. + +2004-08-06 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/mozilla-embed.cpp: + + Now that mozilla bug #246392 is fixed, only enable our work-around + for old mozilla versions. + +2004-08-06 Christian Persch + + * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_solve_smart_url): + + Use s/""/NULL/ in g_string_new(). + +2004-08-06 Christian Persch + + * src/ephy-session.c: (ephy_session_init), (ephy_session_finalize), + (ephy_session_set_property), (ephy_session_class_init), + (ephy_session_close), (write_tool_window), (ephy_session_save), + (parse_embed), (ephy_session_load), (ephy_session_add_window), + (ephy_session_remove_window), (ephy_session_get_active_window): + + Make ephy_session_get_windows() return only the list of + EphyWindows, and store the tool windows internally. + +2004-08-04 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + + Code cleanup. + +2004-08-04 Christian Persch + + * src/window-commands.c: (editor_can_open_uri): + + Fix mem leak; noticed by Jean-François Rameau. + +2004-08-04 Christian Persch + + * src/window-commands.c: (window_cmd_view_page_source): + + Fix mem leak; noticed by Jean-François Rameau. + +2004-08-02 Christian Persch + + * src/ephy-main.c: (main): + + Move g_set_application_name() call after gnome_program_init(), + so that i18n works correctly. Fixes bug #148948. + +2004-08-01 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + + Don't QI the event target to nsIDOMEventReceiver and back + to nsIDOMEventTarget when using it, just store it as-is. + Thanks to Crispin for noticing this. + +2004-08-01 Christian Persch + + * configure.in: + + Post-release version bump. + +2004-08-01 Christian Persch + + * NEWS: + * doc/reference/tmpl/ephy-embed.sgml: + + === Release 1.3.4 === + +2004-08-01 Christian Persch + + * configure.in: + + Version 1.3.4. + + * NEWS: + + Updated for 1.3.4. + +2004-07-31 Christian Persch + + * src/ephy-window.c: (ephy_window_get_type), + (update_exit_fullscreen_popup_position), (screen_size_changed_cb), + (destroy_exit_fullscreen_popup), (ephy_window_destroy), + (add_widget), (ephy_window_fullscreen), (ephy_window_unfullscreen), + (update_chromes_actions), (update_actions_sensitivity): + + Diconnect from screen's size-changed signal on finalize too. + +2004-07-31 Adam Hooper + + * src/ephy-tab.c: (ephy_tab_set_property), (ephy_tab_get_property), + (ephy_tab_class_init), (ephy_tab_get_popups_allowed), + (ephy_tab_set_popups_allowed), (ephy_tab_address_cb), + (ephy_tab_content_change_cb): + + Rename property to "popups-allowed" consistently. Move page change + code from address_cb to content_change_cb so that the location from + the embed is the one of the loaded page. + +2004-07-31 Christian Persch + + * embed/mozilla/ContentHandler.cpp: + + Fix a mem leak. + +2004-07-31 Christian Persch + + * embed/mozilla/ContentHandler.cpp: + + Confirm before overwriting a file. Fixes bug #143501. + +2004-07-31 Christian Persch + + * src/prefs-dialog.c: (prefs_download_path_button_clicked_cb): + + Start the directory chooser in the home dir. Fixes bug #146055. + +2004-07-31 Christian Persch + + * src/bookmarks/ephy-bookmarks-menu.c: (ensure_folder), + (create_submenu): + + Fix submenu creation with non-ascii topic names. Fixes bug #147469. + +2004-07-31 Christian Persch + + * src/bookmarks/ephy-bookmark-action.c: (drag_data_get_cb): + * src/bookmarks/ephy-bookmarks-export.c: (write_topics_list), + (ephy_bookmarks_export_rdf): + * src/bookmarks/ephy-bookmarks-import.c: (xbel_parse_bookmark), + (xbel_parse_folder), (xbel_parse_xbel), (parse_rdf_subjects), + (parse_rdf_item), (ephy_bookmarks_import_rdf): + * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_save), + (ephy_bookmarks_init): + * src/bookmarks/ephy-bookmarksbar-model.c: + (ephy_bookmarksbar_model_get_node): + * src/bookmarks/ephy-topic-action.c: (drag_data_get_cb): + * src/ephy-session.c: (write_tab), (write_window_geometry), + (write_tool_window), (write_ephy_window), (ephy_session_save), + (parse_embed), (ephy_session_load): + + Fix signedness difference warnings with gcc 3.5. Patch by Jon Oberheide. + +2004-07-31 Christian Persch + + * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_get_type), + (toolbars_toolbar_new), (toolbars_item_new), + (egg_toolbars_model_set_flags), (egg_toolbars_model_add_separator), + (impl_add_item), (egg_toolbars_model_add_toolbar), + (egg_toolbars_model_class_init), + (egg_toolbars_model_remove_toolbar), + (egg_toolbars_model_remove_item), (egg_toolbars_model_move_item), + (egg_toolbars_model_get_item_id), + (egg_toolbars_model_get_item_data), + (egg_toolbars_model_get_item_type): + * lib/egg/egg-toolbars-model.h: + + Small code style cleanups. + +2004-07-31 Christian Persch + + * lib/egg/egg-toolbars-model.c: (free_toolbar_node), + (free_item_node), (free_toolbar), (egg_toolbars_model_finalize), + (egg_toolbars_model_remove_toolbar), + (egg_toolbars_model_remove_item): + + Free node data and destroy nodes on finalize. + +2004-07-31 Christian Persch + + * src/ephy-toolbars-model.c: (update_flags_and_save_changes): + + Correctly clear the not-removable toolbar flag. + +2004-07-30 Christian Persch + + * 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. + +2004-07-29 Christian Persch + + * lib/egg/egg-toolbars-model.c: (parse_toolbars): + + Fix a call to egg_toolbars_model_set_flags(). + +2004-07-28 Christian Persch + + * embed/mozilla/EphyContentPolicy.cpp: + + Mozilla API change. + +2004-07-27 Christian Persch + + * embed/ephy-embed-single.h: + + Remove load_proxy_autoconf() vfunc. + + * embed/mozilla/mozilla-notifiers.cpp: + + Only include gnome-i18n.h here. + + Thanks to Crispin for noticing those buglets. + +2004-07-26 Christian Persch + + * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_set_flags): + * lib/egg/egg-toolbars-model.h: + * src/bookmarks/ephy-bookmarksbar-model.c: + (update_flags_and_save_changes): + * src/ephy-toolbars-model.c: (update_flags_and_save_changes): + + Switch parameter order for egg_toolbars_model_set_flags(). + +2004-07-25 Christian Persch + + * src/popup-commands.c: (popup_cmd_download_link), + (popup_cmd_download_link_as): + + Fix "Save Link As" filechooser title, and change + capitalisation on the "Download Link" filechooser + title. Fixes bug #138208. + +2004-07-25 Christian Persch + + * embed/mozilla/mozilla-embed-single.cpp: + + Make sure we don't release the single observer more than + once. + +2004-07-25 Christian Persch + + * embed/mozilla/EphyHeaderSniffer.cpp: + + Disallow some more characters in the suggested filename. + +2004-07-24 Adam Hooper + + * embed/mozilla/mozilla-notifiers.cpp: + + #include + +2004-07-24 Christian Persch + + * lib/egg/egg-toolbar-editor.c: + * lib/egg/egg-toolbar-editor.h: + + Make egg_toolbar_editor_add_action public again. + +2004-07-24 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + + Remove some unneeded includes. + +2004-07-24 Christian Persch + + * embed/downloader-view.c: (show_status_icon): + + Don't load the status icon from the file, use the + registered stock icon instead. + +2004-07-24 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/mozilla-embed.cpp: + + Refactores storing the security info, move it into + EphyBrowser. + +2004-07-23 Marco Pesenti Gritti + + * lib/widgets/ephy-node-view.c: (cell_renderer_edited), + (renderer_editing_canceled_cb), (ephy_node_view_init), + (ephy_node_view_edit): + * lib/widgets/ephy-node-view.h: + * src/bookmarks/ephy-bookmarks-editor.c: (cmd_add_topic), + (cmd_rename): + * src/bookmarks/ephy-topics-selector.c: + (ephy_topics_selector_new_topic): + + Do not remove the topic when rename is cancelled. + +2004-07-23 Marco Pesenti Gritti + + * lib/ephy-marshal.list: + * lib/widgets/ephy-node-view.c: (path_toggled), + (ephy_node_view_key_press_cb), (get_selection_refs), + (ephy_node_view_button_press_cb), (cell_renderer_edited), + (renderer_editing_canceled_cb), (ephy_node_view_add_column), + (ephy_node_view_init), (ephy_node_view_edit), + (ephy_node_view_constructor), (ephy_node_view_add_toggle), + (ephy_node_view_class_init): + * lib/widgets/ephy-node-view.h: + + Add support for toggles. When editing is canceled remove + the node. + + * src/bookmarks/ephy-new-bookmark.c: (ephy_new_bookmark_add): + * src/bookmarks/ephy-topics-selector.c: + (ephy_topics_selector_get_type), + (ephy_topics_selector_set_bookmarks), + (ephy_topics_selector_set_property), (ephy_topics_selector_apply), + (provide_toggle), (ephy_topics_selector_constructor), + (topic_destroy_cb), (node_toggled_cb), (ephy_topics_selector_init), + (ephy_topics_selector_new), (ephy_topics_selector_new_topic), + (ephy_topics_selector_class_init): + * src/bookmarks/ephy-topics-selector.h: + + Use EphyNodeView instead of a list store. Share a lot of code + and we get updating for free. Fix bug #144770 + +2004-07-23 Marco Pesenti Gritti + + * lib/widgets/ephy-node-view.c: (filter_changed_cb), + (ephy_node_view_set_filter), (ephy_node_view_set_property), + (ephy_node_view_init), (ephy_node_view_select_node), + (filter_visible_func), (ephy_node_view_constructor), + (ephy_node_view_class_init): + * lib/widgets/ephy-tree-model-node.c: + (ephy_tree_model_node_set_property), + (ephy_tree_model_node_get_property), + (ephy_tree_model_node_class_init), (ephy_tree_model_node_init), + (ephy_tree_model_node_new), (ephy_tree_model_node_get_column_type), + (ephy_tree_model_node_get_value): + * lib/widgets/ephy-tree-model-node.h: + * src/prefs-dialog.c: (create_node_combo): + + Simplify node view filtering code and make it a normal + property (no more constructor only) + +2004-07-23 Marco Pesenti Gritti + + * lib/widgets/ephy-node-view.c: (ephy_node_view_new), + (ephy_node_view_constructor), (ephy_node_view_class_init): + + Use gobject constructor + +2004-07-22 Christian Persch + + * lib/ephy-debug.c: (ephy_profiler_dump): + + Ignore the microseconds part + of the g_timer_elapsed call, its redundant information, + and breaks when the timer is over a second. + (ported from galeon). + +2004-07-22 Christian Persch + + * embed/ephy-embed-single.c: + * embed/ephy-embed-single.h: + * embed/mozilla/mozilla-embed-single.cpp: + * embed/mozilla/mozilla-notifiers.cpp: + + No need to make proxy PAC configuration public, we only + use it in a pref notifier. + +2004-07-22 Marco Pesenti Gritti + + * 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 + +2004-07-22 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarks-import.c: + (ephy_bookmarks_import_mozilla): + + Handle the bookmark in the root folder case + correctly. Fix #145611 + +2004-07-22 Christian Persch + + * embed/mozilla/GtkNSSClientAuthDialogs.cpp: + * embed/mozilla/GtkNSSDialogs.cpp: + + Fix mem leaks (ported from Galeon). + +2004-07-21 Xan Lopez + + * data/epiphany.desktop.in: + + Added application/xhtml+xml, text/html, text/xml for MimeType entry. + +2004-07-21 Marco Pesenti Gritti + + * embed/mozilla/EphySingle.cpp: + * embed/mozilla/EphySingle.h: + * embed/mozilla/mozilla-embed-single.cpp: + + No need to use a weak ref for the observer, + makes the single code easier. + +2004-07-20 Marco Pesenti Gritti + + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/EphyHeaderSniffer.h: + * embed/mozilla/mozilla-embed-persist.cpp: + + Pass single to the sniffer and weak ref it. + Fix #141928 + +2004-07-19 Marco Pesenti Gritti + + * NEWS: + * configure.in: + * doc/reference/tmpl/ephy-embed.sgml: + + === Release 1.3.3 === + +2004-07-19 Marco Pesenti Gritti + + * lib/ephy-prefs.h: + * src/ephy-shell.c: (ephy_shell_new_tab): + * src/ephy-window.c: (ephy_window_fullscreen), + (ephy_window_unfullscreen), (update_actions_sensitivity), + (tab_detached_cb), (tab_delete_cb), (ephy_window_init): + * src/window-commands.c: (window_cmd_file_new_window), + (window_cmd_file_close_window): + + Add disable_quit, disable_new_window, first_window_fullscreen + lockdown options. + +2004-07-17 Christian Persch + + * embed/print-dialog.c: (ephy_print_dialog_browse_button_cb): + + Since the print dialogue is modal the filechooser needs to be modal + too. Fixes bug #147628. + +2004-07-14 Marco Pesenti Gritti + + * lib/widgets/ephy-node-view.c: (compare_string_values), + (ephy_node_view_sort_func), (ephy_node_view_add_data_column), + (ephy_node_view_add_column), (ephy_node_view_set_priority), + (ephy_node_view_set_sort), (ephy_node_view_init): + * lib/widgets/ephy-node-view.h: + + Improve sort/priority API. + + * src/bookmarks/ephy-bookmarks-editor.c: + (ephy_bookmarks_editor_construct): + * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_init): + * src/ephy-history-window.c: (ephy_history_window_construct): + + Sort history items by last visit + +2004-07-12 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmark-action.c: (properties_activate_cb), + (show_context_menu), (bookmark_destroy_cb), + (ephy_bookmark_action_set_bookmark_id), + (ephy_bookmark_action_set_property), + (ephy_bookmark_action_finalize), (ephy_bookmark_action_init): + + Add a Properties item to bookmark context menu + +2004-07-11 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarksbar.c: (bookmark_open_in_tab_cb): + + When opening bookmarks in a tab from toolbars jump to them. + +2004-07-11 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb): + * src/bookmarks/ephy-bookmark-action.c: (connect_proxy): + * src/bookmarks/ephy-topic-action.c: (connect_proxy): + + Disable sliding when not in toolbar editing mode. + We cant assume GDK_ACTION_MOVE there. + +2004-07-11 Marco Pesenti Gritti + + * src/bookmarks/ephy-topic-action.c: (stop_drag_check), + (button_release_cb), (button_press_cb): + + Make sure we stop the drag check also when button + is released while the menu grab is still in effect. + +2004-07-11 Marco Pesenti Gritti + + * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_move_item): + * lib/egg/egg-toolbars-model.h: + + Add api to move items. + + * src/bookmarks/ephy-bookmark-action.c: (get_item_position), + (remove_from_model), (move_in_model), (move_left_activate_cb), + (move_right_activate_cb), (show_context_menu): + * src/bookmarks/ephy-topic-action.c: (get_item_position), + (remove_from_model), (move_in_model), (move_left_activate_cb), + (move_right_activate_cb), (show_context_menu): + + Add Move Left/Move Right context menus. + +2004-07-11 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmark-action.c: (drag_begin_cb), + (drag_end_cb), (connect_proxy): + * src/bookmarks/ephy-topic-action.c: (drag_begin_cb), + (drag_end_cb), (connect_proxy): + + Hide the item when dragging it like we do for normal + toolbars. + +2004-07-11 Marco Pesenti Gritti + + * src/bookmarks/ephy-topic-action.c: (create_tool_item), + (menu_deactivate_cb), (remove_from_model), (remove_activate_cb), + (drag_data_get_cb), (drag_data_delete_cb), (stop_drag_check), + (check_horizontal_threshold), (drag_motion_cb), + (button_toggled_cb), (button_release_cb), (button_press_cb), + (connect_proxy): + + Implement topics drag and drop. Totally tricky but it seem + to work fine :) + +2004-07-11 Christian Persch + + * src/bookmarks/ephy-bookmark-action.c: (drag_motion_cb): + + Fix a mem leak. + +2004-07-09 Christian Persch + + * configure.in: + + Depend on lignomeui >= 2.6.0. + +2004-07-09 Xan Lopez + + * embed/downloader-view.c: (downloader_view_add_download): + + Plug leak, thanks to Crispin. + +2004-07-08 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb): + + When moving in the same toolbar force GDK_ACTION_MOVE. + Fix #145529 + +2004-07-07 Christian Persch + + * embed/print-dialog.c: (ephy_print_get_print_info): + + Don't convert filename encoding here, since we use it + as UTF-8 in MozillaPrivate. + +2004-07-06 Christian Persch + + * configure.in: + + Add "he" to ALL_LINGUAS. + +2004-07-06 Christian Persch + + * configure.in: + + Post-release version bump. + +2004-07-06 Christian Persch + + === Release 1.3.2 === + +2004-07-06 Christian Persch + + * NEWS: + * configure.in: + + Version 1.3.2. + +2004-07-06 Xan Lopez + + * embed/mozilla/MozDownload.cpp: + + didn't I said to make that NS_IF_ADDREF () ? + mmm, yes + + Fix the downloader crasher. + +2004-07-06 Christian Persch + + * embed/mozilla/EventContext.cpp: + + -1 is valid button number, it's used for synthesised "mouse" events + on form submit via Return key. Fixes bug #145420. + +2004-07-06 Christian Persch + + * configure.in: + + Post-release version bump. + +2004-07-06 Christian Persch + + * doc/reference/tmpl/ephy-embed.sgml: + + === Release 1.3.1 === + +2004-07-06 Xan Lopez + + * embed/downloader-view.c: (downloader_view_add_download): + * embed/mozilla/mozilla-download.cpp: + + If the MIME is unknown, use application/octet-stream. + +2004-07-06 Christian Persch + + * Makefile.am: + * data/Makefile.am: + + Add MAINTAINERS to EXTRA_DIST, and make gconf schema install + less noisy. + +2004-07-06 Christian Persch + + * configure.in: + + Version 1.3.1. + +2004-07-05 Xan Lopez + + * embed/downloader-view.c: (downloader_view_add_download): + + Scale the MIME icon. + +2004-07-05 Marco Pesenti Gritti + + * embed/downloader-view.c: (downloader_view_build_ui): + + Some ordering/sizing tweak + +2004-07-05 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmark-action.c: (drag_motion_cb): + + Support also GDK_ACTION_COPY. Fix #145254. + + * src/ephy-notebook.c: (notebook_drag_data_received_cb): + + Use the notebook to access the toplevel, data passed to the + signal can be NULL. + +2004-07-05 Christian Persch + + * embed/mozilla/EphySingle.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + + Decode ACE for UI, and encode UTF-8 hostnames before using + cookie and passwords functions with them. + Fixes bug #130930. + +2004-07-05 Christian Persch + + * embed/mozilla/EventContext.cpp: + * embed/mozilla/EventContext.h: + + Unescape the mailto: address, fixes bug #144462. + +2004-07-05 Christian Persch + + * lib/widgets/ephy-spinner.c: (ephy_spinner_cache_get_type), + (ephy_spinner_images_free), (ephy_spinner_images_copy), + (ephy_spinner_cache_unload), (extract_frame), + (ephy_spinner_cache_load), (compare_size), (scale_to_size), + (ephy_spinner_cache_get_images), (ephy_spinner_cache_init), + (ephy_spinner_cache_finalize), (ephy_spinner_cache_class_init), + (ephy_spinner_cache_ref), (ephy_spinner_load_images), + (ephy_spinner_unload_images), (icon_theme_changed_cb), + (ephy_spinner_init), (select_spinner_image), (ephy_spinner_expose), + (bump_spinner_frame_cb), (ephy_spinner_start), + (ephy_spinner_remove_update_callback), (ephy_spinner_stop), + (ephy_spinner_set_size), (ephy_spinner_size_request), + (ephy_spinner_finalize), (ephy_spinner_class_init): + + Cache the scaled spinner images to make creating new spinners very + fast, now that we use so many of them. + +2004-07-04 Christian Persch + + * NEWS: + + Updated for 1.3.1. + +2004-07-04 Christian Persch + + * src/ephy-window.c: (menubar_deactivate_cb), + (ephy_window_key_press_event), (ephy_window_class_init): + + Show and activate the menubar with F10 when it's hidden. + Fixes bug #141999. + +2004-07-04 Christian Persch + + * embed/mozilla/EventContext.cpp: + * embed/mozilla/EventContext.h: + + Normal context menus for check/radio/submit buttons. + Fixes bug #143942. + +2004-07-04 Christian Persch + + * embed/downloader-view.c: (downloader_view_add_download): + + Use regular return for valid error conditions, not + g_return_if_fail. + +2004-07-04 Christian Persch + + * embed/mozilla/mozilla-download.cpp: (impl_get_mime_type): + + Fix compilation with mozilla 1.7. + +2004-07-04 Xan Lopez + + * 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. + +2004-07-03 Marco Pesenti Gritti + + * src/bookmarks/ephy-topic-action.c: (can_open_in_tabs), + (append_bookmarks_menu), (add_open_in_tabs_menu), + (build_bookmarks_menu), (show_context_menu): + + "Open in tabs" insensitive when there are not + multiple bookmarks in the topic. + +2004-07-03 Christian Persch + + * lib/widgets/ephy-spinner.c: (ephy_spinner_load_images): + + Add profiler calls. + +2004-07-03 Christian Persch + + * embed/mozilla/mozilla-embed-single.cpp: + + Mozilla API change. + +2004-07-02 Christian Persch + + * data/art/Makefile.am: + R data/art/epiphany-tab-loading.gif: + * lib/widgets/ephy-spinner.c: (get_spinner_dimensions), + (ephy_spinner_init), (ephy_spinner_expose), + (ephy_spinner_unload_images), (scale_to_real_size), + (ephy_spinner_set_size), (ephy_spinner_size_request): + * lib/widgets/ephy-spinner.h: + * src/ephy-notebook.c: (sync_load_status), (build_tab_label): + * src/toolbar.c: (fixed_toolbar_reconfigured_cb), (toolbar_init): + + Remove our tab loading animation and use mini-spinners instead. + +2004-07-02 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmark-action.c: + (ephy_bookmark_action_sync_icon): + * src/ephy-favicon-action.c: (ephy_favicon_action_sync_icon): + + Use blank document as default favicon + +2004-07-02 Christian Persch + + * configure.in: + * embed/mozilla/GtkNSSKeyPairDialogs.cpp: + + Depend on mozilla >= 1.7 final. Simplify some mozilla + version checks. + +2004-07-02 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmark-action.c: (show_context_menu), + (popup_menu_cb), (button_press_cb), (connect_proxy): + * src/bookmarks/ephy-topic-action.c: (show_context_menu), + (popup_menu_cb), (button_press_cb), (connect_proxy): + + Follow popups keybindings. + +2004-07-02 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmark-action.c: (open_in_tab_activate_cb), + (open_in_window_activate_cb), (remove_from_model), + (drag_data_delete_cb), (remove_activate_cb), (show_context_menu), + (button_press_cb): + + Implement bookmark context menu. + +2004-07-02 Marco Pesenti Gritti + + * src/bookmarks/ephy-topic-action.c: (remove_activate_cb), + (add_open_in_tabs_menu), (build_bookmarks_menu), + (show_context_menu), (button_press_cb), (connect_proxy): + + Implement topic context menu. + +2004-07-02 Marco Pesenti Gritti + + * src/bookmarks/ephy-favorites-menu.c: + * src/bookmarks/ephy-favorites-menu.h: + + Move in the bookmarks dir. + + * lib/ephy-gui.c: (ephy_gui_select_row_by_key), + (ephy_gui_is_middle_click): + * lib/ephy-gui.h: + + Add a function to check if menus was activated + by a middle or a ctrl+click (which is equivalent in epiphany) + + * lib/ephy-marshal.list: + * src/Makefile.am: + * src/bookmarks/Makefile.am: + * src/bookmarks/ephy-bookmark-action.c: (activate_cb), + (ephy_bookmark_action_class_init): + * src/bookmarks/ephy-bookmark-action.h: + * src/bookmarks/ephy-bookmarks-menu.c: (open_bookmark_cb), + (create_menu): + * src/bookmarks/ephy-bookmarksbar.c: (bookmark_open_in_tab_cb), + (bookmark_open_cb), (ephy_bookmarksbar_action_request): + * src/bookmarks/ephy-topic-action.c: (menu_activate_cb), + (ephy_topic_action_class_init): + * src/bookmarks/ephy-topic-action.h: + + Add signals to open bookmarks in new window/tab. I'll need + them for context menus. + Use them for middle/ctrl click. + +2004-07-01 Christian Persch + + * src/ephy-window.c: + + s/Off-Line/Offline/ + +2004-07-01 Marco Pesenti Gritti + + * data/ui/epiphany-ui.xml: + + Change position to popups and offline menus. + +2004-07-01 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmark-action.c: + (ephy_bookmark_action_sync_smart_url): + + Do not show the icon for smartbookmarks + +2004-07-01 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb): + + Do not allow dragging out of edit mode on ITEMS_ONLY toolbars. + +2004-07-01 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmark-action.c: + (ephy_bookmark_action_sync_icon): + + No need to show the default icon for bookmarks menu. + +2004-07-01 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmark-action.c: (create_tool_item), + (favicon_cache_changed_cb), (ephy_bookmark_action_sync_icon), + (stop_drag_check), (drag_data_get_cb), (drag_data_delete_cb), + (drag_motion_cb), (button_press_cb), (button_release_cb), + (connect_proxy), (ephy_bookmark_action_init): + + Allow to drag bookmarks around also when not in edit mode. + Use the default bookmark icon when there is not a specific + one, it acts as a separator. Put some space between the icon + and the text. + +2004-06-30 Adam Hooper + + * data/art/Makefile.am: + * data/art/epiphany-popup-hidden.png: + * data/art/epiphany-popup-hidden.svg: + * data/ui/epiphany-ui.xml: + * lib/ephy-stock-icons.c: (ephy_stock_icons_init): + * lib/ephy-stock-icons.h: + * src/ephy-statusbar.c: (create_statusbar_popups_manager_icon), + (ephy_statusbar_init), (ephy_statusbar_set_security_state), + (ephy_statusbar_set_popups_state): + * src/ephy-statusbar.h: + * src/ephy-tab.c: (ephy_tab_set_property), (ephy_tab_get_property), + (ephy_tab_class_init), (popups_manager_free_info), + (popups_manager_add), (popups_manager_remove_window), + (disconnect_popup), (popups_manager_add_window), + (ephy_tab_get_popups_displayed), (popups_manager_show), + (popups_manager_show_all), (popups_manager_new_window_info), + (popups_manager_hide), (popups_manager_hide_all), + (ephy_tab_set_popups_displayed), (popup_blocker_n_hidden), + (popups_manager_reset), (ephy_tab_finalize), (ephy_tab_address_cb), + (ephy_tab_new_window_cb), (ephy_tab_popup_blocked_cb), + (ephy_tab_init): + * src/ephy-window.c: (sync_tab_popup_windows), + (sync_tab_popups_allowed), (ephy_window_set_active_tab), + (ephy_window_get_property), (allow_popups_notifier), + (ephy_window_init), (ephy_window_finalize), (ephy_window_load_url), + (ephy_window_view_bookmarksbar_cb), + (ephy_window_view_popup_windows_cb): + + Popup blocking support. View -> Popup Windows. + + * doc/reference/Makefile.am: + * doc/reference/epiphany-sections.txt: + * doc/reference/tmpl/ephy-embed-single.sgml: + * doc/reference/tmpl/ephy-embed.sgml: + * doc/reference/tmpl/ephy-permission-manager.sgml: + * doc/reference/tmpl/ephy-shell.sgml: + * doc/reference/tmpl/ephy-tab.sgml: + * doc/reference/tmpl/epiphany-unused.sgml: + + Added a couple of docs, but mostly this is stuff that I imagine + nobody ever commits because it's all auto-generated. + +2004-06-30 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarksbar.c: (open_in_tabs_cb): + * src/bookmarks/ephy-topic-action.c: (append_bookmarks_menu), + (open_in_tabs_activate_cb), (build_bookmarks_menu): + + Use a new window for "Open in Tabs" + +2004-06-30 Xan Lopez + + * embed/mozilla/MozDownload.cpp: + + Be a bit smarter about double extensions. + +2004-06-30 Marco Pesenti Gritti + + * src/ephy-notebook.c: + + Change tabs sizing again. Now we use a width + of 20 (estimated) chars. + +2004-06-29 Christian Persch + + * NEWS: + + Update for 1.3.1. + +2004-06-29 Christian Persch + + * lib/ephy-dialog.c: (togglebutton_clicked_cb), + (radiobutton_clicked_cb), (spinbutton_timeout_cb), (changed_cb): + + Set sane_state to TRUE from user changes, otherwise broken prefs + will never get overwritten. + +2004-06-27 Christian Persch + + * embed/mozilla/EphySingle.cpp: + * embed/mozilla/EphySingle.h: + * embed/mozilla/mozilla-embed-single.cpp: + + EphySingle needs to implement nsISupportsWeakReference. + +2004-06-26 Christian Persch + + * data/ui/epiphany-ui.xml: + * embed/ephy-embed-single.c: (ephy_embed_single_iface_init), + (ephy_embed_single_set_offline_mode), + (ephy_embed_single_get_offline_mode): + * embed/ephy-embed-single.h: + * embed/mozilla/EphySingle.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + * src/ephy-window.c: (network_status_changed), (ephy_window_init), + (ephy_window_finalize): + * src/window-commands.c: (window_cmd_file_save_as), + (window_cmd_file_work_offline): + * src/window-commands.h: + + Implement File->Work Off-Line command and backend. + No DBUS/HAL/whatever integration yet. + +2004-06-26 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import), + (xbel_parse_folder), (xbel_parse_xbel): + + Preserve hierarchy in the xbel importer too. Use mime + sniffing to determine the file mime type. + +2004-06-25 Marco Pesenti Gritti + + * embed/ephy-embed.h: + * embed/mozilla/MozillaPrivate.h: + * embed/print-dialog.h: + + Move PrintInfo to print-dialog since + it's no more use by embed api. + +2004-06-25 Marco Pesenti Gritti + + * embed/MozillaPrivate.cpp: + + Fix typo in the printer name + +2004-06-25 Marco Pesenti Gritti + + * embed/MozillaPrivate.cpp: + + Remove preview flag + +2004-06-25 Marco Pesenti Gritti + + * embed/ephy-embed.c: (ephy_embed_print), + (ephy_embed_set_print_preview_mode): + * embed/ephy-embed.h: + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/PrintingPromptService.cpp: + * embed/mozilla/mozilla-embed.cpp: + * embed/print-dialog.c: (ephy_print_dialog_response_cb), + (ephy_print_dialog_new): + * embed/print-dialog.h: + * src/ephy-window.c: (ephy_window_delete_event_cb), + (ephy_window_finalize), (update_embed_dialogs), (ephy_window_find): + * src/ppview-toolbar.c: (toolbar_cmd_ppv_close): + * src/window-commands.c: (window_cmd_file_print_preview), + (window_cmd_file_print): + + Simplify print code. Now there is only one case to deal with, + the mozilla prompt dialog. + This should help with xprint. + +2004-06-24 Marco Pesenti Gritti + + * lib/ephy-node.c: (ephy_node_new_with_id), (ephy_node_get_id), + (child_changed), (write_parent): + * lib/ephy-node.h: + * src/bookmarks/ephy-bookmark-action.c: + (bookmarks_child_changed_cb): + * src/bookmarks/ephy-bookmark-properties.c: + (toolbar_checkbox_changed_cb), (build_ui): + * src/bookmarks/ephy-bookmarks-editor.c: + (cmd_show_in_bookmarks_bar), (ephy_bookmarks_editor_update_menu): + * src/bookmarks/ephy-bookmarks-menu.c: (create_menu), + (topic_child_changed_cb): + * src/bookmarks/ephy-new-bookmark.c: + * src/bookmarks/ephy-new-bookmark.h: + * src/bookmarks/ephy-topic-action.c: + (ephy_topic_action_set_topic_id), (topic_child_changed_cb): + + Use guint consistently for node ids + +2004-06-24 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarksbar.c: (open_in_tabs_cb), + (go_location_cb), (ephy_bookmarksbar_action_request): + * src/bookmarks/ephy-topic-action.c: (append_bookmarks_menu), + (open_in_tabs_activate_cb), (build_bookmarks_menu), + (build_topics_menu), (build_menu), + (ephy_topic_action_set_topic_id), (ephy_topic_action_set_property), + (ephy_topic_action_class_init): + * src/bookmarks/ephy-topic-action.h: + * src/ephy-window.c: (ephy_window_load_in_tabs): + + Implement open in tabs from toolbar topics + +2004-06-24 Christian Persch + + * embed/mozilla/mozilla-embed-single.cpp: + + Removed unused array, and added a few missing statics. + +2004-06-23 Christian Persch + + * src/bookmarks/ephy-bookmarksbar.c: + (ephy_bookmarksbar_set_window): + * src/toolbar.c: (toolbar_realize): + + Use g_signal_connect_after to connect to the toolbar_added + signal, otherwise the toolbar isn't created yet and we crash + when trying to set the drag dests on a newly added toolbar. + +2004-06-23 Christian Persch + + * doc/reference/tmpl/ephy-permission-manager.sgml: + * embed/ephy-permission-manager.c: (ephy_permission_info_new), + (ephy_permission_info_copy), (ephy_permission_manager_add), + (ephy_permission_manager_remove), (ephy_permission_manager_test), + (ephy_permission_manager_list): + * embed/ephy-permission-manager.h: + * embed/mozilla/EphySingle.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + + Make the permission type a string instead of an enum, that way + we can support more than just the hardcoded 3 types. + +2004-06-23 Christian Persch + + * src/ephy-window.c: (ephy_window_get_tabs): + + Simply use gtk_container_get_children(). + +2004-06-23 Christian Persch + + * src/ephy-window.c: (exit_fullscreen_button_clicked_cb), + (get_chromes_visibility), (ephy_window_state_event_cb): + + Make the "Exit Fullscreen" button toggle the action instead of + doing to work itself. Fixes bug #144785. + +2004-06-23 Marco Pesenti Gritti + + * src/ephy-notebook.c: (notebook_drag_data_received_cb): + * src/ephy-window.c: (ephy_window_set_zoom), + (ephy_window_load_in_tabs): + * src/ephy-window.h: + + Add EphyWindow API to open multiple uris in + tabs, use it for dnd on the notebook. + +2004-06-23 Christian Persch + + * embed/mozilla/GlobalHistory.cpp: + + Move check for javascript after the http[s] checks. + +2004-06-23 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarks-import.c: + (folders_list_to_topic_name): + * src/bookmarks/ephy-bookmarks-menu.c: (create_menu), + (ensure_folder), (create_submenu), (ephy_bookmarks_menu_rebuild): + + "/" in a topic title is now a submenu in + the bookmarks menu. + +2004-06-22 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarks-import.c: + (folders_list_to_topic_name), (ephy_bookmarks_import_mozilla): + + Keep the whole hierarchy of folders in the topic name, separated + by |. Mozilla importer only for now. + +2004-06-22 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarks-import.c: (bookmark_add), + (xbel_parse_bookmark), (ephy_bookmarks_import_mozilla), + (parse_rdf_item): + + Drop some unused code. + +2004-06-21 Marco Pesenti Gritti + + * lib/ephy-gui.c: (ephy_gui_help), (ephy_gui_select_row_by_key): + * lib/widgets/ephy-node-view.c: (ephy_node_view_key_press_cb): + * src/bookmarks/ephy-topics-selector.c: (topic_key_pressed): + + Factor out the helper to select a treeview row by column and + use it also in the topic selector. + + * lib/ephy-gui.h: + * src/bookmarks/ephy-bookmarks-editor.c: + * src/bookmarks/ephy-new-bookmark.c: + * src/ephy-history-window.c: + * src/pdm-dialog.c: + * src/ppview-toolbar.c: + * src/prefs-dialog.c: + * src/window-commands.c: + * embed/downloader-view.c: + + Remove braindead gtk.h inclusion and deal with + fallout headers. + +2004-06-21 Marco Pesenti Gritti + + * src/bookmarks/ephy-new-bookmark.c: (response_cb), + (ephy_new_bookmark_construct): + * src/bookmarks/ephy-topics-selector.c: (renderer_edited_cb), + (renderer_editing_canceled_cb), (ephy_topics_build_ui), + (ephy_topics_selector_new), (ephy_topics_selector_new_topic): + * src/bookmarks/ephy-topics-selector.h: + + Add a New topic button to the new bookmark dialog. + +2004-06-21 Christian Persch + + * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_get_flags), + (parse_item_list), (parse_toolbars): + + Check for empty attributes before adding the item when parsing + the toolbars file. Should fix bug #144698. + +2004-06-21 Christian Persch + + * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import): + + Allow importing from Epiphany bookmarks format (RDF), + fixes bug #144699. + +2004-06-21 Adam Hooper + + * lib/ephy-marshal.list: + + Whoops. Um. Fixed the build. + +2004-06-21 Adam Hooper + + * embed/ephy-embed-single.c: + * embed/ephy-embed.c: (ephy_embed_base_init): + * embed/ephy-embed.h: + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/mozilla-embed-single.cpp: + + Implement popup-blocking signals. Part of bug #111930. + +2004-06-20 Christian Persch + + * embed/mozilla/GlobalHistory.cpp: + + Remove implementation of ::HidePage again, it's really not used + anyway in mozilla (history load listener is the only place, and it's + not build, not even updated for API changes). + +2004-06-20 Christian Persch + + * embed/mozilla/GlobalHistory.cpp: + + Implement GlobalHistory2::HidePage, fixes bug #142143. + +2004-06-20 Christian Persch + + * src/ephy-notebook.c: (sync_label), (tab_label_style_set_cb), + (build_tab_label), (ephy_notebook_add_tab): + * src/ephy-window.c: (ephy_window_get_tabs): + + Make tab labels 1/n-th of the window width (n = number of tabs), + with a minimum size so they don't get too tiny. + Make the tooltip cover the label + favicon, not just the label. + +2004-06-19 Marco Pesenti Gritti + + * src/ephy-notebook.c: (ephy_notebook_move_tab), (move_tab), + (ephy_notebook_switch_page_cb), (ephy_notebook_init), + (ephy_notebook_finalize), (ephy_notebook_add_tab), + (ephy_notebook_remove_tab): + * src/ephy-notebook.h: + * src/ephy-shell.c: (ephy_shell_new_tab): + * src/ephy-shell.h: + * src/ephy-tab.c: (ephy_tab_new_window_cb): + * src/ephy-window.c: (ephy_window_add_tab): + + Append tabs at the end instead of grouping + them near the current one. + +2004-06-19 Marco Pesenti Gritti + + * data/art/epiphany-tab-loading.gif: + + Update from new winstripe theme of Firefox + +2004-06-17 Christian Persch + + * embed/mozilla/GtkNSSClientAuthDialogs.cpp: + * embed/mozilla/GtkNSSDialogs.cpp: + + Escape strings before using the with markup in labels. + Patch by Crispin Flowerday. + +2004-06-16 Christian Persch + + * src/ephy-notebook.c: (build_tab_label): + + Set data for close-button on the tab label. + +2004-06-16 Christian Persch + + * lib/egg/egg-editable-toolbar.c: + (egg_editable_toolbar_disconnect_model), + (egg_editable_toolbar_deconstruct), + (egg_editable_toolbar_set_model), + (egg_editable_toolbar_class_init), (egg_editable_toolbar_finalize), + (egg_editable_toolbar_new), (egg_editable_toolbar_new_with_model), + (egg_editable_toolbar_set_fixed): + * lib/egg/egg-editable-toolbar.h: + * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_get_flags), + (parse_toolbars): + * src/bookmarks/ephy-bookmarksbar.c: + (ephy_bookmarksbar_set_window), (ephy_bookmarksbar_class_init): + * src/ephy-window.c: (ephy_window_fullscreen), + (ephy_window_unfullscreen), (ephy_window_init): + * src/toolbar.c: (toolbar_style_changed_cb), (parent_set_cb), + (toolbar_init), (toolbar_finalize), (toolbar_new): + + Go back to construction the toolbar when the model is set, fixes + bug #144191. + +2004-06-15 Marco Pesenti Gritti + + * data/bme.desktop.in: + * data/epiphany.desktop.in: + + Use GenericName. See #144284 for the hig change. + Fix bug #140625. + +2004-06-15 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/mozilla-embed.cpp: + + Work around mozilla bug #246392 which goes back to the original urls + when reloading a frameset. Fixes bug #115800. + +2004-06-14 Christian Persch + + * src/bookmarks/ephy-new-bookmark.c: (duplicate_dialog_construct): + + Use g_markup_print_escaed(). + +2004-06-14 Christian Persch + + * src/bookmarks/ephy-new-bookmark.c: (duplicate_dialog_construct): + * src/bookmarks/ephy-topic-action.c: (build_topics_menu): + + Escape strings before using them with markup in labels. + +2004-06-14 Christian Persch + + * embed/ephy-embed.c: (ephy_embed_reload): + * embed/ephy-embed.h: + * embed/mozilla/mozilla-embed.cpp: + * src/prefs-dialog.c: + * src/window-commands.c: (window_cmd_view_reload): + + Get rid of EmbedReloadFlags, and use a gboolean force parameter + in ephy_embed_reload() instead, since we only had two states anyway + - EMBED_RELOAD_NORMAL, and EMBED_RELOAD_FORCE. + +2004-06-13 Marco Pesenti Gritti + + * configure.in: + + Add GNOME_COMMON_INIT + +2004-06-12 Marco Pesenti Gritti + + * embed/ephy-embed-single.c: (ephy_embed_single_open_window): + * embed/ephy-embed-single.h: + * embed/ephy-embed.h: + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/EventContext.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + + Add a way to open new windows passing features and uri. + Something like js window.open. It's necessary for popup + blocker. + +2004-06-12 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb): + + Allow items to be dragged from toolbar editor also when + in items only mode. + + * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_add_separator): + + The type should be the same as tool items. + +2004-06-12 Adam Hooper + + * src/ephy-tab.c: (ephy_tab_class_init): + + Put proper property IDs on properties (PROP_LOAD_STATUS was there + three times). + +2004-06-12 Christian Persch + + * lib/widgets/ephy-spinner.c: (ephy_spinner_new), + (ephy_spinner_init), (ephy_spinner_expose): + + Make spinner not use a visible window, and fix coordinates + accordingly. Patch by Crispin Flowerday, fixes bug #134686. + +2004-06-11 Christian Persch + + * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_finalize): + * src/bookmarks/ephy-bookmarksbar-model.c: + (ephy_bookmarksbar_model_dispose), + (ephy_bookmarksbar_model_finalize), + (ephy_bookmarksbar_model_class_init): + * src/ephy-toolbars-model.c: (ephy_toolbars_model_dispose), + (ephy_toolbars_model_finalize), (ephy_toolbars_model_class_init): + + Save the toolbars models from dispose, not from finalize, since you + cannot emit signals from the latter (the get_item_* signals are + emitted while saving). + +2004-06-11 Marco Pesenti Gritti + + * configure.in: + + Do not put ACLOCAL flags in the Makefile, + it should not be necessary anymore with + recent gnome-common. + +2004-06-10 Christian Persch + + Merging bookmarksbar-separation branch. + +2004-06-09 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (drag_data_get_cb), + (set_item_drag_source): + * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_to_xml), + (impl_get_item_id), (impl_get_item_data), + (egg_toolbars_model_class_init), + (egg_toolbars_model_get_item_data): + * lib/egg/egg-toolbars-model.h: + * src/ephy-toolbars-model.c: (impl_get_item_data), + (impl_get_item_id), (ephy_toolbars_model_class_init): + + s/get_item_name/get_item_data + + Do not assume data isnt changing, use the id + and convert later instead. + +2004-06-09 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (drag_data_get_cb), + (set_item_drag_source), (create_item_from_action), (create_item), + (drag_data_received_cb), (egg_editable_toolbar_set_edit_mode): + * lib/egg/egg-toolbar-editor.c: (model_has_action): + * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_item_nth): + * lib/egg/egg-toolbars-model.h: + * src/ephy-toolbars-model.c: (get_toolbar_and_item_pos), + (ephy_toolbars_model_class_init), (item_added): + + Retain custom types when moving items around + +2004-06-10 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarks-editor.c: + (toolbar_items_changed_cb), (cmd_show_in_bookmarks_bar), + + Block the signal when removing bookmarks from toolbars. + + (ephy_bookmarks_editor_get_property): + * src/bookmarks/ephy-bookmarksbar-model.c: + (ephy_bookmarksbar_model_remove_bookmark): + + Remove all copy of a bookmark from toolbar, not just one + of them. + +2004-06-10 Christian Persch + + * src/bookmarks/ephy-bookmarksbar-model.c: + (ephy_bookmarksbar_model_finalize): + * src/ephy-toolbars-model.c: (ephy_toolbars_model_finalize): + + Save models on exit. + +2004-06-10 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarksbar-model.c: (item_added_cb): + * src/bookmarks/ephy-bookmarksbar.c: (remove_action_from_model), + (bookmark_destroy_cb), (ephy_bookmarksbar_action_request): + + Cleanup the toolbars model when destroying a bookmark + action. Remove the cleanup code from the model. + +2004-06-10 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb), + (egg_editable_toolbar_get_model): + * lib/egg/egg-editable-toolbar.h: + * lib/egg/egg-toolbars-model.h: + + Add a getter for the model. + Add a flag to accept only tool items as source. + + * src/bookmarks/ephy-bookmarksbar.c: + * src/ephy-toolbars-model.c: (update_flags_and_save_changes): + * src/toolbar.c: (toolbar_added_cb), (toolbar_realize), + (toolbar_unrealize), (toolbar_class_init), (toolbar_finalize): + + Fixup dnd targets and use the new flag for main toolbar. + +2004-06-10 Christian Persch + + * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_class_init): + * src/bookmarks/ephy-bookmarks.c: (get_item_type_forward_cb), + (get_item_id_forward_cb), (get_item_data_forward_cb), + (ephy_bookmarks_get_toolbars_model): + * src/ephy-shell.c: (ephy_shell_get_toolbars_model): + * src/ephy-toolbars-model.c: (ephy_toolbars_model_load), + (ephy_toolbars_model_init): + * src/ephy-toolbars-model.h: + + Forward get_item_[type|id|data] from toolbars model to + bookmarksbar model. That way we can have bookmarks/topics also + on the main toolbar. + +2004-06-10 Christian Persch + + * lib/egg/egg-toolbars-model.c: (_egg_accumulator_STRING), + (egg_toolbars_model_class_init), (egg_toolbars_model_get_item_id), + (egg_toolbars_model_get_item_data), + (egg_toolbars_model_get_item_type): + * lib/egg/egg-toolbars-model.h: + * lib/egg/eggmarshalers.c: + (_egg_marshal_BOOLEAN__OBJECT_STRING_STRING), + (_egg_marshal_STRING__POINTER), + (_egg_marshal_STRING__STRING_STRING): + * lib/egg/eggmarshalers.h: + * lib/egg/eggmarshalers.list: + + Make get_item_[type|id|data] signals. + +2004-06-08 Christian Persch + + * lib/egg/egg-editable-toolbar.c: (find_action), (create_item), + (egg_editable_toolbar_construct), (egg_editable_toolbar_realize), + (egg_editable_toolbar_unrealize), (egg_editable_toolbar_set_model), + (egg_editable_toolbar_set_merge), + (egg_editable_toolbar_set_property), + (egg_editable_toolbar_get_property), + (egg_editable_toolbar_class_init), (egg_editable_toolbar_init), + (egg_editable_toolbar_set_edit_mode): + * lib/egg/egg-editable-toolbar.h: + * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_load), + (egg_toolbars_model_init): + + Only construct the toolbar on realize. When setting a different model, + unrealize the toolbar. Connect to model only while realized, fixes + crashes when setting flags on the toolbars model. + + * data/ui/epiphany-bookmarksbar.xml: + * data/ui/epiphany-fs-toolbar.xml: + * data/ui/epiphany-toolbar.xml: + + Separated. Fix root name to be "toolbars" which is the name we + save the model with. + + * src/bookmarks/ephy-bookmarksbar-model.c: + (ephy_bookmarksbar_model_get_type), (get_toolbar_and_item_pos), + (get_toolbar_pos), (ephy_bookmarksbar_model_get_action_name), + (ephy_bookmarksbar_model_get_node), + (ephy_bookmarksbar_model_add_bookmark), + (ephy_bookmarksbar_model_remove_bookmark), + (ephy_bookmarksbar_model_has_bookmark), (save_changes_idle), + (save_changes), (update_flags_and_save_changes), + (bookmark_destroy_cb), (item_added_cb), (impl_add_item), + (impl_get_item_id), (impl_get_item_type), (load_toolbars), + (ephy_bookmarksbar_model_init), (ephy_bookmarksbar_model_finalize), + (ephy_bookmarksbar_model_set_property), + (ephy_bookmarksbar_model_get_property), + (ephy_bookmarksbar_model_class_init), + (ephy_bookmarksbar_model_new): + * src/bookmarks/ephy-bookmarksbar-model.h: + * src/ephy-toolbars-model.c: (save_changes_idle), (save_changes), + (update_flags_and_save_changes), (get_toolbar_pos), + (load_toolbars), (ephy_toolbars_model_init), + (ephy_toolbars_model_finalize), (ephy_toolbars_model_class_init), + (ephy_toolbars_model_new): + * src/ephy-toolbars-model.h: + + Split toolbars model in bookmarks and non-bookmarks parts. + + * src/bookmarks/ephy-bookmarksbar.c: (ephy_bookmarksbar_get_type), + (go_location_cb), (bookmark_destroy_cb), + (ephy_bookmarksbar_action_request), (toolbar_added_cb), + (ephy_bookmarksbar_set_window), (ephy_bookmarksbar_realize), + (ephy_bookmarksbar_unrealize), (ephy_bookmarksbar_init), + (ephy_bookmarksbar_finalize), (ephy_bookmarksbar_set_property), + (ephy_bookmarksbar_get_property), (ephy_bookmarksbar_class_init), + (ephy_bookmarksbar_new): + * src/bookmarks/ephy-bookmarksbar.h: + * src/toolbar.c: (go_location_cb), (toolbar_set_property), + (toolbar_get_property), (toolbar_class_init), (toolbar_set_window), + (toolbar_init), (toolbar_new), (toolbar_set_location), + (toolbar_update_navigation_actions): + * src/toolbar.h: + * src/ephy-window.c: (get_chromes_visibility), + (sync_chromes_visibility), (ephy_window_fullscreen), + (ephy_window_unfullscreen), (action_request_forward_cb), + (ephy_window_init), (ephy_window_get_toolbar), + (ephy_window_get_bookmarksbar): + * src/ephy-window.h: + * src/window-commands.c: (window_cmd_view_fullscreen), + (toolbar_editor_destroy_cb), (toolbar_editor_response_cb), + (window_cmd_edit_toolbar): + + Split toolbars in bookmarks and non-bookmarks toolbars. + + * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init_defaults), + (ephy_bookmarks_get_toolbars_model), (ephy_bookmarks_set_property), + (ephy_bookmarks_get_property), (ephy_bookmarks_class_init), + (ephy_bookmarks_finalize): + * src/bookmarks/ephy-bookmarks.h: + * src/ephy-shell.c: (ephy_shell_get_toolbars_model): + * src/ephy-shell.h: + + Made bookmarksbar toolbars model a service of EphyBookmarks. + + * src/bookmarks/ephy-bookmark-properties.c: + (ephy_bookmark_properties_set_property), + (toolbar_checkbox_changed_cb), (build_ui), + (ephy_bookmark_properties_init): + * src/bookmarks/ephy-bookmarks-editor.c: + (cmd_show_in_bookmarks_bar), (ephy_bookmarks_editor_update_menu), + (toolbar_items_changed_cb), (ephy_bookmarks_editor_init): + + Adapt to changes above. + + * data/ui/Makefile.am: + * src/Makefile.am: + * src/bookmarks/Makefile.am: + + Makefile changes. + +2004-06-09 Christian Persch + + * data/default-prefs.js: + + Disable xpinstall by default. Fixes bug #144035. + +2004-06-09 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (drag_data_get_cb), + (set_item_drag_source): + * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_to_xml), + (impl_get_item_id), (impl_get_item_data), + (egg_toolbars_model_class_init), + (egg_toolbars_model_get_item_data): + * lib/egg/egg-toolbars-model.h: + * src/ephy-toolbars-model.c: (impl_get_item_data), + (impl_get_item_id), (ephy_toolbars_model_class_init): + + s/get_item_name/get_item_data + + Do not assume data isnt changing, use the id + and convert later instead. + +2004-06-09 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (drag_data_get_cb), + (set_item_drag_source), (create_item_from_action), (create_item), + (drag_data_received_cb), (egg_editable_toolbar_set_edit_mode): + * lib/egg/egg-toolbar-editor.c: (model_has_action): + * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_item_nth): + * lib/egg/egg-toolbars-model.h: + * src/ephy-toolbars-model.c: (get_toolbar_and_item_pos), + (ephy_toolbars_model_class_init), (item_added): + + Retain custom types when moving items around + +2004-06-08 Christian Persch + + * embed/mozilla/EventContext.cpp: + + Fix CSS background detection, based on a galeon patch by + Crispin Flowerday. Fixed bug #143602. + +2004-06-08 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + + Adjust comment about mozilla bug #232057, which was + WONTFIXed. + +2004-06-08 Marco Pesenti Gritti + + * src/ephy-window.c: (show_embed_popup): + + Do not hide clipboard items for the input context + (Bug #139040) + +2004-06-08 Marco Pesenti Gritti + + * data/default-prefs.js: + * embed/mozilla/mozilla-embed-single.cpp: + + Move external protocols prefs defaults in + the javascript file and add webcal (Bug #143899) + +2004-06-07 Christian Persch + + * embed/mozilla/FilePicker.cpp: + + Fix setting default filename in the !modeSave case. + +2004-06-07 Christian Persch + + * embed/mozilla/FilePicker.cpp: + + Don't allow ::SetDefaultString unless we're in modeSave. + +2004-06-07 Ross Burton + + * src/ephy-shell.c: + + Load extensions from ~/.gnome2/epiphany/extensions as well. + +2004-06-07 Christian Persch + + * embed/mozilla/FilePicker: + + Use ephy-file-chooser convenience constructor instead of duplicating + code here. + +2004-06-06 Christian Persch + + * embed/mozilla/GtkNSSKeyPairDialogs.cpp: + * embed/mozilla/mozilla-version.h: + + Simplified mozilla version checks with new MOZILLA_IS_VERSION4 macro. + +2004-06-05 Christian Persch + + * configure.in: + + Add help/es/Makefile to AC_OUTPUT. + +2004-06-05 Francisco Javier F. Serrador + + * help/es: Added Spanish help pages and related stuff + +2004-06-03 Marco Pesenti Gritti + + * configure.in: + * embed/ephy-embed.c: (ephy_embed_base_init), + (ephy_embed_set_zoom): + * embed/ephy-embed.h: + * 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/EphyHeaderSniffer.h: + * embed/mozilla/EphySingle.cpp: + * embed/mozilla/EphyUtils.cpp: + * embed/mozilla/EphyUtils.h: + * embed/mozilla/EventContext.cpp: + * embed/mozilla/EventContext.h: + * embed/mozilla/FilePicker.cpp: + * embed/mozilla/GlobalHistory.cpp: + * embed/mozilla/GlobalHistory.h: + * embed/mozilla/GtkNSSClientAuthDialogs.cpp: + * embed/mozilla/GtkNSSDialogs.cpp: + * embed/mozilla/GtkNSSKeyPairDialogs.cpp: + * embed/mozilla/Makefile.am: + * embed/mozilla/MozDownload.cpp: + * embed/mozilla/MozDownload.h: + * embed/mozilla/MozRegisterComponents.cpp: + * embed/mozilla/MozillaPrivate.cpp: + * embed/mozilla/mozilla-download.cpp: + * embed/mozilla/mozilla-embed-persist.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + * embed/mozilla/mozilla-embed.cpp: + * embed/mozilla/mozilla-version.h: + * src/ephy-tab.c: (ephy_tab_address_cb), + (ephy_tab_content_change_cb), (ephy_tab_init): + * src/ephy-window.c: (ephy_window_set_zoom): + + Merge mozilla-embed-strings branch + +2004-06-02 Christian Persch + + * src/ephy-window.c: (update_exit_fullscreen_popup_position): + + Move the "Exit Fullscreen" popup to the right in RTL locale. + Fixes bug #140828. + +2004-06-01 Adam Hooper + + * lib/egg/egg-editable-toolbar.c: + * lib/egg/egg-toolbar-editor.c: (compare_actions), + (editor_drag_data_received_cb), (editor_drag_data_delete_cb), + (egg_toolbar_editor_add_action), (update_actions_list): Update from + libegg + +2004-05-31 Christian Persch + + * configure.in: + + Post-release version bump. + +2004-05-31 Christian Persch + + * configure.in: + * doc/reference/tmpl/ephy-command-manager.sgml: + * doc/reference/tmpl/ephy-embed-persist.sgml: + * doc/reference/tmpl/ephy-embed.sgml: + * doc/reference/tmpl/ephy-glade.sgml: + * doc/reference/tmpl/ephy-node-db.sgml: + * doc/reference/tmpl/ephy-tab.sgml: + * doc/reference/tmpl/ephy-window.sgml: + * doc/reference/tmpl/epiphany-unused.sgml: + + === Release 1.3.0 === + +2004-05-29 Christian Persch + + * src/window-commands.c: (window_cmd_view_reload): + + Fix reload logic not to use forced reload by default. + Patch by C. J. N. Breame, fixes bug #143365 + +2004-05-29 Christian Persch + + * lib/ephy-debug.h: + + Revert varargs change, it doesn't work for LOG("Message") without + arguments. + +2004-05-29 Christian Persch + + * lib/ephy-debug.h: + + Use ISO style variable argument macros. Patch by Brian Cameron, + part of bug #141319. + +2004-05-29 Christian Persch + + * configure.in: + + Add check for 'mkdtemp', since solaris doesn't have it. + + * lib/ephy-file-helpers.c: (ephy_file_tmp_dir): + + Error out if we don't have mkdtemp. + Part of bug #141319. + +2004-05-29 Christian Persch + + * lib/ephy-dialog.c: (ephy_dialog_construct): + + Don't return a value in void function, part of bug #141319. + +2004-05-29 Christian Persch + + * embed/ephy-embed.c: (ephy_embed_print_preview_navigate): + + Don't return a value in void function, part of bug #141319. + +2004-05-29 Christian Persch + + * configure.in: + + Depend on glib >= 2.4.1 because of the fix for bug #112222. + +2004-05-29 Christian Persch + + * embed/mozilla/GtkNSSKeyPairDialogs.cpp: + + Fix for mozilla API change (ported from galeon). + +2004-05-29 Christian Persch + + * configure.in: + + Increase mozilla snapshot level for 1.8a2/trunk. + +2004-05-29 Christian Persch + + * NEWS: + + Update for 1.3.0. + +2004-05-29 Christian Rose + + * configure.in: Added "tk" to ALL_LINGUAS. + +2004-05-28 Christian Persch + + * embed/mozilla/MozDownload.h: + + Include "config.h". + +2004-05-28 Christian Persch + + * embed/mozilla/ContentHandler.h: + + Always include "config.h" ! + +2004-05-28 Christian Persch + + * embed/mozilla/ContentHandler.h: + + Fix snapshot check for mozilla >= 1.7rc2 . + +2004-05-24 Xan Lopez + + * embed/downloader-view.c: (update_status_icon): + + Remove unused field in struct + + * embed/mozilla/GtkNSSClientAuthDialogs.cpp: + * embed/mozilla/GtkNSSDialogs.cpp: + + Fix build with 1.8a2 + +2004-05-23 Paisa Seeluangsawat + + * configure.in: Added "th" (Thai) to ALL_LINGUAS. + +2004-05-23 Marco Pesenti Gritti + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/MozillaPrivate.cpp: + + Fix some headers fallouts with mozilla head + +2004-05-22 Christian Persch + + * embed/mozilla/ContentHandler.h: + + Fix compilation with moz 1.6. + +2004-05-22 Crispin Flowerday + + * libegg/toolbareditor/egg-toolbar-editor.c + (event_box_realize_cb), (editor_create_item): + + Set the drag icon on + realize, otherwise the current icon theme isn't used, and it falls + back to the default theme. + +2004-05-22 Christian Persch + + * configure.in: + + Recognise mozilla 1.8a1 and 1.8a2. + +2004-05-21 Christian Persch + + * src/ephy-statusbar.c: (ephy_statusbar_set_progress): + * src/ephy-tab.c: (ephy_tab_class_init), (build_load_percent), + (ephy_tab_net_state_cb), (ephy_tab_get_load_percent): + + Elimiate indeterminate progress, fixes bugs #142303 and #142305. + +2004-05-20 Christian Persch + + * embed/ephy-history.c: (ephy_history_set_property), + (ephy_history_get_property): + + Fix stupid bug. + +2004-05-19 Christian Persch + + * src/ephy-notebook.c: (ephy_notebook_remove_tab): + * src/ephy-window.c: (tab_removed_cb): + + Emit the "tab_removed" signal also for the window's last tab. + Part of bug #142078. + +2004-05-19 Christian Persch + + * src/bookmarks/ephy-bookmark-action.c: (activate_cb), + (button_press_cb), (button_release_cb), (connect_proxy), + (ephy_bookmark_action_class_init): + * src/toolbar.c: (go_location_cb): + + Open bookmark in new tab on middle-click. Fixes bug #106250. + +2004-05-19 Christian Persch + + * lib/widgets/ephy-cell-renderer-progress.c: + (ephy_cell_renderer_progress_init), (compute_dimensions), + (ephy_cell_renderer_progress_get_size), + (ephy_cell_renderer_progress_render): + + Backported fixes from gtk+ cvs head. + +2004-05-19 Christian Persch + + * embed/mozilla/MozDownload.cpp: + + Fix a MOZILLA_SNAPSHOT check for 1.7 branch. + +2004-05-19 Christian Persch + + * configure.in: + + Generate Makefile in help/es too. + +2004-05-19 Christian Persch + + * embed/print-dialog.c: (ephy_print_dialog_browse_button_cb): + * src/bookmarks/ephy-bookmarks-editor.c: + (import_dialog_response_cb): + + Fix capitalisation. + +2004-05-17 Christian Persch + + * embed/mozilla/EphySingle.cpp: + + Fix observer topic check for cookie "cleared" notification. + +2004-05-15 Christian Persch + + * lib/ephy-dialog.c: (set_value_from_editable), + (set_value_from_radiobuttongroup), (set_value_from_spin_button), + (set_value_from_togglebutton), (set_combo_box_from_value): + + Fix mem leak. + +2004-05-15 Christian Persch + + * lib/egg/egg-toolbar-editor.c: (egg_toolbar_editor_finalize): + + Fix mem leaks. + +2004-05-15 Christian Persch + + * embed/mozilla/mozilla-embed-persist.cpp: + + Fix refcount leak. + +2004-05-15 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + + Set mEventReceiver to nsnull in ::Destroy(), fixes a crasher. + +2004-05-14 Christian Persch + + * embed/mozilla/EphyContentPolicy.cpp: + + Yet another mozilla API change. + +2004-05-13 Christian Persch + + * src/ephy-window.c: + + Forgot to change action entries for last commit. + +2004-05-13 Christian Persch + + * data/ui/epiphany-ui.xml: + * src/popup-commands.c: + * src/popup-commands.h: + + Simplify context menu wrt. frames. Fixes bug #138442. + +2004-05-12 Christian Persch + + * src/epiphany.in: + + Make sure we don't add a colon at the end of LD_LIBRARY_PATH, + which will make LD_LIBRARY_PATH include the current directory. + Should fix bug #141576. + +2004-05-12 Christian Persch + + * lib/widgets/ephy-cell-renderer-progress.c: + (ephy_cell_renderer_progress_class_init), + (ephy_cell_renderer_progress_init), + (ephy_cell_renderer_progress_new), + (ephy_cell_renderer_progress_finalize), + (ephy_cell_renderer_progress_get_property), + (ephy_cell_renderer_progress_set_property), + (ephy_cell_renderer_progress_set_value), + (ephy_cell_renderer_progress_set_text), (compute_dimensions), + (ephy_cell_renderer_progress_get_size), + (ephy_cell_renderer_progress_render): + * lib/widgets/ephy-cell-renderer-progress.h: + + Backport changed from the new gtkcellrendererprogress which + was based on ephy's, to support RTL. + +2004-05-11 Christian Persch + + * lib/ephy-dialog.c: (set_combo_box_from_value): + + Fix compilation with gcc 2.95. + +2004-05-11 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + + One more NS_ENSURE_TRUE. + +2004-05-11 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + + Changed back to NS_ENSURE_TRUE as per discussion in bug #142184. + +2004-05-11 Christian Persch + + * embed/mozilla/mozilla-notifiers.cpp: + + Remove unused variable. + +2004-05-11 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/mozilla-embed.cpp: + + Destroy the EphyBrowser in destroy handler, but delete it only on + finalize. Make public EphyBrowser methods safe for calling after + Destroy. Part of bug #142184. + +2004-05-10 Christian Persch + + * src/ephy-statusbar.c: (create_statusbar_security_icon), + (create_statusbar_progress), (sync_shadow_type), + (ephy_statusbar_init), (ephy_statusbar_set_progress), + (ephy_statusbar_add_widget): + * src/ephy-tab.c: (ephy_tab_net_state_cb): + + Statusbar re-design: Move lock icon to left; hide progress bar + when no activity. Part of bug #137845. + +2004-05-09 Christian Persch + + * src/ephy-window.c: + + Fix accelerator for OpenImage action. + +2004-05-08 Christian Persch + + * src/ephy-automation.c: (impl_ephy_automation_loadurl): + + Jump to new tabs created from command lines; fixes bug #141168. + +2004-05-08 Christian Persch + * lib/ephy-file-chooser.c: (ephy_file_chooser_add_pattern_filter), + (ephy_file_chooser_add_mime_filter), (ephy_file_chooser_new): + * lib/ephy-file-chooser.h: + + Add convenience functions for creating a filter with a bunch of mime + types or patterns and add it to a file chooser. Those should really + be in gtk+; see bug #142142. + + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/FilePicker.cpp: + * embed/print-dialog.c: (ephy_print_dialog_browse_button_cb): + * src/bookmarks/ephy-bookmarks-editor.c: + (import_dialog_response_cb): + * src/prefs-dialog.c: (prefs_download_path_button_clicked_cb): + * src/window-commands.c: (window_cmd_file_open): + + Add some filters to the file chooser dialogues. Fixes bug #139418. + +2004-05-08 Christian Persch + + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/EphyHeaderSniffer.h: + + Forward nsIAuthPrompt interface to the single sign-on prompt + implementation. + +2004-05-07 Christian Persch + + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/FilePicker.cpp: + + Adjust MOZILLA_SNAPSHOT checks for changed snapshot levels. + +2004-05-07 Christian Persch + + * configure.in: + + Increase snapshot level for mozilla >= 1.7rc2 and 1.8a/trunk. + +2004-05-06 Christian Persch + + * configure.in: + + Check for nsIPassword.h + + * embed/mozilla/mozilla-embed-single.cpp: + + Allow compilation without nsIPassword (mozilla wallet extension). + +2004-05-06 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + + Adapt to mozilla API change. + +2004-05-06 Christian Persch + + * configure.in: + + Recognise 1.7rc* too. + +2004-05-03 Christian Persch + + * embed/mozilla/mozilla-embed-persist.cpp: + + Whenever we have one, pass the cache key to the persist object. + That way we don't re-fetch the page on save. Fixes bug #141652. + +2004-05-03 Christian Persch + + * embed/mozilla/mozilla-embed-persist.cpp: + + Fix a mem leak; thanks to Crispin for spotting it. + +2004-05-03 Patanjali Somayaji + + * lib/ephy-gui.c: (ephy_gui_confirm_overwrite_file): + + title added back to dialog - see notes on bug #133152 + +2004-05-03 Patanjali Somayaji + + * lib/ephy-gui.c: (ephy_gui_confirm_overwrite_file): + + More HIGifying of the overwrite confirmation dialog - + - title removed from dialog + - dialog removed from window list + +2004-05-02 Piers Cornwell + + * lib/ephy-gui.c: (ephy_gui_confirm_overwrite_file): + + Make Escape cancel overwrite dialog. + +2004-05-01 Christian Persch + + * embed/ephy-embed.c: (ephy_embed_get_encoding), + (ephy_embed_has_automatic_encoding): + * embed/ephy-embed.h: + * embed/ephy-encodings.c: + * embed/ephy-encodings.h: + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/MozRegisterComponents.cpp: + * embed/mozilla/mozilla-embed.cpp: + * src/ephy-encoding-dialog.c: (sync_embed_cb), (activate_choice): + * src/ephy-encoding-menu.c: (update_encoding_menu_cb), + (encoding_activate_cb): + + Clean up encoding handling. + +2004-05-01 Piers Cornwell + + * help/C/epiphany.xml: + + Minor updates to match UI. + +2004-05-01 Christian Persch + + * src/ephy-statusbar.c: (ephy_statusbar_init), + (ephy_statusbar_finalize), (ephy_statusbar_set_security_state): + * src/ephy-statusbar.h: + + Make the statusbar's GtkTooltips publicly accessibly. + +2004-04-30 Piers Cornwell + + * lib/ephy-gui.c: (ephy_gui_confirm_overwrite_file): + + More HIG love for overwrite confirmation. Partial fix for bug #133152. + +2004-04-29 Marco Pesenti Gritti + + * embed/mozilla/EventContext.cpp: + * embed/mozilla/EventContext.h: + * embed/mozilla/MozillaPrivate.cpp: + * embed/mozilla/MozillaPrivate.h: + * embed/mozilla/mozilla-embed.cpp: + + Complete headers defines + +2004-04-29 Patanjali Somayaji + + * lib/ephy-gui.c + + changes in ephy_gui_confirm_overwrite_file () + + HIGified dialog created with "Cancel" and "Overwrite" + buttons. + + Fix for bug #133152 + +2004-04-29 Marco Pesenti Gritti + + * 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. + +2004-04-29 Marco Pesenti Gritti + + * configure.in: + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/Makefile.am: + + Add defines for private mozilla api usage. It will + make easier to track what we need to port to embed + string and what we need to be using only public api + (on the long time). + +2004-04-28 Piers Cornwell + + * help/C/epiphany.xml: + * help/C/figures/ephy-addressbar-smartbookmark-screenshot.png: + * help/C/figures/ephy-bookmarkbar-smartbookmark-screenshot.png: + + Updated Smart Bookmarks help content. Patch by + poobar@nycap.rr.com. Fixes bug #139616. + +2004-04-28 Piers Cornwell + + * help/C/figures/ephy-screenshot.png: + * help/C/figures/ephy-history-window-screenshot.png: + + Update screenshots. + +2004-04-28 Marco Pesenti Gritti + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/mozilla-embed.cpp: + + Ensure we have a DOM window before trying to + get his url. The check was not working anymore + because of initialization changes. + +2004-04-28 Sebastian Heinlein + + * help/C/epiphany.xml: + + Correct listitems to contain para tags. Fixes bug #140918. + +2004-04-27 Marco Pesenti Gritti + + * 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. + +2004-04-27 Christian Persch + + * src/ephy-window.c: (ephy_window_delete_event_cb): + + Exit print preview mode before closing a window. Fixes a crasher; + Epiphany equivalent of galeon bug #121298. + +2004-04-26 Marco Pesenti Gritti + + * embed/mozilla/MozDownload.cpp: + + Fix encoding of saved content; fixes bug #141050. + +2004-04-23 Christian Persch + + * data/epiphany-1.4.pc.in: + + Fix dependency libs not to include libbonoboui. + +2004-04-22 Pablo Saratxaga + + * help/eu/*: added Basque help files from + Hizkuntza Politikarako Sailburuordetza + +2004-04-22 Christian Persch + + * HACKING: + + Document UTF-8 requirement. + + * lib/widgets/ephy-cell-renderer-progress.c: + * lib/widgets/ephy-cell-renderer-progress.h: + * src/bookmarks/ephy-bookmarks-menu.h: + * ChangeLog: + + Converted to UTF-8. + +2004-04-20 Adam Hooper + + * doc/reference/tmpl/ephy-glade.sgml: + + History repeats itself. Added the missing documentation file. + +2004-04-19 Adam Hooper + + * doc/reference/Makefile.am: + * doc/reference/epiphany-docs.sgml: + * doc/reference/epiphany-sections.txt: + * doc/reference/tmpl/ephy-embed.sgml: + * lib/ephy-glade.c: (ephy_glade_widget_new): + + Documented EphyGlade... which is just a single function. + +2004-04-18 Christian Persch + + * configure.in: + * lib/ephy-dialog.c: (set_value_from_editable), + (set_value_from_combobox), (set_value_from_radiobuttongroup), + (set_value_from_spin_button), (set_value_from_togglebutton), + (set_value_from_info), (set_combo_box_from_value), + (set_pref_from_info_and_emit), (save_info), + (ephy_dialog_get_value): + * lib/ephy-dialog.h: + * src/prefs-dialog.c: (setup_font_combo): + + Fix font selection combo box issues; fixes bug #138560. + +2004-04-18 Christian Persch + + * configure.in: + + Remove libbonoboui checks, we don't depend on it anymore. + +2004-04-18 Marco Pesenti Gritti + + * embed/ephy-embed.c: (ephy_embed_chrome_get_type): + * embed/ephy-embed.h: + * embed/mozilla/mozilla-embed.cpp: + * src/ephy-window.c: (ephy_window_set_chrome), + (ephy_window_set_property), (ephy_window_class_init): + + Fix chrome for new windows opened from _blank target. + Fixes bug #139512. + +2004-04-17 Marco Pesenti Gritti + + * embed/mozilla/MozDownload.cpp: + + Do not uncompress when the type is not html. Fixes bug #131778. + +2004-04-17 Marco Pesenti Gritti + + * lib/egg/Makefile.am: + * lib/egg/egg-editable-toolbar.c: (set_drag_cursor): + * lib/egg/egg-toolbar-editor.c: (set_drag_cursor): + * lib/egg/eggstatusicon.c: (egg_status_icon_init), + (egg_status_icon_button_press), (egg_status_icon_button_release): + + Resync with egg + +2004-04-16 Christian Persch + + * 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. + +2004-04-14 Christian Persch + + * lib/ephy-file-chooser.c: (ephy_file_chooser_constructor), + (ephy_file_chooser_class_init): + + Add "Downloads" folder shortcut to our file chooser dialogues. + +2004-04-14 Christian Persch + + * src/ephy-tab.c: (ephy_tab_new_window_cb), + (ephy_tab_visibility_cb), (ephy_tab_destroy_brsr_cb): + + Add debug output. + +2004-04-13 Christian Persch + + * src/bookmarks/ephy-bookmarks-menu.c: (add_bookmarks_menu), + (ephy_bookmarks_menu_rebuild): + * src/ephy-encoding-menu.c: (add_action): + * src/ephy-favorites-menu.c: (ephy_favorites_menu_rebuild): + * src/ephy-tabs-menu.c: (tab_added_cb): + + Set the action's accel_path, fixes bug #139641 for ephy. + +2004-04-09 Christian Persch + + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/FilePicker.cpp: + + Don't quit the filechooser when selecting "No" from the confirm- + overwrite dialoge. Fixes bug #139400. + + * lib/ephy-gui.c: (ephy_gui_confirm_overwrite_file): + + Convert the filename to UTF-8 before showing it in the confirm + dialogue. + +2004-04-09 Piers Cornwell + + * src/ephy-window.c: + * data/ui/epiphany-ui.xml: + + Add Ctrl+S as an alternate accel for Save As. + Fixes bug #139415. + +2004-04-09 Christian Persch + + * src/ephy-location-action.c: (compare_actions), + (init_actions_list): + + Sort the actions in the location entry autocompletion dropdown. + Fixes bug #139575. + +2004-04-09 Adam Hooper + + * embed/ephy-encodings.c: (ephy_encodings_init): + * embed/ephy-favicon-cache.c: (ephy_favicon_cache_init): + * embed/ephy-history.c: (ephy_history_init): + * lib/ephy-node.c: (ephy_node_new_with_id): + * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init): + + Make ephy-node refcount initialize to 1 and not 0. + +2004-04-09 Guntupalli Karunakar + + * configure.in: Added "gu" (Gujarati) to ALL_LINGUAS. + +2004-04-08 Piers Cornwell + + * embed/mozilla/ContentHandler.cpp: + + Make warning message selectable. + +2004-04-07 Adam Hooper + + * doc/reference/tmpl/ephy-node-db.sgml: + + remembered to commit this file with my EphyNodeDb documentation. + +2004-04-07 Christian Biesinger + + * embed/mozilla/ExternalProtocolHandlers.cpp: + * embed/mozilla/ExternalProtocolHandlers.h: + * embed/mozilla/FilePicker.cpp: + * embed/mozilla/Makefile.am: + * embed/mozilla/MozRegisterComponents.cpp: + * embed/mozilla/MozRegisterComponents.h: + * embed/mozilla/mozilla-embed-single.cpp: + + Eliminate ExternalProtocolHandlers in favor of setting prefs to make Mozilla + not handle the protocols internally. + +2004-04-07 Christian Persch + + * lib/eel-gconf-extensions.c: (eel_gconf_handle_error): + + Remove unused variable. + +2004-04-07 Christian Persch + + * lib/eel-gconf-extensions.c: (eel_gconf_handle_error): + + Don't abort on errors, just display a message on console. Fixes bug #139247. + +2004-04-06 Piers Cornwell + + * doc/plan/plan.xml + + Add some bugzilla references. + +2004-04-05 Christian Persch + + * src/ephy-session.c: (window_focus_in_event_cb), + (impl_attach_window), (ephy_session_set_property), + (ephy_session_get_property), (ephy_session_class_init): + + Track the active window. + +2004-04-05 Christian Persch + + * data/glade/epiphany.glade: + * data/glade/print.glade: + + Make pdm and print setup dialogues destroy with parent, too. + +2004-04-05 Christian Persch + + * data/glade/prefs-dialog.glade: + * lib/ephy-dialog.c: (ephy_dialog_get_parent): + * lib/ephy-dialog.h: + * src/prefs-dialog.c: (prefs_homepage_current_button_clicked_cb): + * src/window-commands.c: (window_cmd_file_print_setup), + (window_cmd_edit_personal_data), (window_cmd_edit_prefs): + + Make prefs, pdm and print setup dialogues transient to their parent. + Fixes bug #139124. + +2004-04-04 Adam Hooper + + * HACKING: + + Suggest /* to open comments instead of /** (rationale: gtk-doc) + + * src/ephy-tab.c: (ephy_tab_set_title): + + Change /** to /* + + * doc/reference/Makefile.am: + * doc/reference/epiphany-docs.sgml: + * doc/reference/epiphany-sections.txt: + * lib/ephy-node-db.c: (node_from_id_real), + (ephy_node_db_get_node_from_id), (_ephy_node_db_new_id), + (_ephy_node_db_add_id), (_ephy_node_db_remove_id): + * lib/ephy-node-db.h: + + Documented EphyNodeDb. Changed the ids to guints to conform with + GPtrArray. + + * doc/reference/tmpl/ephy-tab.sgml: + + Say how to get an EphyWindow from an EphyEmbed + + * doc/reference/tmpl/ephy-embed-persist.sgml: + * doc/reference/tmpl/ephy-embed.sgml: + + Automatically changed when I rebuilt docs + +2004-04-03 Crispin Flowerday + + * lib/egg/egg-editable-toolbar.c: (set_fixed_style), + (unset_fixed_style), (toolbar_changed_cb), (unparent_fixed), + (update_fixed), (toolbars_clean), (egg_editable_toolbar_construct), + (egg_editable_toolbar_set_model): + * lib/egg/egg-toolbar-editor.c: (egg_toolbar_editor_load_actions): + * lib/egg/egg-toolbars-model.h: + + Synchronise changes from galeon, this fixes simple usage, stops + crashes when dragging items to and from other applications, and + adds the ability to override the toolbar style. + +2004-04-03 Christian Persch + + * src/ephy-notebook.c: (notebook_drag_data_received_cb): + + Remove stray semicolon. Fixes bug #138902. + +2004-04-02 Iñaki Larrañaga + + * configure.in: + + Added "eu" (Basque) to ALL_LINGUAS. + +2004-04-01 Christian Persch + + * embed/ephy-embed.c: (ephy_embed_chrome_get_type): + * embed/ephy-embed.h: + * embed/mozilla/mozilla-embed.cpp: + * src/ephy-window.c: (get_chromes_visibility), + (sync_chromes_visibility), (update_chromes_actions), + (get_default_chrome), (ephy_window_init), (sync_prefs_with_chrome), + (ephy_window_view_bookmarksbar_cb): + + Fix bookmarks toolbar visibility in fullscreen and print preview mode, as + well as for javascript popups. Fixes bug #138520. + +2004-03-31 Christian Persch + + * configure.in: + + Fix --with-mozilla-snapshot help string; we don't support 1.4 and 1.5 + any more. + +2004-03-30 Piers Cornwell + + * src/ephy-history-window.c: (confirmation_dialog_construct): + + Make buttons the same size in Industrial theme and make text + selectable. + +2004-03-30 Piers Cornwell + + * data/glade/prefs-dialog.glade: + + Use right capitalisation for label. + +2004-03-30 Piers Cornwell + + * data/glade/prefs-dialog.glade: + * embed/mozilla/mozilla-notifiers.cpp: (mozilla_font_size_notifier): + + Don't allow a font size less than 1. + +2004-03-30 Christian Persch + + * data/ui/epiphany-ui.xml: + + Get rid of the separators in the Image and Image/Link popups. + Fixes bug #115897. + +2004-03-30 Adam Hooper + + * doc/reference/epiphany-docs.sgml: + * doc/reference/epiphany-sections.txt: + * doc/reference/tmpl/ephy-embed-factory.sgml: + * embed/ephy-embed-factory.c: + + Documented EphyEmbedFactory. My, that was challenging. Not. + +2004-03-29 Christian Persch + + * embed/mozilla/GtkNSSClientAuthDialogs.cpp: + + Get rid of #if GTK_CHECK_VERSION() stuff and remove optionmenu code. + +2004-03-29 Christian Persch + + * src/ephy-window.c: + * src/popup-commands.c: + * src/popup-commands.h: + * data/ui/epiphany-ui.xml: + + Remove Open Image in New Tab and New Window from the + context menu. + +2004-03-29 Christian Persch + + * configure.in: + * data/.cvsignore: + * data/GNOME_Epiphany_NautilusView.server.in: + * data/Makefile.am: + * data/ui/.cvsignore: + * data/ui/Makefile.am: + * data/ui/nautilus-epiphany-view.xml: + * doc/reference/Makefile.am: + * embed/Makefile.am: + * embed/ephy-embed-popup-control.c: + * embed/ephy-embed-popup-control.h: + * lib/Makefile.am: + * lib/ephy-bonobo-extensions.c: + * lib/ephy-bonobo-extensions.h: + * po/POTFILES.in: + * src/Makefile.am: + * src/ephy-nautilus-view.c: + * src/ephy-nautilus-view.h: + * src/ephy-shell.c: (ephy_automation_factory_cb): + + Removed the nautilus view. + +2004-03-29 Christian Persch + + * src/ephy-completion-model.h: + + Make EphyCompletionColumn a typedef enum, fixes bug #136878. + +2004-03-29 Adam Hooper + + * doc/reference/Makefile.am: + * doc/reference/epiphany-docs.sgml: + * doc/reference/epiphany-sections.txt: + * embed/ephy-command-manager.c: (ephy_command_manager_base_init): + * embed/ephy-command-manager.h: + + Document EphyCommandManager. + +2004-03-29 Federico Mena Quintero + + Fixes #138263. + + * lib/ephy-file-chooser.h: Remove EPHY_RESPONSE_OPEN and + EPHY_RESPONSE_SAVE; we'll use GTK_RESPONSE_ACCEPT instead. + + * lib/ephy-file-chooser.c (ephy_file_chooser_new): Use + GTK_RESPONSE_ACCEPT rather than EPHY_RESPONSE_*. + + * embed/print-dialog.c (print_filechooser_response_cb): Likewise. + + * src/bookmarks/ephy-bookmarks-editor.c + (import_from_file_response_cb): Likewise. + + * src/prefs-dialog.c (download_path_response_cb): Likewise. + + * src/window-commands.c (open_response_cb): Likewise. + + * embed/mozilla/ContentHandler.cpp (PromptForSaveToFile): + Likewise. + + * embed/mozilla/EphyHeaderSniffer.cpp (filechooser_response_cb): + Likewise. + + * embed/mozilla/FilePicker.cpp (Init): Likewise. + (Show): Likewise. + +2004-03-29 Christian Persch + + * src/epiphany.in: + + Test with -d, fixes bug #138088. + +2004-03-29 Christian Persch + + * data/ui/epiphany-ui.xml: + + Add "Save Link As..." to Image/Link popup. Fixes bug #138207. + +2004-03-29 Christian Persch + + * embed/mozilla/EventContext.cpp: + + Don't assume every anchor has a href attribute. Fixes bug #138200. + +2004-03-29 Christian Persch + + * src/bookmarks/ephy-bookmarks-editor.c: + (cmd_open_bookmarks_in_tabs): + + Fix opening in new tabs when there is no existing window. + Fixes bug #138343. + +2004-03-28 Xan Lopez + + * embed/mozilla/MozRegisterComponents.cpp: + + Tiny cleanup. + +2004-03-27 Adam Hooper + + * doc/reference/Makefile.am: + * doc/reference/epiphany-docs.sgml: + * doc/reference/epiphany-sections.txt: + * doc/reference/epiphany.types: + * doc/reference/tmpl/ephy-embed-persist.sgml: + * embed/ephy-embed-persist.c: (ephy_embed_persist_get_type), + (ephy_embed_persist_class_init): + * embed/ephy-embed-persist.h: + + Document EphyEmbedPersist. Also, make it an abstract class. Change + the return type of ephy_embed_persist_get_type() to long. + +2004-03-27 Piers Cornwell + + * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_import): + + Use verb for action button and various minor tidy ups. + +2004-03-27 Christian Persch + + * src/ephy-window.c: (show_embed_popup): + + Log context of event in debug mode. + +2004-03-27 Christian Persch + + * src/ephy-location-action.c: (location_url_activate_cb), + (disconnect_proxy), (ephy_location_action_set_address): + + Correctly disconnect the handler not from the proxy but from the entry + itself. Rationalise away one strdup. + +2004-03-27 Christian Persch + + * lib/ephy-stock-icons.c: (ephy_stock_icons_init): + + Register our stock icons. + + * embed/mozilla/ContentHandler.cpp: + + Use stock icon for "Download". + +2004-03-26 Adam Hooper + + * doc/reference/epiphany-docs.sgml: + * doc/reference/epiphany-sections.txt: + * doc/reference/tmpl/ephy-embed-single.sgml: + * doc/reference/tmpl/epiphany-unused.sgml: + * embed/ephy-embed-single.c: (ephy_embed_single_iface_init), + (ephy_embed_single_load_proxy_autoconf), + (ephy_embed_single_get_font_list): + * embed/ephy-embed-single.h: + + Documented EphyEmbedSingle. Made argument names consistent across the + c and header files. + + * embed/ephy-embed.c: + + Fix gtk-doc warnings + + * doc/reference/tmpl/ephy-tab.sgml: + + All the properties showed up when chpe fixed gtk-doc-ness. + +2004-03-26 Piers Cornwell + + * src/ephy-window.c: (confirm_close_with_modified_forms): + + Fix duplicate accesskey, use correct case for button + text and make message selectable. + +2004-03-26 Marco Pesenti Gritti + + * embed/mozilla/Makefile.am: + + Add base dir to mozilla includes since the + embed SDK dir structure has been flattened in cvs + +2004-03-25 Christian Persch + + * embed/mozilla/ContentHandler.cpp: (MIMEConfirmAction): + + Use stock icon for open. Fixes bug #135765. + +2004-03-25 Christian Persch + + * embed/ephy-embed.c: (ephy_embed_base_init): + + Fix arg type of dom_* signals to match the closure. + +2004-03-25 Christian Persch + + * doc/reference/epiphany.types: + + Add ephy_tab_get_type(), fixes EphyTab documentation to include + object properties. + +2004-03-25 Adam Hooper + + * embed/ephy-embed.c: + + Fixed three gtk-doc comments. + +2004-03-25 Adam Hooper + + * doc/reference/Makefile.am: + * doc/reference/epiphany-docs.sgml: + * doc/reference/epiphany-sections.txt: + * doc/reference/epiphany.types: + * doc/reference/tmpl/ephy-embed.sgml + * doc/reference/tmpl/ephy-tab.sgml: + * doc/reference/tmpl/epiphany-unused.sgml: + * embed/ephy-embed.c: (ephy_embed_base_init), + (ephy_embed_set_zoom), (ephy_embed_get_zoom), + (ephy_embed_find_set_properties): + * embed/ephy-embed.h: + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/mozilla-embed.cpp: + * src/ephy-nautilus-view.c: (gnv_zoomable_set_zoom_level_cb), + (gnv_zoomable_zoom_in_cb), (gnv_zoomable_zoom_out_cb), + (gnv_zoomable_zoom_to_default_cb): + * src/ephy-tab.c: (ephy_tab_address_cb), + (ephy_tab_zoom_changed_cb): + * src/ephy-window.c: (ephy_window_set_zoom): + + Documented EphyEmbed. + + s/zoom_[sg]et/[sg]et_zoom/g. + + Removed the ge_popup_blocked signal, which can be done entirely from + an extension now. + + s/match_word/wrap_around/ and s/char */const char */ in + ephy_embed_find_set_properties. + +2004-03-23 Christian Persch + + * src/ephy-tab.c: + * src/ephy-window.c: + + Tiny doc fixes. + +2004-03-23 Christian Persch + + * src/ephy-tab.c: (ephy_tab_set_property), (ephy_tab_get_property), + (ephy_tab_get_window), (ephy_tab_action_activate_cb), + (ephy_tab_class_init), (ephy_tab_destroy_brsr_cb), + (ephy_tab_size_to_cb), (ephy_tab_dom_mouse_click_cb), + (ephy_tab_init): + * src/ephy-tab.h: + * src/ephy-window.c: (tab_context_menu_cb), + (ephy_window_set_active_tab): + * src/ephy-window.h: + + Get rid of ephy_tab_[get|set]_window(). + +2004-03-23 Christian Persch + + * src/ephy-tab.c: (ephy_tab_visibility_cb): + + Fix the build, bad noda :P + +2004-03-23 Christian Persch + + * src/ephy-go-action.c: (connect_proxy), (disconnect_proxy), + (ephy_go_action_class_init): + + Make the "Go" button actually work. Thanks to aes for alerting us to + this problem. + +2004-03-23 Adam Hooper + + * doc/reference/Makefile.am: + * doc/reference/epiphany-docs.sgml: + * doc/reference/epiphany-sections.txt: + * doc/reference/tmpl/ephy-tab.sgml: + * src/ephy-tab.c: (ephy_tab_get_size), (ephy_tab_visibility_cb): + * src/ephy-tab.h: + + Added EphyTab API documentation. + + Also removed ephy_tab_set_visibility + and moved its functionality into ephy_tab_visibility_cb (), since I + doubt it's got any practical use outside of there. (Though admittedly, + I don't know whether "visibility" has any practical use anywhere.) + + Lastly, let ephy_tab_get_size () be called with NULL width or height, + like gtk_window_get_size (). + +2004-03-23 Adam Hooper + + * doc/reference/epiphany-docs.sgml: + * doc/reference/epiphany-sections.txt: + * doc/reference/tmpl/epiphany-unused.sgml: + + Rearranged so that a) the stuff I haven't gone over is clearly marked, + and b) the docs build for people who aren't chpe :). + +2004-03-23 Adam Hooper + + * data/.cvsignore: + + Add epiphany-1.4.pc + + * doc/plan.xml: + + Add a comment about EphyPermissionManager's incorrect timing + + * doc/reference-howto.txt: + + s/TRUE/%TRUE, like gtk does it. + + * doc/reference/Makefile.am: + * doc/reference/tmpl/ephy-permission-manager.sgml: + * doc/reference/tmpl/ephy-window.sgml: + * embed/ephy-permission-manager.c: + * embed/ephy-permission-manager.h: + * src/ephy-window.c: (ephy_window_activate_location): + * src/ephy-window.h: + + API documentation. + Also, put a newline in ephy_window_activate_location's definition + +2004-03-22 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import): + + the xbel mime type is now application/x-xbel + +2004-03-21 Christian Persch + + * src/window-commands.c: (window_cmd_help_about): + + Forgot to s/logo/icon/g. + +2004-03-21 Christian Persch + + * data/glade/prefs-dialog.glade: + + Fix "Add" button width in the prefs dialogue for some themes. + Fixes bug #137811. + +2004-03-21 Christian Persch + + * src/window-commands.c: (window_cmd_help_about): + + Set window icon. Fixes bug #137806. + +2004-03-21 Christian Persch + + * embed/mozilla/EphyContentPolicy.h: + * embed/mozilla/MozRegisterComponents.cpp: + + Don't override nsWebBrowserContentPolicy contract ID, just register our own + content policy with the category manager. + +2004-03-21 Christian Persch + + * configure.in: + * data/Makefile.am: + R data/epiphany-1.2.pc.in: + A data/epiphany-1.4.pc.in: + * src/Makefile.am: + + Make epiphany-extensions for epiphany 1.3 parallel-installable with those + for epiphany 1.2. + +2004-03-20 Guntupalli Karunakar + + * configure.in: Added "pa" (Punjabi) to ALL_LINGUAS. + +2004-03-19 Christian Persch + + * src/bookmarks/ephy-bookmark-properties.c: (set_window_icon): + + Don't try to unref NULL icon. Fixes bug #137715. + +2004-03-16 Marco Pesenti Gritti + + * embed/ephy-embed.c: (ephy_embed_chrome_get_type): + * embed/ephy-embed.h: + * embed/mozilla/Makefile.am: + * embed/mozilla/mozilla-embed.cpp: + + Cleanups chromes code and register a type for the enum. + + * src/ephy-nautilus-view.c: (gnv_embed_new_window_cb): + + Adapt to the api changes + + * src/ephy-tab.c: (ephy_tab_new_window_cb): + + Move js chrome lockdown pref check here. + + * src/ephy-window.c: (get_chromes_visibility), + (sync_chromes_visibility), (ephy_window_fullscreen), + (ephy_window_unfullscreen), (update_chromes_actions), + (update_actions_sensitivity), (show_embed_popup), + (get_default_chrome), (ephy_window_set_property), + (ephy_window_class_init), (actions_notifier), + (navigation_notifier), (ephy_window_init), (ephy_window_finalize), + (ephy_window_new_with_chrome), (ephy_window_set_print_preview), + (ephy_window_show), (sync_prefs_with_chrome), + (sync_chrome_with_view_toggle), (ephy_window_view_statusbar_cb), + (ephy_window_view_toolbar_cb), (ephy_window_view_bookmarksbar_cb): + + Rework chrome handling so that it's not applied to all windows. + Changes are now saved on the fly like for window size. + + * src/ephy-window.h: + + Use a construct property instead of a _set for chrome. + + * src/window-commands.c: + * src/window-commands.h: + + Move chromes actions to EphyWindow so we dont need to expose + chrome handling. + +2004-03-18 Xan Lopez + + * lib/widgets/ephy-node-view.c: + (ephy_node_view_select_node_by_key): + + Make select-by-key support unsorted lists. Fuzzy matching is gone + though. Oh well ... :) (bug #137054) + +2004-03-18 Piers Cornwell + + * src/pdm-dialog.c: (show_cookies_properties): + + Make secure description better (Bug #136443). + + * src/window-commands.c: (window_cmd_help_about): + + Add my email address. + + * embed/mozilla/GtkNSSDialogs.cpp: + + Include nsReadableUtils.h. + +2004-03-18 Christian Persch + + * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_import): + * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import): + * src/bookmarks/ephy-bookmarks-import.h: + + Add firefox option in bookmarks import dialogue. + +2004-03-17 Piers Cornwell + + * help/C/epiphany.xml: Fix notes and tips to validate. + +2004-03-15 Marco Pesenti Gritti + + * NEWS + * configure.in: + + Update for 1.2.0. + + * embed/mozilla/mozilla-download.cpp: + + Register the private structure. + +2004-03-14 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (drag_data_received_cb), + (toolbar_drag_motion_cb), (egg_editable_toolbar_init): + + Deal with the case where data_received signal is emitted + asyncrounously. + +2004-03-13 Alexander Shopov + + * configure.in: Added bg to ALL_LINGUAS. + +2004-03-09 Åsmund Skjæveland + + * configure.in (HAVE_MOZILLA_PSM): Added nn to ALL_LINGUAS. + * po/nn.po: Started Norwegian Nynorsk translation. + +2004-03-09 Christian Persch + + * lib/egg/egg-toolbar-editor.c: (editor_drag_data_received_cb): + + Check if the dragged item is a separator. Fixes crash when it _is_ + a separator. + + * lib/egg/egg-toolbars-model.c: + (egg_toolbars_model_remove_toolbar): + + Fix logic check for removable toolbar, & instead of &&. + + * src/ephy-location-action.c: (create_menu_proxy_cb), + (connect_proxy), (ephy_location_action_activate): + + Don't make a proxy menu item for the location entry. Fixes crash + when trying to activate its proxy menu item. + +2004-03-10 Christian Persch + + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/FilePicker.cpp: + * embed/mozilla/GtkNSSDialogs.cpp: + * embed/mozilla/mozilla-embed-persist.cpp: + + Use CopyUTF8toUTF16 where appropriate. + +2004-03-09 Christian Persch + + * lib/egg/egg-toolbar-editor.c: (editor_drag_data_received_cb): + + Check if the dragged item is a separator. Fixes a crash if it _is_ one. + + * src/ephy-location-action.c: (create_menu_proxy_cb), + (connect_proxy), (ephy_location_action_activate): + + Don't make the location entry have a proxy menu item. Fixes a crash when + trying to activate the proxy menu item. + +2004-03-08 Christian Persch + + * lib/egg/egg-toolbars-model.c: + (egg_toolbars_model_remove_toolbar): + + Test flags with & not &&. (Thanks to Crispin for spotting this.) + +2004-03-08 Christian Persch + + * configure.in: + + EPIPHANY_MAJOR=1.3 + +2004-03-08 Christian Persch + + * embed/downloader-view.h: + * embed/ephy-embed-factory.c: + * embed/ephy-embed-factory.h: + * embed/mozilla/EphyAboutRedirector.cpp: + * embed/mozilla/EphyAboutRedirector.h: + * embed/mozilla/EphyHeaderSniffer.h: + * embed/mozilla/ExternalProtocolHandlers.h: + * embed/mozilla/mozilla-notifiers.h: + * lib/eel-gconf-extensions.c: + * lib/eel-gconf-extensions.h: + * lib/ephy-bonobo-extensions.c: + * lib/ephy-bonobo-extensions.h: + * lib/ephy-dnd.c: + * lib/ephy-state.c: + * lib/ephy-string.c: + * lib/ephy-zoom.c: + * lib/widgets/ephy-arrow-toolbutton.h: + * lib/widgets/ephy-cell-renderer-progress.c: + * lib/widgets/ephy-cell-renderer-progress.h: + * lib/widgets/ephy-ellipsizing-label.c: + * lib/widgets/ephy-ellipsizing-label.h: + * lib/widgets/ephy-spinner.c: + * lib/widgets/ephy-zoom-action.h: + * src/bookmarks/ephy-bookmark-action.h: + * src/bookmarks/ephy-bookmark-properties.c: + * src/bookmarks/ephy-bookmarks-export.h: + * src/bookmarks/ephy-bookmarks-import.h: + * src/bookmarks/ephy-bookmarks-menu.h: + * src/bookmarks/ephy-bookmarks.h: + * src/bookmarks/ephy-new-bookmark.c: + * src/bookmarks/ephy-topic-action.h: + * src/ephy-toolbars-model.h: + * src/popup-commands.h: + * src/ppview-toolbar.h: + * src/prefs-dialog.h: + * src/toolbar.h: + + CVS version markers. + +2004-03-08 Christian Persch + + * embed/downloader-view.c: + * embed/ephy-download.c: + * embed/ephy-embed-dialog.c: + * embed/ephy-embed-event.c: + * embed/ephy-embed-factory.c: + * embed/find-dialog.c: + * embed/print-dialog.c: + * lib/ephy-bonobo-extensions.c: + * lib/ephy-debug.c: + * lib/ephy-dnd.c: + * lib/ephy-glade.c: + * lib/ephy-node-db.c: + * lib/ephy-node-filter.c: + * lib/ephy-state.c: + * lib/ephy-stock-icons.c: + * lib/ephy-zoom.c: + * lib/widgets/ephy-arrow-toolbutton.c: + * lib/widgets/ephy-cell-renderer-progress.c: + * lib/widgets/ephy-ellipsizing-label.c: + * lib/widgets/ephy-location-entry.c: + * lib/widgets/ephy-node-view.c: + * lib/widgets/ephy-search-entry.c: + * lib/widgets/ephy-tree-model-node.c: + * lib/widgets/ephy-tree-model-sort.c: + * src/bookmarks/ephy-bookmark-properties.c: + * src/bookmarks/ephy-bookmarks-export.c: + * src/bookmarks/ephy-new-bookmark.c: + * src/bookmarks/ephy-topics-selector.c: + * src/ephy-automation.c: + * src/ephy-completion-model.c: + * src/ephy-extension.c: + * src/ephy-favicon-action.c: + * src/ephy-history-window.c: + * src/ephy-location-action.c: + * src/ephy-navigation-action.c: + * src/ephy-toolbars-model.c: + * src/ppview-toolbar.c: + + Include "config.h" everywhere, and s//"config.h". Guard + with #if HAVE_CONFIG_H. + +2004-03-08 Christian Persch + + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/EventContext.cpp: + * embed/mozilla/FilePicker.cpp: + * embed/mozilla/GlobalHistory.cpp: + * embed/mozilla/GtkNSSClientAuthDialogs.cpp: + * embed/mozilla/GtkNSSDialogs.cpp: + * embed/mozilla/MozDownload.cpp: + * embed/mozilla/MozillaPrivate.cpp: + * embed/mozilla/mozilla-embed-persist.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + * embed/mozilla/mozilla-embed.cpp: + + s/UCS2/UTF16/g now that we can depend on mozilla >= 1.6. + +2004-03-08 Christian Persch + + * embed/ephy-encodings.c: + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/EphyHeaderSniffer.h: + * embed/mozilla/EphySingle.cpp: + * embed/mozilla/EventContext.cpp: + * embed/mozilla/EventContext.h: + * embed/mozilla/ExternalProtocolHandlers.cpp: + R embed/mozilla/ExternalProtocolService.cpp: + R embed/mozilla/ExternalProtocolService.h: + * embed/mozilla/GlobalHistory.cpp: + * 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.h: + * embed/mozilla/MozRegisterComponents.cpp: + * embed/mozilla/MozRegisterComponents.h: + * embed/mozilla/PrintingPromptService.h: + * embed/mozilla/mozilla-embed-event.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + * lib/ephy-langs.c: + * src/ephy-window.c: (show_embed_popup): + + Kill support for mozilla < 1.6. + +2004-03-08 Marco Pesenti Gritti + + * lib/widgets/ephy-cell-renderer-progress.c: + (ephy_cell_renderer_progress_set_property): + * lib/widgets/ephy-zoom-action.c: (ephy_zoom_action_set_property): + * lib/widgets/ephy-zoom-control.c: + (ephy_zoom_control_set_property): + * src/bookmarks/ephy-bookmark-action.c: + (ephy_bookmark_action_set_property): + * src/ephy-favicon-action.c: (ephy_favicon_action_set_property): + * src/ephy-location-action.c: (ephy_location_action_set_property): + + Remove unnecessary g_object_notify. RTFM chpe :P + +2004-03-08 Christian Persch + + * configure.in: + + Version 1.3.0. + Kill support for mozilla < 1.6. + +2004-03-07 Marco Pesenti Gritti + + * NEWS: + * configure.in: + * help/Makefile.am: + + Remove nl docs (incomplete). Ready for 1.1.11 + +2004-03-07 Christian Persch + + * NEWS: + + Updated for 1.1.11. + +2004-03-06 Christian Persch + + * src/bookmarks/ephy-bookmarks-import.c: (xbel_parse_bookmark), + (xbel_parse_folder), (xbel_parse_xbel), + (ephy_bookmarks_import_xbel): + + Really always check the return value of xmlTextReaderRead(), don't advance + if it's != 1. Fixes bug #136151. + +2004-03-06 Christian Persch + + * src/ephy-notebook.c: (notebook_drag_data_received_cb): + + Fix crash when dragging a link to a tab label; I forgot to change + this making the recent EphyTab/EphyEmbed changes. + +2004-03-06 Christian Persch + + * embed/mozilla/mozilla-embed.cpp: + + Also pop up the context menu with the menu key. + +2004-03-06 Christian Persch + + * src/ephy-main.c: (main): + + Persist changed accels with gnome_accelerator_sync(). + +2004-03-05 Christian Persch + + * configure.in: + + Increase MOZILLA_SNAPSHOT for 1.7b, and depend on gtk+ >= 2.3.5. + + * embed/mozilla/GlobalHistory.cpp: + + Adapt to changed mozilla API. + +2004-03-05 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + + Don't return an error when a DOM document isn't a HTML document, it's ok + not to be one (happens for XUL docs, like about:config). + +2004-03-05 Christian Persch + + * lib/ephy-file-helpers.c: (ephy_file_downloads_dir): + + Don't assume Desktop directory location, check the gconf key if it's + $HOME/Desktop or $HOME. Fixes bug #134951. + +2004-03-05 Christian Persch + + * embed/mozilla/EphyHeaderSniffer.cpp: + + Replace filename validity check, it was making the filename invalid + UTF-16. Simply convert to UTF-8 beforehand and check for "/" chars. + +2004-03-05 Christian Persch + + * src/ephy-tab.c: (ephy_tab_address_cb), (ephy_tab_title_cb), + (ensure_page_info), (ephy_tab_net_state_cb), + (clipboard_text_received_cb), (ephy_tab_dom_mouse_click_cb), + (ephy_tab_update_navigation_flags), (ephy_tab_set_title): + + Don't use ephy_tab_get_embed(), instead use the pointer provided when + we connected the callbacks. Hopefully fixes bug #136122. + +2004-03-04 Christian Persch + + * src/window-commands.c: (window_cmd_help_about): + + Don't set the 5-star icon as window icon for the about dialogue. + Fixes bug #135010. + +2004-03-03 Christian Persch + + * embed/mozilla/MozDownload.cpp: + + Change wait interval between updates to 0.2 s. + +2004-03-03 Christian Persch + + * lib/widgets/ephy-node-view.c: (uri_list_parse), + (drag_data_received_cb): + + Copy and modify gnome_vfs_uri_list_parse() so that we get a list + of string uris instead of GnomeVFSURIs. Change signature of + ::node-dropped accordingly. Fixes bug #120231. + + * src/bookmarks/ephy-bookmarks-editor.c: (node_dropped_cb): + + Adapt to the changed ::node-dropped signal signature. + +2004-03-03 Christian Persch + + * 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. + +2004-03-03 Christian Persch + + * src/bookmarks/ephy-bookmark-action.c: (favicon_cache_changed_cb), + (ephy_bookmark_action_sync_icon), (ephy_bookmark_action_init): + + If the favicon isn't ready when we need it, connect to the favicon + cache's ::changed signal to show it when we have it. Fixes bug #135855. + +2004-03-02 Marco Pesenti Gritti + + * src/ephy-tab.c: (ephy_tab_destroy_brsr_cb): + + Do not show the unsubmitted dialog for js close + +2004-03-02 Christian Persch + + * lib/ephy-file-chooser.c: (ephy_file_chooser_init): + + Don't remember the size of the filechoose dialogue, because it doesn't + play nicely with the new save mode when toggling the expander. + Fixes bug #135947. + +2004-03-02 Marco Pesenti Gritti + + * src/ephy-session.c: (ephy_session_init), (offer_to_resume), + (ephy_session_autoresume): + + Never show two resume dialogs, just re-present the old one. + +2004-03-01 Christian Persch + + * src/bookmarks/ephy-bookmarks.c: (backup_file), + (ephy_bookmarks_init): + + Don't try to backup non-existing files :) + Also, when neither ephy-bookmarks.xml nor bookmarks.rdf exist, + assume we have a new profile and don't warn about missing bookmarks. + +2004-03-01 Christian Persch + + * src/bookmarks/ephy-bookmark-action.c: (smart_child_added_cb), + (smart_child_removed_cb), (ephy_bookmark_action_init): + + Correctly sync the smarturl property of EphyBookmarksAction when + it changes. Fixes incorrect show/hide of the entry on the bookmarks + toolbar. + +2004-03-01 Christian Persch + + * src/bookmarks/ephy-bookmarks.c: (update_has_smart_address): + + When changing a bookmark address and it was a smart bookmark but + now is not anymore, remove the bookmark from the smart_bmks node + instead of adding it :) + +2004-03-01 Christian Persch + + * src/ephy-toolbars-model.c: (get_toolbar_pos), + (ephy_toolbars_model_set_bookmarks): + + Ensure we always have a BookmarksBar toolbar in the model. + Fixes bug #135701. + +2004-03-01 Marco Pesenti Gritti + + * lib/egg/eggstatusicon.c: (egg_status_icon_init), + (egg_status_icon_button_press): + + The icon should be activated by double click + +2004-03-01 Christian Persch + + * src/ephy-statusbar.c: + + Add API docs. + +2004-03-01 Christian Persch + + * src/bookmarks/ephy-bookmarks.c: (backup_file), + (ephy_bookmarks_init): + + If reading the bookmarks file, or re-importing the bookmarks from the + rdf file fails, back up those files so that the user can afterwards + try to manually recover his bookmarks. Fixes bug #128308. + +2004-03-01 Christian Persch + + * src/bookmarks/ephy-bookmarks-import.c: (xbel_parse_folder), + (xbel_parse_xbel), (ephy_bookmarks_import_xbel): + + Fix XBEL importer not to tag all bookmarks with a "Bookmarks" category. + +2004-03-01 Christian Persch + + * src/ephy-statusbar.c: (create_statusbar_security_icon), + (ephy_statusbar_add_widget): + * src/ephy-statusbar.h: + + Export ephy_statusbar_add_widget() for use by extensions. + +2003-03-01 Christian Persch + + * lib/ephy-node-db.c: (ephy_node_db_load_from_file): + + Guard against xml reading error, check for NULL subtree before + trying to parse it. + +2004-03-01 Marco Pesenti Gritti + + * 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) + +2004-02-29 Marco Pesenti Gritti + + * embed/mozilla/ContentHandler.cpp: + + Correct the label of the action button (Open) + +2004-02-29 Christian Persch + + * embed/ephy-history.c: (remove_obsolete_pages): + + Iterate backwards over the children when removing a host. + +2004-02-29 Christian Persch + + * embed/ephy-favicon-cache.c: (ephy_favicon_cache_class_init), + (kill_download), (ephy_favicon_cache_finalize), + (favicon_name_build), (favicon_download_completed_cb), + (favicon_download_cancelled_cb), (ephy_favicon_cache_download), + (ephy_favicon_cache_get): + * embed/ephy-favicon-cache.h: + + Remove cancelled downloads from the downloads hash; and remove + partially downloaded favicons. + +2004-02-29 Christian Persch + + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/FilePicker.cpp: + * embed/mozilla/GtkNSSClientAuthDialogs.cpp: + * embed/mozilla/GtkNSSKeyPairDialogs.cpp: + * embed/mozilla/PrintingPromptService.cpp: + + Add debug output in ctors and dtors. + +2004-02-29 Christian Persch + + * src/bookmarks/ephy-bookmarks-menu.c: (ephy_bookmarks_menu_clean), + (ephy_bookmarks_menu_rebuild): + + Separately profile bookmarks menu clean and rebuild. + +2004-02-29 Christian Persch + + * embed/ephy-embed-persist.c: (ephy_embed_persist_class_init): + * embed/ephy-embed-persist.h: + + Add "cancelled" signal to EphyEmbedPersist. + + * embed/mozilla/mozilla-embed-persist.cpp: + + Emit "cancelled" signal when the download is cancelled. + +2004-02-29 Christian Persch + + * embed/mozilla/mozilla-embed-event.cpp: (mozilla_embed_event_init), + (mozilla_embed_event_finalize), (mozilla_embed_event_set_property): + + Add debug output. + +2004-02-29 Christian Persch + + * embed/mozilla/EphyHeaderSniffer.cpp: (PerformSave): + + Decode RFC 2231 and RFC 2047 encoded filenames in content-disposition + headers. Ported from mozilla Camino, see + http://bugzilla.mozilla.org/show_bug.cgi?id=233798 . + +2004-02-29 Christian Persch + + * embed/mozilla/MozDownload.cpp: (MozDownload), (~MozDownload): + + Add debug output. + +2004-02-29 Marco Pesenti Gritti + + * embed/mozilla/MozDownload.cpp: + + Fix max size logic, thanks to chpe. + +2004-02-29 Marco Pesenti Gritti + + * src/ephy-session.c: (impl_attach_window), + (ephy_session_add_window): + + Fix order of the windows, they was reversed before. + +2004-02-28 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarks.c: (topics_removed_cb): + + fix typo that was causing categorized bookmarks to + go in the uncategorized topic (Bug #135702) + +2004-02-28 Christian Persch + + * src/bookmarks/ephy-bookmarks-import.c: (xbel_parse_folder), + (ephy_bookmarks_import_xbel): + + If a folder has no name, don't tag its bookmarks with "Untitled" + keyword, just skip it. + +2004-02-28 Marco Pesenti Gritti + + * embed/mozilla/ContentHandler.cpp: + + Use getInterface to get the dom window from the + docshell, not queryInterface. (Bug #121160) + + * embed/mozilla/MozillaPrivate.cpp: + + Do not fallback to the active window if + the parent cannot be found. It just hides problems + and cause more annoying behaviors (like dialogs + parented on the wrong window). + +2004-02-28 Marco Pesenti Gritti + + * HACKING: + + Add a note about changelog entry. + + * TODO: + + Remove old stuff + +2004-02-28 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: + (egg_editable_toolbar_get_edit_mode): + * lib/egg/egg-editable-toolbar.h: + * lib/widgets/ephy-location-entry.c: (toolbar_is_editable), + (entry_drag_motion_cb), (entry_drag_drop_cb), + (ephy_location_entry_construct_contents): + + Sucky but not intrusive hack to make dnd on the address + entry work when editing toolbar. A better solution + will be found when the toolbar editor will get in gtk. + Based on a patch from Søren Sandmann, bug 132467. + +2004-02-28 Xan Lopez + + * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import): + + Add missing check for Firebird bookmarks, patch by André Dahlqvist. + +2004-02-27 Marco Pesenti Gritti + + * 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. + +2004-02-27 Christian Persch + + * configure.in: + + Depend on gk+ >= 2.3.4, but since the filechooser API changed, you'll really + need the latest from cvs. + +2004-02-27 Christian Persch + + * embed/mozilla/FilePicker.cpp: + * lib/ephy-file-chooser.c: (ephy_file_chooser_init), + (ephy_file_chooser_new): + * src/prefs-dialog.c: (prefs_download_path_button_clicked_cb): + + Fix for gtk+ filechooser API change. + +2004-02-27 Christian Persch + + * src/bookmarks/ephy-bookmarks-import.c: (ns_parse_bookmark_item): + + Fix potential crash. + + (ephy_bookmarks_import_mozilla): + + Fix mem leak. + +2004-02-27 Christian Persch + + * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import_mozilla): + + Replace entities also in folder names, fixes bug #135440. + +2004-02-26 Marco Pesenti Gritti + + * src/ephy-tab.c: (ephy_tab_address_cb), (ensure_page_info): + + Do not show about:blank to the user, an empty address bar + will do better. + When the address bar is empty (no page or blank page is + loaded) set the address before loading succeeded. + +2004-02-25 Christian Persch + + * src/window-commands.c: (open_response_cb): + + Check for NULL before converting filename to UTF-8. + +2004-02-25 Marco Pesenti Gritti + + * 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. + +2004-02-24 Christian Persch + + * src/ephy-tab.c: (let_me_resize_hack), (ephy_tab_size_to_cb): + + Change this back to simply do g_idle_add(), accidentally forgot to + revert my change. + +2004-02-24 Xan Lopez + + * embed/mozilla/EphyHeaderSniffer.cpp: + + Unescape filenames whenever possible. + + * src/popup-commands.c: (save_property_url): + + Nitpick. + +2004-02-24 Christian Persch + + * src/ephy-nautilus-view.c: (gnv_embed_new_window_cb): + * src/ephy-notebook.c: (ephy_notebook_class_init), + (tab_label_size_request_cb), (ephy_notebook_move_tab), (move_tab), + (motion_notify_cb), (move_tab_to_another_notebook), + (button_release_cb), (ephy_notebook_switch_page_cb), + (ephy_notebook_init), (close_button_clicked_cb), (build_tab_label), + (ephy_notebook_insert_tab), (smart_tab_switching_on_closure), + (ephy_notebook_remove_tab): + * src/ephy-notebook.h: + * src/ephy-session.c: (tab_added_cb), (tab_removed_cb): + * src/ephy-shell.c: (ephy_shell_new_tab): + * src/ephy-tab.c: (ephy_tab_get_type), (ephy_tab_size_allocate), + (ephy_tab_parent_set), (ephy_tab_class_init), (ephy_tab_finalize), + (ephy_tab_new), (ephy_tab_get_embed), (ephy_tab_for_embed), + (ephy_tab_new_window_cb), (let_me_resize_hack), + (ephy_tab_visibility_cb), (ephy_tab_size_to_cb), + (ephy_tab_dom_mouse_click_cb), (ephy_tab_init), + (ephy_tab_update_navigation_flags), (ephy_tab_set_title): + * src/ephy-tab.h: + * src/ephy-tabs-menu.c: (tab_added_cb), (tab_removed_cb), + (tabs_reordered_cb), (ephy_tabs_menu_set_window), + (ephy_tabs_menu_update): + * src/ephy-window.c: (tab_added_cb), (tab_removed_cb), + (tab_detached_cb), (tabs_reordered_cb), (tab_delete_cb), + (setup_notebook), (ephy_window_add_tab), (ephy_window_jump_to_tab), + (real_get_active_tab), (ephy_window_remove_tab), + (ephy_window_get_active_tab), (ephy_window_get_active_embed), + (ephy_window_get_tabs): + * src/ephy-window.h: + * src/window-commands.c: (window_cmd_tabs_move_left), + (window_cmd_tabs_move_right), (window_cmd_tabs_detach): + + Make EphyTab inherit from GtkBin, and contain the EphyEmbed as its child. + +2004-02-24 Marco Pesenti Gritti + + * src/ephy-tab.c: (address_has_web_scheme): + + Do not use gnome vfs to check the scheme because + it can handle only supported methods. + +2004-02-21 Christian Persch + + * doc/reference/Makefile.am: + + Remove nsUnicharUtils.h from docs makefile. + +2004-02-21 Christian Persch + + * lib/ephy-file-helpers.h: + * lib/ephy-glade.c: + + Removed an unused #include. + +2004-02-21 Christian Persch + + * lib/ephy-dialog.c: (connect_signals): + + Always connect signals, not just for PT_AUTOAPPLY props. + +2004-02-21 Christian Persch + + * doc/reference/tmpl/EphyContentPolicy.sgml: + * doc/reference/tmpl/EphySingle.sgml: + * doc/reference/tmpl/ephy-cookie-manager.sgml: + * doc/reference/tmpl/ephy-embed-factory.sgml: + * doc/reference/tmpl/ephy-embed-single.sgml: + * doc/reference/tmpl/ephy-password-manager.sgml: + * doc/reference/tmpl/ephy-permission-manager.sgml: + * doc/reference/tmpl/ephy-session.sgml: + * doc/reference/tmpl/ephy-shell.sgml: + * doc/reference/tmpl/mozilla-embed-event.sgml: + + Commit changed, auto-generated templates. + +2004-02-20 Christian Persch + + * configure.in: + + Epiphany 1.1.10. + +2004-02-21 Christian Rose + + * configure.in: Added "en_CA" to ALL_LINGUAS. + +2004-02-21 Marco Pesenti Gritti + + * embed/mozilla/Makefile.am: + + Actually remove nsUnicharUtils.* + + * embed/mozilla/mozilla-embed-persist.cpp: + + Use our helper to construct tmp file name: fix + security issue. + + * src/window-commands.c: (save_temp_source): + + Cosmetic change + +2004-02-20 Christian Persch + + * embed/mozilla/EventContext.cpp: + * embed/mozilla/EphyBrowser.cpp: + R embed/mozilla/nsUnicharUtils.h: + R embed/mozilla/nsUnicharUtils.cpp: + + Adapt to changed mozilla string APIs by getting rid of + nsUnicharUtils, and using EqualsIgnoreCase instead of + Equal with nsCaseInsensitiveStringComparator(). + +2004-02-20 Marco Pesenti Gritti + + * src/ephy-completion-model.c: (is_base_address), + (init_relevance_col): + + Ensure that there are no more chars after the last /. + Cut down number of visists properly. + +2004-02-20 Christian Persch + + * lib/egg/egg-editable-toolbar.c: (popup_toolbar_context_menu_cb): + + Fix logic error, spotted by Crispin. + + * lib/egg/egg-toolbars-model.h: + + Make it clear that EggTbModelFlags is a bitfield enum. + +2004-02-20 Christian Persch + + * lib/eel-gconf-extensions.c: + + #ifdef HAVE_CONFIG_H the inclusion of config.h. + +2004-02-20 Christian Persch + + * lib/Makefile.am: + + Remove duplicate entry for ephy-gui.h. + +2004-02-20 Christian Persch + + * embed/ephy-command-manager.c: (ephy_command_manager_get_type), + (ephy_command_manager_base_init), + (ephy_command_manager_do_command), + (ephy_command_manager_can_do_command): + * embed/ephy-command-manager.h: + * embed/ephy-cookie-manager.c: (ephy_cookie_manager_get_type), + (ephy_cookie_manager_base_init), + (ephy_cookie_manager_list_cookies), + (ephy_cookie_manager_remove_cookie), (ephy_cookie_manager_clear): + * embed/ephy-cookie-manager.h: + * embed/ephy-embed-event.c: (ephy_embed_event_get_type), + (ephy_embed_event_get_event_type), (ephy_embed_event_get_context), + (ephy_embed_event_get_modifier), (ephy_embed_event_get_coords), + (ephy_embed_event_get_property), (ephy_embed_event_has_property), + (ephy_embed_event_get_dom_event): + * embed/ephy-embed-event.h: + * embed/ephy-embed-single.c: (ephy_embed_single_get_type), + (ephy_embed_single_iface_init), (ephy_embed_single_clear_cache), + (ephy_embed_single_clear_auth_cache), + (ephy_embed_single_set_offline_mode), + (ephy_embed_single_load_proxy_autoconf), + (ephy_embed_single_get_font_list): + * embed/ephy-embed-single.h: + * embed/ephy-embed.c: (ephy_embed_get_type), + (ephy_embed_base_init), (ephy_embed_load_url), + (ephy_embed_stop_load), (ephy_embed_can_go_back), + (ephy_embed_can_go_forward), (ephy_embed_can_go_up), + (ephy_embed_get_go_up_list), (ephy_embed_go_back), + (ephy_embed_go_forward), (ephy_embed_go_up), + (ephy_embed_get_title), (ephy_embed_get_location), + (ephy_embed_get_link_message), (ephy_embed_get_js_status), + (ephy_embed_reload), (ephy_embed_zoom_set), (ephy_embed_zoom_get), + (ephy_embed_shistory_n_items), (ephy_embed_shistory_get_nth), + (ephy_embed_shistory_get_pos), (ephy_embed_shistory_go_nth), + (ephy_embed_get_security_level), (ephy_embed_find_set_properties), + (ephy_embed_find_next), (ephy_embed_activate), + (ephy_embed_set_encoding), (ephy_embed_get_encoding_info), + (ephy_embed_print), (ephy_embed_print_preview_close), + (ephy_embed_print_preview_n_pages), + (ephy_embed_print_preview_navigate), + (ephy_embed_has_modified_forms): + * embed/ephy-embed.h: + * embed/ephy-password-manager.c: (ephy_password_manager_get_type), + (ephy_password_manager_add), (ephy_password_manager_remove), + (ephy_password_manager_list): + * embed/ephy-password-manager.h: + * embed/ephy-permission-manager.c: + (ephy_permission_manager_get_type), + (ephy_permission_manager_base_init), (ephy_permission_manager_add), + (ephy_permission_manager_remove), (ephy_permission_manager_clear), + (ephy_permission_manager_test), (ephy_permission_manager_list): + * embed/ephy-permission-manager.h: + * embed/mozilla/mozilla-embed-event.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + * embed/mozilla/mozilla-embed.cpp: + + s/IFace/Iface/g to match the gtk+ naming convention. + +2004-02-20 Julio M. Merino Vidal + + * configure.in: + + Remove duplicate --with-html-dir argument + + * data/epiphany.schemas.in: + + fix a syntax error + +2004-02-19 Christian Persch + + * lib/egg/egg-toolbar-editor.c: (update_editor_sheet): + + Fix off-by-one error when computing the height of the table. + +2004-02-19 Christian Persch + + * lib/egg/egg-toolbar-editor.c: (toolbar_removed_cb), + (egg_toolbar_editor_set_model), (egg_toolbar_editor_class_init), + (update_actions_list), (egg_toolbar_editor_load_actions): + * lib/egg/egg-toolbar-editor.h: + + When removing a toolbar, make its items available again in the toolbar + editor. Fixes bug #131182. + +2004-02-18 Alexander Winston + + * help/C/epiphany.xml: Fixed typos in the bookmarks explanation. + +2004-02-17 Christian Persch + + * lib/egg/egg-editable-toolbar.c: (item_added_cb), + (item_removed_cb), (egg_editable_toolbar_construct): + + Remove the toolbar height contraint when the first item is added + to it. Fixes bug #131181. + +2004-02-17 Christian Persch + + * src/ephy-extension.c: (ephy_extension_get_type), + (ephy_extension_attach_window), (ephy_extension_detach_window): + * src/ephy-extension.h: + * src/ephy-extensions-manager.c: + (ephy_extensions_manager_iface_init): + * src/ephy-session.c: (ephy_session_iface_init): + + s/EphyExtensionClass/EphyExtensionIface/g + +2004-02-17 Christian Persch + + * NEWS: + * configure.in: + + Epiphany 1.1.9. + +2004-02-16 Christian Persch + + * embed/mozilla/GlobalHistory.cpp: + + Don't use #if inside a macro. Fixe compilation with gcc 3.2.2. + +2004-02-15 Christian Persch + + * embed/mozilla/FilePicker.cpp: (::AppendFilter): + + Make it work (TM). + +2004-02-15 Christian Persch + + * embed/mozilla/FilePicker.cpp: (::Show), (::GFilePicker), + (::~GFilePicker): + + Weak ref the real dialogue, and hide the dialogue after + running it. Fixes interaction with nsIFilePicker lifecycle + when shown from javascript. + +2004-02-15 Marco Pesenti Gritti + + * NEWS: + * configure.in: + + Prepare for 1.1.8 + + * embed/downloader-view.c: (downloader_view_build_ui): + + Revert the timeout for now, I dont think it's mature + for the release. + +2004-02-14 Xan Lopez + + * data/.cvsignore: + + Quiet cvs. + +2004-02-13 Marco Pesenti Gritti + + * data/mime-types-permissions.xml: + + Several types are actually safe. + + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/ContentHandler.h: + + Change the safe/unsafe logic to not consider unkown + files unsafe, they will not be opened anyway. + Cleanups. + +2004-02-13 Christian Persch + + * doc/reference/Makefile.am: + * src/Makefile.am: + + Install the statusbar .h file. + + R src/statusbar.[ch]: + A src/ephy-statusbar.[ch]: + + s/statusbar/ephy-statusbar/ and friends. + + * src/ephy-window.c: (sync_tab_load_progress), (sync_tab_security), + (ephy_window_init): + + Change references from statusbar to ephy-statusbar. + Remove selection-received stuff, since it now lives in EphyTab. + +2004-02-12 Christian Persch + + * configure.in: + * data/Makefile.am: + R data/epiphany-1.0.pc.in: + A data/epiphany-1.2.pc.in: + + Changed .pc file version to 1.2, since we're not API-compatible with + 1.0. + +2004-02-12 Christian Persch + + * embed/downloader-view.c: (download_dialog_abort_cb): + + Safety check. + +2004-02-12 Christian Persch + + * embed/mozilla/mozilla-embed.cpp: (mozilla_embed_security_change_cb): + + Use static_cast<>, don't cast directly. + +2004-02-12 Christian Persch + + * lib/ephy-dialog.c: (set_sensitivity): + + Don't set entries insensitive, only set the non-editable when the + gconf key isn't writable. + +2004-02-12 Christian Persch + + * embed/mozilla/MozDownload.cpp: + * src/prefs-dialog.c: (get_download_button_label): + + Unify fallback downloads dir to get the home directory. + +2004-02-12 Christian Persch + + * embed/mozilla/GtkNSSDialogs.cpp: + + Don't insist on a parent for the dialogue; because there isn't one + when we try to load a favicon over https: at startup. + +2004-02-12 Christian Persch + + * 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. + +2004-02-12 Marco Pesenti Gritti + + * data/glade/prefs-dialog.glade: + + Add a missing accellerator + +2004-02-12 Christian Persch + + * lib/ephy-node-db.c: (ephy_node_db_write_to_xml_valist): + * src/bookmarks/ephy-bookmarks-export.c: + (ephy_bookmarks_export_rdf): + * src/ephy-session.c: (ephy_session_save): + + Re-enalble indentation. + +2004-02-12 Christian Persch + + * configure.in: + + Depend on libxml2 >= 2.6.6 because of bug #133298 and bug # 131548. + + * src/ephy-main.c: (main): + + Use LIBXML_TEST_VERSION to check for API compatibility. + +2004-02-12 Christian Persch + + * embed/mozilla/GlobalHistory.cpp: + + Fix compilation with mozilla 1.4. + +2004-02-12 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/GlobalHistory.cpp: + * embed/mozilla/GlobalHistory.h: + * embed/mozilla/MozRegisterComponents.cpp: + + Adapt to the ever-changing mozilla APIs. + +2004-02-12 Marco Pesenti Gritti + + * lib/widgets/ephy-location-entry.c: (keyword_match): + + Simplify and hopefully fix mem corruption + +2004-02-12 Marco Pesenti Gritti + + * embed/mozilla/ContentHandler.cpp: + + When open is explicitly requested from the dialog use + a tmp file. + +2004-02-11 Chris Lahey + + * embed/downloader-view.c: Added timeout so that dialog won't + disappear before 5 seconds is over. Made Pause/Resume button + update label properly. + +2004-02-11 Christian Persch + + * src/bookmarks/ephy-bookmarks.c: + + Increase bookmarks format version. + +2004-02-11 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_add): + + Update bookmarks keywords + +2004-02-11 Xan Lopez + + * 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. + +2004-02-11 Marco Pesenti Gritti + + * embed/downloader-view.c: (downloader_view_build_ui): + + Make columns resizable + +2004-02-11 Marco Pesenti Gritti + + * src/ephy-tab.c: (open_link_in_new_tab), + (ephy_tab_dom_mouse_click_cb): + + Do not load js urls when middle clicked. + +2004-02-11 Marco Pesenti Gritti + + * lib/widgets/ephy-location-entry.c: (completion_func): + + Cleanup + + * src/bookmarks/ephy-bookmarks.c: + + Increase format version + +2004-02-11 Marco Pesenti Gritti + + * lib/widgets/ephy-location-entry.c: (keyword_match), + (completion_func): + + Better keyword matching function. Should match only words + (not middle parts of them) and maybe be a bit faster. + +2004-02-11 Marco Pesenti Gritti + + * lib/ephy-node.c: (callback), (child_changed), + (ephy_node_set_property): + + Pass the property id to the changed signal. + + * lib/ephy-node.h: + + Cleanup. + + * embed/ephy-history.c: (hosts_changed_cb), (pages_changed_cb): + * lib/widgets/ephy-location-entry.c: (completion_func): + * lib/widgets/ephy-tree-model-node.c: (root_child_changed_cb): + * src/bookmarks/ephy-bookmark-action.c: + (bookmarks_child_changed_cb): + * src/bookmarks/ephy-bookmarks-menu.c: (topic_child_changed_cb): + * src/bookmarks/ephy-topic-action.c: (topic_child_changed_cb): + * src/ephy-completion-model.c: (root_child_changed_cb): + * src/ephy-location-action.c: (actions_child_changed_cb): + + Fixup changed signals signature. + + * src/bookmarks/ephy-bookmarks.c: (update_bookmark_keywords), + (bookmarks_changed_cb), (bookmark_is_categorized), + (topics_removed_cb), (ephy_bookmarks_set_keyword), + (ephy_bookmarks_unset_keyword): + + Cleanup keywords building, normalize and case fold it, add + the title words as keywords too. + +2004-02-11 Christian Persch + + * embed/mozilla/mozilla-embed-persist.cpp: (impl_save): + + Fix mem leaks. + +2004-02-11 Marco Pesenti Gritti + + * src/ephy-completion-model.c: (is_base_address), + (init_relevance_col): + + Better autocompletion sorting logic. + + * src/window-commands.c: (window_cmd_help_about): + + s/translator_credits/translator-credits + +2004-02-10 Marco Pesenti Gritti + + * src/ephy-completion-model.c: (init_text_col): + + Show the title of the bookmark, not the address + +2004-02-09 Christian Persch + + * src/ephy-tab.c: (clipboard_text_received_cb), + (ephy_tab_dom_mouse_click_cb): + + Fix the fix for the epiphany equivalent of bug #133633. Don't convert + the clipboard contents directly as the souurce may not offer UTF-8 text. + Instead request the contents, and gtk+ will convert it for us. + +2004-02-09 Christian Persch + + * lib/egg/egg-editable-toolbar.c: + * embed/ephy-embed-popup-control.c: + + Include config.h. + +2004-02-09 Christian Rose + + * configure.in: Added "mi" to ALL_LINGUAS. + +2004-02-08 Christian Persch + + * embed/ephy-favicon-cache.c: (ephy_favicon_cache_init): + + Remove trailing / in invocation of mkdir, since it's unneeded and not + portable. Patch by Julio M. Merino Vidal, fixes bug 133738. + +2004-02-06 Christian Persch + + * src/ephy-tab.c: (ephy_tab_dom_mouse_click_cb): + + Make middle-click paste work with urls with IDN domain names. + Fixes the epiphany equivalent of galeon bug 133633. + +2004-02-06 Christian Persch + + * embed/mozilla/EventContext.cpp: + + Excise old galeon 1, non ported, defined-out code. + +2004-02-06 Christian Persch + + * data/Makefile.am: + + Honour the --with-gconf-schema-file-dir and --disable-schemas-install + configure options. Patch by Julio M. Merino Vidal, fixes bug #133533. + +2004-02-06 Christian Persch + + * data/glade/prefs-dialog.glade: + + Now that GtkComboBox supports mnemonic activation, + set the focus target of the combos' labels. + +2004-02-05 Piers Cornwell + + * src/ephy-session.c: (offer_to_resume): + + Make warning message selectable per hig. + +2004-02-05 Christian Persch + + * src/bookmarks/ephy-bookmark-action.c: (connect_proxy): + * src/bookmarks/ephy-topic-action.c: (connect_proxy): + + No need to connect to the toolitem's create-menu-proxy signal, + gtk+ does it for us. + +2004-02-04 Christian Persch + + * src/ephy-go-action.c: (ephy_go_action_get_type), + (create_tool_item), (ephy_go_action_class_init): + + gtk+ now connects the tool item's create_menu_proxy to the + action's create_menu_item, so we don't need to do it ourselves. + Also unnecessary to do connect_proxy. + The go action is now almost empty, we should really see if + we can use a stock gtktoolbutton for it. + +2004-02-04 Christian Persch + + * lib/widgets/ephy-zoom-action.c: (ephy_zoom_action_get_type), + (zoom_to_level_cb), (connect_proxy), (proxy_menu_activate_cb), + (create_menu_item), (ephy_zoom_action_class_init): + * lib/widgets/ephy-zoom-action.h: + * lib/widgets/ephy-zoom-control.c: (ephy_zoom_control_class_init): + + Fix toolbar overflow menu creation. Don't connect zoom control signals + to a menu item. + +2004-02-04 Christian Persch + + * lib/widgets/ephy-arrow-toolbutton.c: + (ephy_arrow_toolbutton_finalize): + + Fix mem leak. + +2004-02-04 Christian Persch + + * data/glade/epiphany.glade: + * data/glade/certificate-dialogs.glade: + * data/glade/print.glade: + * data/glade/prefs-dialog.glade: + + Dialogs shouldn't show up in the window list, period. + +2004-02-04 Christian Persch + + * data/glade/pref-dialog.glade: + * data/glade/epiphany.glade: + + Don't show Find, Add Language, and Encodings dialogue in + window list. + +2004-02-04 David Bordoley + + * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_new): + + Set a default height/width for the dialog. + +2004-02-04 Biggest Flake Ever + David Bordoley + + * embed/downloader-view.c: (downloader_view_new): + * src/prefs-dialog.c: (setup_add_language_dialog): + + Use a default width/height for dialogs with + tree views that don't have a fixed requisition. + +2004-02-04 Piers Cornwell + + * src/ephy-history-window.c: (confirmation_dialog_construct): + + Use title capitalisation for title. + +2004-02-02 Maxim Dziumanenko + + * configure.in: Added "uk" in ALL_LINGUAS + +2004-02-02 Marco Pesenti Gritti + + * autogen.sh: + * omf.make: + * xmldocs.make: + + Use gnome-common to generate help makefiles + +2004-02-01 Christian Persch + + * configure.in: + + Version 1.1.7. + +2004-02-01 Christian Persch + + * src/ephy-extensions-manager.c: (ephy_extensions_manager_init): + * src/ephy-extensions-manager.h: + * src/ephy-shell.c: (ephy_shell_get_extensions_manager): + + Decouple extensions manager initialisation and extensions loading. + Fixes a crash when an extensions tried to get the session, + causing us to load extensions more than once. + +2004-02-01 Marco Pesenti Gritti + + * lib/ephy-stock-icons.h: + + typo in icon name + +2004-02-01 Christian Persch + + * embed/mozilla/ContentHandler: + + Add a space after period, fixes bug #133151. + +2004-02-01 Xan Lopez + + * embed/downloader-view.c: (status_icon_activated), + (downloader_view_build_ui): + + Activating the status icon should only show it (HIG says so). + Also set the downloader view to BROSWE mode. + +2004-01-31 Adam Hooper + + * NEWS: + * configure.in: + + Prepare for 1.1.6 + +2004-01-30 Adam Hooper + + * src/ephy-tab.c: (ephy_tab_class_init): + + Fix typo: s/PROP_LOAD_STATUS/PROP_LOAD_PROGRESS. + +2004-01-30 Christian Persch + + * embed/mozilla/ContentHandler.cpp: + + Don't try to g_free a nsCOMPtr<>, and use nsMemory::Free for the + mMimeType string. + +2004-01-29 Christian Persch + + * embed/mozilla/EphyHeaderSniffer.cpp: + + Fix mem leak. + +2004-01-29 Christian Persch + + * src/ephy-favicon-action.c: (ephy_favicon_action_set_property), + (ephy_favicon_action_get_property): + + Fix property getter of "icon" property. + +2004-01-29 Christian Persch + + * embed/mozilla/MozDownload.cpp: + + Fix mem leak. + +2004-01-29 Christian Persch + + * embed/downloader-view.c: (update_download_row): + + Fix mem leak. + +2004-01-29 Christian Persch + + * embed/mozilla/EphyHeaderSniffer.cpp: + + Fix encodign conversion of "Untitled" filename suggestion. + Fixes bug #132822. + +2004-01-28 Christian Persch + + * src/bookmarks/ephy-bookmarks-import.c: + (ephy_bookmarks_import_rdf): + + Don't crash when reading the RDF file fails. + +2004-01-28 Christian Persch + + * src/bookmarks/ephy-bookmarks-export.c: + (ephy_bookmarks_export_rdf): + + Use rdf:resource instead of rdf:about, fixes bug #131543. + +2004-01-28 Christian Persch + + * src/bookmarks/ephy-bookmarks-menu.c: + (ephy_bookmarks_menu_get_type), (sync_topic_properties), + (topic_child_changed_cb), (ephy_bookmarks_menu_init): + + Sync topic names in the menu. Fixes bug #128097. + +2004-01-28 Christian Persch + + * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_solve_smart_url), + (options_find_first_option), (smart_url_options_get): + + Fix options parsing. + +2004-01-28 David Bordoley + + * src/ephy-window.c: + Use EPHY_STOCK_DOWNLOAD for the download + link icon. + +2004-01-28 Christian Persch + + * src/Makefile.am: + + Fix linking with nautilus view enabled. + +2004-01-28 Christian Persch + + * configure.in: + * src/Makefile.am: + + Check for required libnautilus version, and conditionally enable + nautilus view. + +2004-01-27 Piers Cornwell + + * help/C/epiphany.xml: + + Update documentation. + +2004-01-27 Christian Persch + + * lib/ephy-file-helpers.c: (ephy_file_helpers_shutdown): + + Only try to rmdir() the tmp directory if we have one. + +2004-01-27 Marco Pesenti Gritti + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + + Make sure to not initialize EphyBrowser + multiple times. + +2004-01-26 Christian Persch + + * embed/ephy-download.c: (ephy_download_get_name): + + Fix mem leak. + +2004-01-26 Christian Persch + + * embed/downloader-view.c: (update_download_row): + + Fix mem leak. + +2004-01-26 Christian Persch + + * embed/downloader-view.c: (update_download_row): + + Fix mem leak. + +2004-01-26 Marco Pesenti Gritti + + * embed/mozilla/ContentHandler.cpp: + + closing dialog == cancel + +2004-01-25 Marco Pesenti Gritti + + * NEWS: + + Correct a translator name. + + * embed/mozilla/ContentHandler.cpp: + + Really cancel the download when the user told so. + + * lib/ephy-dialog.c: (setup_default_size), (ephy_dialog_run), + (ephy_dialog_init), (ephy_dialog_set_property), + (ephy_dialog_get_property), (ephy_dialog_class_init): + + Add default width/height properties. + +2004-01-25 Christian Persch + + * embed/mozilla/MozDownload.h: + + Include nsIMIMEInfo.h to fix compilation with mozilla 1.4. + +2004-01-25 Christian Persch + + * src/window-commands.c: (window_cmd_file_print_preview): + + Fix mem leak. + +2004-01-25 Christian Persch + + * src/ephy-history-window.c: (get_details_value): + + Fix mem leak. + +2004-01-25 Christian Persch + + * src/bookmarks/ephy-bookmarks-export.c: + (ephy_bookmarks_export_rdf): + + Fix mem leak. + +2004-01-25 Christian Persch + + * src/bookmarks/ephy-bookmarks-editor.c: (search_entry_search_cb), + (get_details_value): + + Fix mem leaks. + +2004-01-25 Christian Persch + + * lib/widgets/ephy-tree-model-node.c: + (ephy_tree_model_node_finalize): + + Fix mem leak. + +2004-01-25 Christian Persch + + * lib/widgets/ephy-node-view.c: (ephy_node_view_finalize): + + Fix mem leak. + +2004-01-25 Christian Persch + + * lib/ephy-node-filter.c: (ephy_node_filter_finalize), + (ephy_node_filter_new), (ephy_node_filter_add_expression): + + Fix mem leak. + +2004-01-25 Christian Persch + + * embed/ephy-history.c: (ephy_history_finalize): + + Fix mem leak. + +2004-01-25 David Bordoley + + * help/C/figures/ephy-screenshot.png: + + Update the screenshot to match the default toolbar layout. + +2004-01-25 Christian Persch + + * lib/ephy-node-db.c: (ephy_node_db_finalize): + + Fix mem leak. + +2004-01-25 Christian Persch + + * src/bookmarks/ephy-bookmarks-export.c: + (ephy_bookmarks_export_rdf): + + Fix mem leak. + +2004-01-25 Adam Hooper + + * lib/ephy-file-helpers.c: (ephy_file_tmp_dir): + + mkdtemp() modifies *template in-place. So it shouldn't be freed. + +2004-01-25 Christian Persch + + * src/ephy-tabs-menu.c: (tab_set_action_accelerator): + + Fix mem leak. + +2004-01-25 Christian Persch + + * src/ephy-session.c: (ephy_session_save): + + Fix mem leaks. + +2004-01-25 Christian Persch + + * lib/ephy-stock-icons.c: (ephy_stock_icons_init): + + Fix mem leaks. + +2004-01-25 Christian Persch + + * lib/ephy-file-helpers.c: (ephy_file_tmp_dir), + (ephy_file_tmp_filename): + + Fix mem leaks. + +2004-01-25 Christian Persch + + * lib/ephy-dialog.c: (set_value_from_pref), + (set_combo_box_from_value): + + Fix mem leaks. + +2004-01-25 Christian Persch + + * embed/mozilla/mozilla-notifiers.cpp: + + Fix mem leak. + +2004-01-25 Christian Persch + + * embed/ephy-favicon-cache.c: (remove_obsolete_icons): + + Fix mem leak. + +2004-01-25 Marco Pesenti Gritti + + * 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. + +2004-01-24 Christian Persch + + * src/window-commands.c: (window_cmd_help_about): + + Updated copyright date. + +2004-01-24 Christian Persch + + * src/ephy-tab.c: (ephy_tab_set_title): + + Double underscores, since otherwise the menu entry will + display them as accellerators. + +2004-01-24 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + + When checking forms for modifications, handle correctly + text entries with default value longer than maxlength. + Mozilla bug #232057. + +2004-01-24 David Bordoley + + * data/ui/epiphany-ui.xml: + * src/ephy-window.c: + + Add a hidden tools menu that extensions can use. + +2004-01-24 Adam Hooper + + * lib/ephy-string.c: + + Remove totally wrong comment before ephy_string_blank_chr () + +2004-01-24 Adam Hooper + + * lib/ephy-file-helpers.c: + * lib/ephy-file-helpers.h: + * src/window-commands.c: (save_temp_source): + + ephy_file_tmp_directory () now returns a const char * instead of char * + +2004-01-24 Marco Pesenti Gritti + + * configure.in: + + Prepare for 1.1.5 + + * lib/ephy-dialog.c: (setup_default_size): + + Fix a bug with dialog size persistance + +2004-01-24 Marco Pesenti Gritti + + * NEWS: + * configure.in: + + Prepare for 1.1.4 + + * embed/mozilla/ContentHandler.cpp: + + Fix Save As from download dialog + +2004-01-24 Christian Persch + + * src/prefs-dialog.c: (get_download_button_label): + + Fall back to Home directory when the pref is NULL. + +2004-01-24 Christian Persch + + * lib/ephy-file-chooser.c: (ephy_file_chooser_get_type), + (current_folder_changed_cb): + + Use our eel_gconf_set_path() function to persist the directory. + +2004-01-24 Marco Pesenti Gritti + + * 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. + +2004-01-23 Marco Pesenti Gritti + + * data/epiphany.schemas.in: + * lib/ephy-prefs.h: + * src/ephy-tab.c: (ephy_tab_dom_mouse_click_cb): + * src/popup-commands.c: (save_property_url): + + Sometimes reading gnomedesktop flames is useful: + + Do not use the same pref of 1.0 for the download dir. + Use a different key for Save Link As. + +2004-01-23 Christian Persch + + * embed/downloader-view.c: (downloader_view_build_ui): + * embed/find-dialog.c: (find_dialog_init): + * embed/mozilla/GtkNSSDialogs.cpp: + * embed/print-dialog.c: (ephy_print_dialog_new), + (ephy_print_setup_dialog_new): + * lib/ephy-dialog.c: (impl_construct), (ephy_dialog_construct): + * lib/ephy-dialog.h: + * lib/ephy-glade.c: (ephy_glade_widget_new): + * lib/ephy-glade.h: + * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_init): + * src/pdm-dialog.c: (pdm_dialog_init): + * src/prefs-dialog.c: (setup_add_language_dialog), + (prefs_dialog_init): + + Allow passing the translation domain to ephy_dialog_construct, + to make extension's dialogues translatable. Fix all callers. + +2004-01-23 Christian Persch + + * configure.in: + + We really depend on gtk+ >= 2.3.2. + +2004-01-23 Xan Lopez + + * embed/mozilla/MozDownload.cpp: + + Make Cancel safe against non active downloads. + +2004-01-23 Christian Persch + + * embed/ephy-embed.h: + * embed/mozilla/mozilla-embed.cpp: + * src/window-commands.c: (window_cmd_view_reload): + + Use both BYPASS_CACHE and BYPASS_PROXY on force-reload. + Unified the handling in mozilla-embed by introducing + EMBED_RELOAD_FORCE, and killed EMBED_RELOAD_BYPASS_[CACHE|PROXY] + since we now always use both together. + +2004-01-22 Christian Persch + + * embed/ephy-encodings.c: + + Delete UTF-7 from our list of known encodings, since no web page + should ever be in UTF-7. + +2004-01-22 Christian Persch + + * embed/mozilla/EventContext.cpp: + * src/ephy-tab.c: (address_has_web_scheme): + + data: urls can be opened in new tabs too. + +2004-01-22 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + + Work around a bug in mozilla where 0xa0 (NBSP) are converted to spaces, + so we think that the element is modified when in fact it's not. + (Thanks to Crispin). + +2004-01-22 Christopher James Lahey + + * lib/ephy-file-helpers.c, lib/ephy-file-helpers.h + (ephy_file_tmp_directory, ephy_file_delete_on_exit): New function + to get temp directory and moved ephy_shell_delete_on_exit to here. + + * lib/widgets/ephy-location-entry.c: Changed how this goes about + showing itself when hidden and activated. + + * src/ephy-shell.c, src/ephy-shell.h (ephy_shell_delete_on_exit): + Moved to ephy_file_delete_on_exit. + + * src/window-commands.c: Changed ephy_shell_delete_on_exit to + ephy_file_delete_on_exit. Used ephy_file_tmp_directory to save + source files for viewing in a directory that isn't world readable. + +2004-01-22 Marco Pesenti Gritti + + * data/epiphany-lockdown.schemas.in: + + Slightly better string for history disable. + +2004-01-22 Marco Pesenti Gritti + + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/ContentHandler.h: + + Set the parent of the dialogs. + + * src/ephy-window.c: + + Use Save Link As and correct icons. + +2004-01-21 Adam Hooper + + * embed/downloader-view.c: (downloader_view_build_ui): + * embed/find-dialog.c: (find_dialog_init): + * embed/mozilla/GtkNSSDialogs.cpp: + * embed/print-dialog.c: (ephy_print_dialog_new), + (ephy_print_setup_dialog_new): + * lib/ephy-glade.c: (ephy_glade_widget_new): + * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_init): + * src/pdm-dialog.c: (pdm_dialog_init): + * src/prefs-dialog.c: (setup_add_language_dialog), + (prefs_dialog_init): + + Explicitly call ephy_file () whenever specifying a Glade file. This + gives the ability to load a Glade file outside of SHARE_DIR (i.e., in + extensions). Fixes Bug #132018. + +2004-01-21 Marco Pesenti Gritti + + * embed/mozilla/ContentHandler.cpp: + + Destroy filepicker once it's done. I dunno + about much more bugs so please report now ;) + +2004-01-21 Christian Persch + + * src/bookmarks/ephy-bookmark-action.c: + (ephy_bookmark_action_get_type), + (ephy_bookmark_action_set_property), + (ephy_bookmark_action_get_property), + (ephy_bookmark_action_class_init): + + Set "tooltip" property on bookmark actions to the url. That way + we display it in the status bar with no extra steps taken. + +2004-01-21 Piers Cornwell + + * embed/downloader-view.c: (update_status_icon), + (downloader_view_remove_download): + + Use ngettext for number of downloads and remaining + minutes display in the tooltip of the tray icon. + +2004-01-21 Christian Persch + + * embed/mozilla/EventContext.cpp: + * src/ephy-tab.c: (address_has_web_scheme): + + about: can be opened in new tab too. + +2004-01-21 Christian Persch + + * embed/mozilla/mozilla-embed-single.cpp: + + Re-enable fonts language font filtering, fixes bug #128814 + +2004-01-19 Marco Pesenti Gritti + + * 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. + +2004-01-19 Christian Persch + + * NEWS: + + Merge from gnome-2-4 branch. + +2004-01-19 Marco Pesenti Gritti + + * 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 ~. + +2004-01-19 Marco Pesenti Gritti + + * data/epiphany.schemas.in: + * data/glade/prefs-dialog.glade: + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/ContentHandler.h: + * embed/mozilla/MozDownload.cpp: + * lib/ephy-prefs.h: + * src/prefs-dialog.c: (get_download_button_label): + + Change default dir to /home/Downloads. Show the + pref about warning on files downloading. Cleanup + warning dialogs a bit. + +2004-01-18 Christian Persch + + * lib/ephy-dialog.c: (ephy_dialog_hide): + * lib/ephy-dialog.h: + + Introduce ephy_dialog_hide(). + +2004-01-18 Christian Persch + + * embed/mozilla/mozilla-embed.cpp: + + We need to use do_QueryInterface to get from the + nsIDOM[Key|Mouse]Event to the nsIDOMEvent, not just + cast it. + +2004-01-17 Christian Persch + + * embed/mozilla/mozilla-embed.cpp: + * src/ephy-tab.c: (ephy_tab_init): + + Use g_signal_connect_object to connect the embed signals, + that way they're disconnected before the tab object is + finalised. Should fix crasher bug #131635. + +2004-01-16 + + * data/epiphany-lockdown.schemas.in: Typo fixes. + +2004-01-16 Christian Persch + + * src/prefs-dialog.c: (download_path_response_cb): + + Use gtk_file_chooser_get_filename() instead of + gtk_file_chooser_get_current_folder(). Fixes bug #131646. + +2004-01-16 Christian Persch + + * src/ephy-window.c: (menu_item_select_cb), + (menu_item_deselect_cb), (disconnect_proxy_cb), (connect_proxy_cb), + (setup_ui_manager), (ephy_window_init): + + Show help for menu items in the statusbar. + +2004-01-15 Christian Persch + + * embed/ephy-embed-event.c: (ephy_embed_event_get_type), + (ephy_embed_event_base_init), (ephy_embed_event_get_event_type), + (ephy_embed_event_get_context), (ephy_embed_event_get_modifier), + (ephy_embed_event_get_coords), (ephy_embed_event_get_property), + (ephy_embed_event_has_property), (ephy_embed_event_get_dom_event): + * embed/ephy-embed-event.h: + * embed/mozilla/EventContext.cpp: + * embed/mozilla/EventContext.h: + * embed/mozilla/Makefile.am: + * embed/mozilla/mozilla-embed-event.cpp: + * embed/mozilla/mozilla-embed-event.h: + * embed/mozilla/mozilla-embed.cpp: + * src/ephy-window.c: (popup_menu_at_coords): + * src/popup-commands.c: (popup_cmd_copy_link_address): + + Make EphyEmbedEvent abstract, implemented by MozillaEmbedEvent. + Port callers to the new api. + Fix some callers in src/ which were using private fields of + EphyEmbedEvent struct. + +2004-01-14 Xan Lopez + + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/ContentHandler.h: + + Let the user decide about what to do with automatic dialogs. + +2004-01-14 Christian Persch + + * embed/ephy-embed-persist.c: (ephy_embed_persist_to_string): + * embed/ephy-embed-persist.h: + * embed/mozilla/mozilla-embed-persist.cpp: + + Get the page content into a string. + +2004-01-13 Xan Lopez + + * embed/downloader-view.c: (status_icon_activated): + + Allow to show/hide downloader clicking on tray icon. + Fixes #131012. + +2004-01-13 Christian Persch + + * configure.in: + + Version 1.1.3. + +2004-01-13 Christian Persch + + * FEATURE FREEZE ! + + From now on, no commits are allowed which add new features. + +2004-01-12 Christian Persch + + * embed/downloader-view.c: (download_dialog_pause_cb): + + Add accelerator to Pause/Resume button. + +2004-01-12 Christian Persch + + * embed/ephy-history.c: (ephy_history_set_enabled), + (ephy_history_init): + + Default history to "enabled". + +2004-01-12 Christian Persch + + * embed/mozilla/EventContext.h: + * src/ephy-tab.c: (address_has_web_scheme): + + Forgot to commit those. + +2004-01-12 Christian Persch + + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/EventContext.cpp: + * embed/mozilla/EventContext.h: + * src/ephy-tab.c: (address_has_web_scheme): + * src/ephy-window.c: (show_embed_popup): + + Only allow "Open in New Tab/Window" for certain protocols. + +2004-01-10 Christian Persch + + * data/epiphany.xhtml: + + Verified the quote and put the original here. + +2004-01-10 Christian Persch + + * src/ephy-window.c: (update_exit_fullscreen_popup_position), + (ephy_window_fullscreen): + + Fix signal parameter, and add a NULL check. Fixes bug #131117, + patch by Martin Kretzschmar. + +2004-01-10 Christopher James Lahey + + * embed/mozilla/PrintingPromptService.cpp: + * lib/ephy-prefs.h: + * src/ephy-main.c: (main): + * src/ephy-window.c: (update_actions), (ephy_window_init), + (ephy_window_finalize), (ephy_window_print): + + Implement print and print setup disabling for lockdown mode. + +2004-01-10 Christian Persch + + * configure.in: + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EventContext.cpp: + + Adapt to the ever-changing mozilla API. + +2004-01-10 Christian Persch + + * embed/ephy-history.c: (ephy_history_get_type), + (ephy_history_set_enabled), (ephy_history_set_property), + (ephy_history_get_property), (ephy_history_class_init), + (page_removed_from_host_cb), (disable_history_notifier), + (ephy_history_init), (ephy_history_finalize), (ephy_history_new), + (ephy_history_get_host), (ephy_history_visited), + (ephy_history_add_page), (ephy_history_set_page_title), + (ephy_history_clear), (ephy_history_is_enabled): + * embed/ephy-history.h: + * lib/ephy-node-db.c: (ephy_node_db_get_property), + (ephy_node_db_set_property), (ephy_node_db_set_immutable): + * lib/ephy-node-db.h: + * lib/ephy-prefs.h: + * src/bookmarks/ephy-bookmarks.c: (clear_favorites), + (history_cleared_cb), (ephy_setup_history_notifiers): + + Implement history disabling. + +2004-01-09 Christopher James Lahey + + * data/epiphany-lockdown.schemas.in, lib/ephy-prefs.h: Added + disable_arbitrary_url, disable_toolbar_editing, and + disable_history keys. + + * src/ephy-automation.c (impl_ephy_automation_loadurl): Make this + ignore a url given on the command line if disable_arbitrary_url is + on. + + * src/ephy-notebook.c (notebook_drag_data_received_cb): Made this + ignore drags if disable_arbitrary_url is on. + + * src/ephy-session.c (ephy_session_load): Don't show history + window if disable_history is on. + + * src/ephy-tab.c (ephy_tab_dom_mouse_click_cb): Disable middle + click to paste url if disable_arbitrary_url is on. + + * src/ephy-window.c: Disable menu actions based on + disable_arbitrary_url, disable_toolbar_editing, and + disable_history keys. + +2004-01-10 Christian Persch + + * embed/mozilla/ContentHandler.cpp: + + Fix type to make it compile with MOZILLA_SNAPSHOT <= 11 again. + +2004-01-10 Christian Persch + + * src/ephy-notebook.c: (ephy_notebook_finalize): + + Call parent class' finalize. + +2004-01-10 Christian Persch + + * embed/mozilla/mozilla-embed-persist.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + + Use NS_ENSURE_SUCCESS/NS_ENSURE_TRUE at appropriate places. + +2004-01-10 Christian Persch + + * 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. + +2004-01-10 Christian Persch + + * embed/mozilla/ExternalProtocolHandlers.cpp: + + Use NS_ENSURE_SUCCESS/NS_ENSURE_TRUE at appropriate places. + +2004-01-10 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + + Use NS_ENSURE_SUCCESS/NS_ENSURE_TRUE at appropriate places. + +2004-01-10 Christian Persch + + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/ContentHandler.h: + + Use NS_ENSURE_SUCCESS/NS_ENSURE_TRUE at appropriate places. + +2004-01-10 Christian Persch + + * embed/mozilla/EphySingle.cpp: + + Use NS_ENSURE_SUCCESS/NS_ENSURE_TRUE at appropriate places instead of + silent "if (...) return ...;". + +2004-01-10 Christian Persch + + * embed/mozilla/EphyAboutRedirector.cpp: + * embed/mozilla/EphyAboutRedirector.h: + + Use NS_ENSURE_SUCCESS/NS_ENSURE_TRUE at appropriate places instead of + silent "if (...) return ...;". + Really kill "about:options". + +2004-01-10 Xan Lopez + + * data/ui/epiphany-ui.xml: + * src/ephy-window.c: + * src/popup-commands.c: (popup_cmd_download_link_as): + * src/popup-commands.h: + + Add "Download Link As" to the link context menu. + +2004-01-09 Christopher James Lahey + + * src/toolbar.c (update_location_editable): Check if embed is valid + here. + +2004-01-09 Christopher James Lahey + + * data/epiphany-lockdown.schemas.in, lib/ephy-prefs.h: Added + disable_bookmark_editing key. + + * lib/ephy-node-db.c, ephy-node-db.h, ephy-node.c: Added immutable + property. + + * lib/egg/egg-editable-toolbar.c (drag_data_received_cb, + toolbar_drag_motion_cb), src/ephy-toolbars-model.c + (impl_get_item_id): Made these handle immutable models/node_dbs. + + * src/ephy-automation.c, src/ephy-session.c: Don't show the + bookmark editor if disabled. + + * src/ephy-window.c: Disable a bunch of menus if bookmark editing + is disabled. + + * src/bookmarks/ephy-bookmarks-import.c, + src/bookmarks/ephy-bookmarks.c: Disable bookmark editing and + importing is key is set. Uses immutable property. + +2004-01-09 Christian Persch + + * data/epiphany.schemas.in: + * data/ui/epiphany-ui.xml: + * embed/ephy-embed-prefs.h: + * embed/mozilla/mozilla-notifiers.cpp: + * src/ephy-window.c: (ephy_window_finalize), + (browse_with_caret_notifier), (ephy_window_init): + * src/pdm-dialog.c: (show_cookies_properties): + * src/window-commands.c: (window_cmd_browse_with_caret): + * src/window-commands.h: + + Add an accellerator-only action (F7) to toggle caret browsing. Hook + up listener to set the mozilla pref, added the gconf key to the schema. + +2004-01-09 Roozbeh Pournader + + * lib/ephy-state.c: Fixed a logic error in using & instead of && + (bug #130919, Dave Jones). + +2004-01-08 Christopher James Lahey + + * embed/mozilla/ContentHandler.cpp (MIMEAskAction): Don't save the + file if disable_save_to_disk is on. + + * lib/ephy-prefs.h (CONF_DISABLE_SAVE_TO_DISK): Added this key here. + + * src/ephy-window.c (update_actions): Obey disable_save_to_disk. + Also, disable toggling view settings if their keys are locked. + +2004-01-06 Piers Cornwell + + * help/C/epiphany-C.omf + + Update help. + +2004-01-06 Christian Persch + + * src/ephy-encodings.c: (ephy_encodings_get_node): + + Add a comment for translators. + +2004-01-06 Christian Persch + + * src/ephy-encoding-menu.c: (update_encoding_menu_cb): + + Move "automatic" check back to where it was, since we now always have + a node for the encoding. + +2004-01-06 Christian Persch + + * Makefile.am: + * configure.in: + + Sigh, yet another intltool change. Remove OrigTree.pm from EXTRA_DIST, + and depend on intltool >= 0.29. + +2004-01-06 Christian Persch + + * embed/ephy-encodings.c: (add_encoding), + (ephy_encodings_get_node), (ephy_encodings_add_recent), + (ephy_encodings_get_recent), (ephy_encodings_init): + * embed/ephy-encodings.h: + * src/ephy-encoding-dialog.c: (sync_embed_cb): + * src/ephy-encoding-menu.c: (update_encoding_menu_cb), + (add_action), (ephy_encoding_menu_set_window): + * src/prefs-dialog.c: (create_node_combo): + + Behave better when the encoding used on the page is unknown to us. + Previously we skipped important steps in menu building, resulting in + incorrect encoding indicator. Now, we dynamically add an entry with + name "Unknown" to our menu. + + Also add back some rarely used encodings (us-ascii, UTF-16*, UTF-32*) + to our known encodings repertoire. + +2004-01-06 Christian Persch + + * src/ephy-encoding-menu.c: (update_encoding_menu_cb): + + Always set the "automatic" toggle button correctly, even if the encoding + wasn't found in our database + +2004-01-06 Mohammad DAMT + + * configure.in: Added "id" in ALL_LINGUAS + * po/id.po: Added Indonesian translation by + Tunggul Arif Siswoyo + +2004-01-06 Christian Persch + + * embed/mozilla/MozillaPrivate.cpp: + + Remove debug output leftover. + +2004-01-06 Christian Persch + + * embed/mozilla/MozillaPrivate.cpp: + * embed/mozilla/PrintingPromptService.cpp: + + Ensure that if the nsIDOMWindow provided is a frame inside an embed, + we get the top-level window and then get the embed from that. + Fixes bug #129028. + +2004-01-04 Christian Persch + + * src/window-commands.c: (window_cmd_help_about): + + Added spark to documenters tab. + +2004-01-04 Christian Persch + + * embed/print-dialog.c: (ephy_print_dialog_response_cb): + + Fix parent for help window. + +2004-01-04 Piers Cornwell + + * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_get_type), + (ephy_encoding_dialog_response_cb): + + Add help button to encodings dialogue. + +2004-01-04 Piers Cornwell + + * data/glade/certificate-dialogs.glade: + * data/glade/epiphany.glade: + * data/glade/print.glade: + * embed/mozilla/GtkNSSDialogs.cpp: + * embed/print-dialog.c: (ephy_print_dialog_response_cb), + (ephy_print_setup_dialog_help_button_cb): + * src/pdm-dialog.c: (pdm_dialog_show_help): + * src/prefs-dialog.c: (prefs_dialog_show_help): + + Add help buttons to Certificate Viewer, PDM, print and print setup + dialogues. + +2004-01-04 Christian Persch + + * src/ephy-window.c: (confirm_close_with_modified_forms): + + Daveb will hate me for this, but making the confirm dialogue only + window-modal will make menus not work after cancelling the close. + Removing this for the time being since it's a nasty regression, + until I find the bug. + +2004-01-04 Christian Persch + + * embed/ephy-embed.c: (ephy_embed_has_modified_forms): + * embed/ephy-embed.h: + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/mozilla-embed.cpp: + + Add API to check if an EphyEmbed has forms with user input in them. + Currently it required one modified textarea, or two modified text + fields. + + * src/ephy-notebook.c: (ephy_notebook_class_init), + (close_button_clicked_cb): + * src/ephy-notebook.h: + * src/ephy-window.c: (confirm_close_with_modified_forms), + (ephy_window_delete_event_cb), (tab_delete_cb), (setup_notebook), + (ephy_window_init), (ephy_window_remove_tab): + + When closing a window or tab, check if there is unsubmitted user + input in form fields, and if so, warn the user before closing. + Fixes bug #119857. + +2004-01-03 Michael Terry + + * data/ui/epiphany-ui.xml: + + Show copy text menu item also for links + + * src/ephy-window.c: (update_edit_actions_sensitivity), + (enable_edit_actions_sensitivity), (edit_menu_show_cb), + (edit_menu_hide_cb), (hide_embed_popup_cb), (show_embed_popup): + + Show copy text menu item only when there is actually selected + text. + +2004-01-03 Robert Sedak + + * configure.in: Added "hr" in ALL_LINGUAS. + +2004-01-02 Taneem Ahmed + + * configure.in: Added "bn" to ALL_LINGUAS. + +2004-01-01 Christian Persch + + * src/ephy-notebook.c: (notebook_drag_data_received_cb), + (ephy_notebook_insert_page), (ephy_notebook_remove_page): + * src/ephy-tab.c: (ephy_tab_for_embed), (ephy_tab_init): + * src/ephy-tab.h: + * src/ephy-tabs-menu.c: (tab_added_cb), (tab_removed_cb): + * src/ephy-window.c: (tab_context_menu_cb), (tab_added_cb), + (tab_removed_cb), (real_get_active_tab), (ephy_window_get_tabs): + + New API to get the EphyTab from an EphyEmbed. Port all users. + +2004-01-01 Christian Persch + + * embed/ephy-command-manager.c: (ephy_command_manager_get_type), + (ephy_command_manager_base_init), + (ephy_command_manager_do_command), + (ephy_command_manager_can_do_command): + * embed/ephy-command-manager.h: + * embed/ephy-cookie-manager.c: (ephy_cookie_manager_list_cookies), + (ephy_cookie_manager_remove_cookie), (ephy_cookie_manager_clear): + * embed/ephy-cookie-manager.h: + * embed/ephy-embed-dialog.h: + * embed/ephy-embed-shell.c: + * embed/ephy-embed-single.c: (ephy_embed_single_get_type), + (ephy_embed_single_iface_init), (ephy_embed_single_clear_cache), + (ephy_embed_single_clear_auth_cache), + (ephy_embed_single_set_offline_mode), + (ephy_embed_single_load_proxy_autoconf), + (ephy_embed_single_get_font_list): + * embed/ephy-embed-single.h: + * embed/ephy-embed.c: (ephy_embed_get_type), + (ephy_embed_base_init), (ephy_embed_load_url), + (ephy_embed_stop_load), (ephy_embed_can_go_back), + (ephy_embed_can_go_forward), (ephy_embed_can_go_up), + (ephy_embed_get_go_up_list), (ephy_embed_go_back), + (ephy_embed_go_forward), (ephy_embed_go_up), + (ephy_embed_get_title), (ephy_embed_get_location), + (ephy_embed_get_link_message), (ephy_embed_get_js_status), + (ephy_embed_reload), (ephy_embed_zoom_set), (ephy_embed_zoom_get), + (ephy_embed_shistory_n_items), (ephy_embed_shistory_get_nth), + (ephy_embed_shistory_get_pos), (ephy_embed_shistory_go_nth), + (ephy_embed_get_security_level), (ephy_embed_find_set_properties), + (ephy_embed_find_next), (ephy_embed_activate), + (ephy_embed_set_encoding), (ephy_embed_get_encoding_info), + (ephy_embed_print), (ephy_embed_print_preview_close), + (ephy_embed_print_preview_n_pages), + (ephy_embed_print_preview_navigate): + * embed/ephy-embed.h: + * embed/ephy-password-manager.h: + * embed/ephy-permission-manager.h: + * embed/mozilla/PrintingPromptService.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + * embed/mozilla/mozilla-embed-single.h: + * embed/mozilla/mozilla-embed.cpp: + + Unify interface struct and type macro naming to be EphyFooIFace, + EPHY_FOO_IFACE, EPHY_IS_FOO_IFACE, EPHY_FOO_GET_IFACE. + +2004-01-01 Christian Persch + + * embed/ephy-embed-prefs.h: + * embed/mozilla/mozilla-notifiers.cpp: + + Remove default font notifier, it's been obsoleted by the fonts rewrite. + +2004-01-01 Christian Persch + + * embed/mozilla/mozilla-notifiers.cpp: + + Set socks prefs from gconf too. + +2004-01-01 Roozbeh Pournader + + * configure.in: Added "fa" (Persian) to ALL_LINGUAS. + +2003-12-31 Christian Persch + + * embed/mozilla/MozDownload.cpp: + * embed/print-dialog.c: (ephy_print_get_print_info): + + Fix mem leaks. + +2003-12-30 Christian Persch + + * embed/mozilla/MozDownload.cpp: + * embed/mozilla/MozDownload.h: + + Adjust includes to make it compile with mozila 1.4. + +2003-12-30 Christian Persch + + * embed/ephy-embed-single.c: (ephy_embed_single_clear_auth_cache): + * embed/ephy-embed-single.h: + * embed/mozilla/mozilla-embed-single.cpp: + + Add API to EphyEmbedSingle to clear the HTTP authentication cache. + +2003-12-29 Christian Persch + + * embed/ephy-embed-shell.c: (ephy_embed_shell_get_favicon_cache), + (ephy_embed_shell_get_global_history), + (ephy_embed_shell_get_downloader_view), + (ephy_embed_shell_get_embed_single), + (ephy_embed_shell_get_encodings), (ephy_embed_shell_check_mime), + (ephy_embed_shell_class_init): + * embed/ephy-embed-shell.h: + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/GlobalHistory.cpp: + * embed/mozilla/mozilla-notifiers.cpp: + * src/bookmarks/ephy-bookmarks.c: (compute_lower_fav), + (ephy_setup_history_notifiers): + * src/ephy-completion-model.c: (ephy_completion_model_init): + * src/ephy-shell.c: (ephy_shell_get_history_window): + * src/ephy-tab.c: (ephy_tab_set_icon_address), + (ephy_tab_address_cb), (ephy_tab_zoom_changed_cb): + * src/ephy-toolbars-model.c: (impl_get_item_id): + * src/prefs-dialog.c: (setup_font_combo), + (prefs_clear_cache_button_clicked_cb): + + Unified return type of ephy_embed_shell_get_X to be GObject *. + Fixed all callers. + +2003-12-28 Christian Persch + + * Makefile.am: + + Added OrigTree.pm to EXTRA_DIST. + +2003-12-28 Marco Pesenti Gritti + + * NEWS: + * configure.in: + + Update for 1.1.2 + +2003-12-27 Christian Persch + + * lib/egg/egg-editable-toolbar.c: (find_action), + (drag_data_delete_cb), (drag_data_get_cb), + (egg_editable_toolbar_set_model), (egg_editable_toolbar_set_merge), + (egg_editable_toolbar_class_init), (egg_editable_toolbar_init), + (egg_editable_toolbar_finalize), (egg_editable_toolbar_new): + * lib/egg/egg-editable-toolbar.h: + * lib/egg/egg-toolbar-editor.c: (find_action), + (egg_toolbar_editor_set_merge), (egg_toolbar_editor_set_model), + (egg_toolbar_editor_class_init), (egg_toolbar_editor_finalize), + (egg_toolbar_editor_new), (editor_drag_data_received_cb), + (editor_drag_data_delete_cb), (update_editor_sheet), + (setup_editor), (egg_toolbar_editor_init): + * lib/egg/egg-toolbar-editor.h: + * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_to_xml), + (egg_toolbars_model_save), (egg_toolbars_model_add_separator), + (impl_add_item), (egg_toolbars_model_add_toolbar), + (egg_toolbars_model_load), (egg_toolbars_model_class_init), + (egg_toolbars_model_init), (egg_toolbars_model_finalize), + (egg_toolbars_model_new), (egg_toolbars_model_remove_toolbar), + (egg_toolbars_model_remove_item): + * lib/egg/egg-toolbars-model.h: + + Brought type macros in line with the rest of libegg; and use + gobject instance private data. + + * src/ephy-toolbars-model.c: (ephy_toolbars_model_get_type), + (update_toolbar_removeable_flag), + (ephy_toolbars_model_set_bookmarks), (toolbar_added), + (toolbar_removed), (ephy_toolbars_model_new), + (ephy_toolbars_model_has_bookmark): + * src/ephy-toolbars-model.h: + * src/toolbar.c: (toolbar_get_type), (init_normal_mode): + + Fix crasher bug #129991. + +2003-12-26 Christian Persch + + * src/prefs-dialog.c: (prefs_dialog_finalize), + (prefs_download_path_button_clicked_cb): + + One download directory chooser is enough. + +2003-12-25 Christian Persch + + * src/ephy-window.h: + * src/toolbar.h: + + Move Toolbar struct decl to toolbar.h. + +2003-12-25 Christian Persch + + * src/ephy-window.c: (ephy_window_get_toolbar), + (ephy_window_set_zoom): + * src/ephy-window.h: + * src/window-commands.c: (window_cmd_edit_toolbar), + (window_cmd_load_location): + + Bring ephy_window_get_toolbar signature in line with + ephy_window_get_[statusbar|notebook]. + +2003-12-24 Christian Persch + + * embed/mozilla/EventContext.cpp: + + GDK_Meta_L is a keycode, not a modifier code. + Map meta to GDK_MOD2_MASK. + +2003-12-23 David Bordoley + + * help/C/epiphany.xml: + + Updated printing docs from spark. GET A CVS ACCOUNT! + *hint*hint* + patch from Piers Cornwell + +2003-12-22 Christian Persch + + * embed/ephy-encodings.c: (ephy_encodings_add_recent): + + Fix mem leak. (Found by Crispin.) + +2003-12-22 Marco Pesenti Gritti + + * embed/mozilla/MozDownload.cpp: + * embed/mozilla/MozDownload.h: + + Correctly cancel the download instead of just + cancelling the request. + +2003-12-21 Xan Lopez + + * 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. + +2003-12-21 Christian Persch + + * embed/mozilla/GtkNSSClientAuthDialogs.cpp: + + Sync with galeon. + +2003-12-21 Christian Persch + + * data/glade/epiphany.glade: (encoding_dialog): + + Change mnemonic. + +2003-12-20 Marco Pesenti Gritti + + * src/epiphany.in: + + Do not try to pickup already set MOZILLA_FIVE_HOME, + hopefully fix crashes oepning links from thunderbird + +2003-12-20 Christian Persch + + * embed/mozilla/EphyAboutRedirector.cpp: + + Get rid of about:options. + +2003-12-20 Christian Neumair + + * src/prefs-dialog.c: (get_download_button_label): + + Set the download folder selection label to "Home" if download folder + is home folder (#129737). + +2003-12-20 Christian Persch + + * lib/ephy-gui.c: (ephy_gui_menu_position_under_widget): + + Fix popup coordinates in RTL mode. + +2003-12-20 Christian Persch + + * data/glade/prefs-dialog.glade: (add_language_dialog): + + Set the label's mnemonic widget. + +2003-12-19 Christian Persch + + * src/ephy-navigation-action.c: (ephy_navigation_action_get_type), + (new_history_menu_item), (setup_back_or_forward_menu), + (setup_up_menu): + + Use favicons in the back/forward menus. + +2003-12-19 Christian Persch + + * configure.in: + + Prepare for mozilla 1.6final and 1.7a. + +2003-12-19 Christian Persch + + * src/ephy-encoding-dialog.c: (sync_embed_cb): + * src/ephy-encoding-menu.c: (update_encoding_menu_cb): + + Use return, not g_return_if_fail. + +2003-12-19 Christian Persch + + * embed/print-dialog.c: (ephy_print_dialog_browse_button_cb): + + EphyFileChooser now destroys with parent, don't set the flag again here. + +2003-12-19 Christian Persch + + * lib/ephy-file-chooser.c: (ephy_file_chooser_new): + + Destroy file chooser with its parent window; fixes crashes. + +2003-12-19 Christian Persch + + * src/ephy-tab.c: (ephy_tab_dom_mouse_click_cb): + + Improve comment. + + * src/ephy-window.c: (setup_ui_manager), (setup_notebook), + (ephy_window_init): + + Only show the toolbar after the extensions have been attached + to the window. + +2003-12-19 Christian Persch + + * src/prefs-dialog.c: (add_lang_dialog_response_cb): + + Remove debug output leftovers. + +2003-12-18 Christian Persch + + * data/glade/prefs-dialog.glade: + * embed/mozilla/mozilla-notifiers.cpp: + * src/Makefile.am: + * src/language-editor.c: + * src/language-editor.h: + * src/prefs-dialog.c: (prefs_dialog_finalize), + (prefs_dialog_class_init), (language_editor_add), + (language_editor_update_pref), (language_editor_update_buttons), + (add_lang_dialog_response_cb), (setup_add_language_dialog), + (language_editor_add_button_clicked_cb), + (language_editor_remove_button_clicked_cb), + (language_editor_up_button_clicked_cb), + (language_editor_down_button_clicked_cb), + (language_editor_treeview_drag_end_cb), + (language_editor_selection_changed_cb), (create_language_section), + (prefs_dialog_init): + + In-line the language editor in the prefs dialogue. + +2003-12-18 Christian Persch + + * embed/ephy-encodings.c: (ephy_encoding_info_is_automatic): + * embed/ephy-encodings.h: + * src/ephy-encoding-dialog.c: (sync_embed_cb): + * src/ephy-encoding-menu.c: (update_encoding_menu_cb): + + Factor out the common encoding is_automatic check. + +2003-12-17 Christian Persch + + * src/ephy-tab.c: (ephy_tab_dom_mouse_click_cb): + + Don't try to save the submit button image instead of submitting + the form. [Found by xan.] + +2003-12-16 Christian Persch + + * lib/widgets/ephy-location-entry.c: (completion_func): + + Fix more mem leaks. + +2003-12-16 Christian Persch + + * lib/widgets/ephy-location-entry.c: (completion_func): + + Fix mem leak. (Found by synap.) + +2003-12-16 Marco Pesenti Gritti + + * embed/ephy-encodings.c: (ephy_encodings_get_encodings): + * embed/ephy-favicon-cache.c: (icons_added_cb), (icons_removed_cb), + (remove_obsolete_icons), (ephy_favicon_cache_init), + (kill_download), (ephy_favicon_cache_finalize), + (ephy_favicon_cache_get): + * embed/ephy-history.c: (remove_obsolete_pages), (hosts_added_cb), + (hosts_removed_cb), (pages_added_cb), (pages_removed_cb), + (update_host_on_child_remove), (update_hosts), (ephy_history_init), + (ephy_history_finalize), (ephy_history_get_host), + (ephy_history_get_page): + * lib/Makefile.am: + * lib/ephy-node-db.c: (ephy_node_db_init), (ephy_node_db_finalize), + (ephy_node_db_get_node_from_id), (_ephy_node_db_new_id), + (_ephy_node_db_add_id), (_ephy_node_db_remove_id), + (ephy_node_db_write_to_xml_valist): + * lib/ephy-node-filter.c: (ephy_node_filter_expression_evaluate): + * lib/ephy-node.c: (ephy_node_finalize), (real_remove_child), + (remove_child), (ephy_node_dispose), (ephy_node_new_with_id), + (ephy_node_get_id), (ephy_node_ref), (ephy_node_unref), + (child_changed), (ephy_node_set_property), + (ephy_node_get_property), (ephy_node_get_property_string), + (ephy_node_get_property_boolean), (ephy_node_get_property_long), + (ephy_node_get_property_int), (ephy_node_get_property_double), + (ephy_node_get_property_float), (ephy_node_get_property_node), + (write_parent), (ephy_node_write_to_xml), (ephy_node_add_child), + (ephy_node_remove_child), (ephy_node_has_child), + (ephy_node_sort_children), (ephy_node_reorder_children), + (ephy_node_get_children), (ephy_node_get_n_children), + (ephy_node_get_nth_child), (ephy_node_get_child_index), + (ephy_node_get_next_child), (ephy_node_get_previous_child): + * lib/ephy-node.h: + * lib/ephy-state.c: (find_by_name): + * lib/ephy-thread-helpers.c: + * lib/ephy-thread-helpers.h: + * lib/widgets/ephy-search-entry.c: (ephy_search_entry_timeout_cb): + * lib/widgets/ephy-tree-model-node.c: (filter_changed_cb): + * src/bookmarks/ephy-bookmarks-editor.c: (search_entry_search_cb): + * src/bookmarks/ephy-bookmarks-export.c: (write_topics_list), + (ephy_bookmarks_export_rdf): + * src/bookmarks/ephy-bookmarks-menu.c: (add_bookmarks_menu), + (ephy_bookmarks_menu_rebuild): + * src/bookmarks/ephy-bookmarks.c: (compute_lower_fav), + (get_topics_list), (topics_removed_cb), + (ephy_bookmarks_find_bookmark), (ephy_bookmarks_find_keyword): + * src/bookmarks/ephy-topic-action.c: (append_bookmarks_menu), + (build_topics_menu): + * src/bookmarks/ephy-topics-selector.c: (fill_model): + * src/ephy-favorites-menu.c: (ephy_favorites_menu_rebuild): + * src/ephy-history-window.c: (setup_filters): + * src/ephy-location-action.c: (init_actions_list): + * src/ephy-main.c: (main): + + No need to make our life hard being thread safe when we + never use that code in a thread. + +2003-12-15 Christian Persch + + * src/Makefile.am: + + Don't install statusbar.h. + +2003-12-15 Christian Persch + + * src/ephy-extension.c: (ephy_extension_get_type): + + Fix silly type flags. + +2003-12-15 Christian Persch + + * lib/widgets/ephy-zoom-action.c: (connect_proxy): + + Don't use deprecated macro. + +2003-12-14 Christian Persch + + * src/ephy-nautilus-view.c: (ephy_nautilus_view_finalize), + (gnv_cmd_select_encoding), (gnv_cmd_file_print), + (gnv_cmd_edit_find): + + Fix mem leaks. + Fix a crash when finalizing a nautilus view after having + used the find dialogue. + +2003-12-13 Christian Persch + + * src/bookmarks/ephy-bookmarks-import.c: + (ephy_bookmarks_import_mozilla): + + Better way of mapping hierarchy to topics when importing + bookmarks from mozilla. Fixes bug #124145. + +2003-12-13 Christian Persch + + * lib/ephy-string.c: (ephy_string_shorten), (ephy_string_to_int), + (ephy_string_blank_chr), (ephy_string_elide_underscores), + (ephy_string_double_underscores): + * lib/ephy-string.h: + * src/ephy-tab.c: (ephy_tab_set_link_message): + + Convert control chars to blanks. + +2003-12-13 Christian Persch + + * embed/print-dialog.c: (ephy_print_setup_dialog_new): + * lib/ephy-stock-icons.c: (ephy_stock_icons_init): + * lib/ephy-stock-icons.h: + * src/ephy-window.c: + + Use stock icon for print setup. + +2003-12-13 Christian Persch + + * lib/widgets/ephy-spinner.c: (ephy_spinner_init): + + Use g_signal_connect_object so the signal isn't emitted for a dead + spinner. + +2003-12-13 Marco Pesenti Gritti + + * src/ephy-tab.c: (update_net_state_message), + (ephy_tab_net_state_cb): + + Rework progress message building a bit to deal + with the new NULL == clear behavior + +2003-12-13 Marco Pesenti Gritti + Adam Hooper + + * src/ephy-tab.c: (ephy_tab_set_link_message), + (build_net_state_message), (ephy_tab_net_state_cb), + (ephy_tab_init), (ephy_tab_get_status_message): + * src/ephy-window.c: (sync_tab_message), (ephy_window_init): + * src/statusbar.c: (statusbar_set_progress): + * src/statusbar.h: + +2003-12-12 Christian Persch + + * embed/ephy-permission-manager.c: (ephy_permission_info_new), + (ephy_permission_info_copy), (ephy_permission_manager_add): + * embed/ephy-permission-manager.h: + * embed/mozilla/EphySingle.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + + Fix permission return types. + +2003-12-10 Christian Persch + + * data/glade/print.glade: + + Make print dialogue spacing HIG-compliant. + + * src/ephy-tabs-menu.c: (tab_set_action_accelerator), + (ephy_tabs_menu_update): + + Restore tabs menu shortcut keys ALT-1 .. ALT-0 for the first + ten tabs; they somehow got lost in the Egg->Gtk port. + +2003-12-09 Marco Pesenti Gritti + + * data/epiphany.schemas.in: + + Default history to show only title + +2003-12-09 Adam Hooper + + * embed/ephy-embed.c: (ephy_embed_base_init): + * embed/ephy-embed.h: + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/Makefile.am: + + Move events code inside EphyBrowser.cpp and + add an event for blocked popup. + + * embed/ephy-permission-manager.c: + + Some more docs + + * src/Makefile.am: + * src/ephy-window.c: (ephy_window_get_statusbar): + * src/ephy-window.h: + + Add a way to access the statusbar for plugins + +2003-12-09 Jorn Baayen + + * lib/egg/egg-editable-toolbar.c: (set_item_drag_source): + * lib/egg/egg-toolbar-editor.c: (compare_func), (sort_list), + (editor_drag_data_received_cb), (editor_drag_data_delete_cb), + (editor_create_item), (update_editor_sheet), + (egg_toolbar_editor_add_action), (egg_toolbar_editor_load_actions): + * src/toolbar.c: (toolbar_setup_actions): + + Make toolbar editing drag icons use the same icon size as the + actual toolbar icons; sort actions in the toolbar editor; give + the zoom action a zoom icon. + +2003-12-09 Marco Pesenti Gritti + + * autogen.sh: + + depend on automake 1.7, it seem it's needed by + the deprecates code. + +2003-12-09 Christian Persch + + * lib/widgets/ephy-spinner.c: (ephy_spinner_get_type), + (ephy_spinner_new), (get_spinner_dimensions), (ephy_spinner_init), + (select_spinner_image), (ephy_spinner_expose), + (bump_spinner_frame), (ephy_spinner_start), + (ephy_spinner_remove_update_callback), (ephy_spinner_stop), + (ephy_spinner_unload_images), (scale_to_real_size), + (extract_frame), (ephy_spinner_load_images), + (ephy_spinner_set_small_mode): + + Reformatted to conform to epiphany coding style. + Fix some error condition checks, and initialise variables. + +2003-12-09 Christian Persch + + * data/glade/prefs-dialog.glade: + * embed/print-dialog.c: (ephy_print_dialog_new): + * src/prefs-dialog.c: (create_language_menu), + (create_download_path_label), (prefs_dialog_init): + + Lockdown: set some buttons insensitive when their + pref key is not writable. + + * src/prefs-dialog.c: (download_path_response_cb): + + Convert filename to utf8 first. + +2003-12-09 Christian Persch + + * configure.in: + + Bump gtk+ and glib dependencies to 2.3.1. + +2003-12-08 Christian Persch + + * src/prefs-dialog.c: (setup_font_combo), + (create_fonts_language_menu), (create_node_combo), + (create_language_menu): + + Sort the list of fonts alphabetically. + + Fix a bunch of mem leaks. + +2003-12-08 Christian Persch + + * embed/ephy-embed-shell.c: (load_mime_from_xml): + + Don't use g_return_if_fail for run-time error conditions. + +2003-12-08 Christian Persch + + * src/ephy-tab.c: (save_property_url), + (ephy_tab_dom_mouse_click_cb): + + Make ctrl-click equivalent of middle click on links. Make shift-click + save the link. Fixes bug #110786. + + * src/ephy-window.c: (tab_context_menu_cb): + + Fix context_menu function return value type. + +2003-12-07 Marco Pesenti Gritti + + * Makefile.am: + * NEWS: + * configure.in: + + Update for 1.1.1 + +2003-12-07 Christian Persch + + * data/glade/print.glade: + * data/ui/epiphany-ui.xml: + * embed/mozilla/PrintingPromptService.cpp: + * embed/mozilla/mozilla-embed.cpp: + * embed/print-dialog.c: (ephy_print_info_free), + (ephy_print_get_print_info), (ephy_print_dialog_response_cb), + (print_filechooser_response_cb), + (ephy_print_dialog_browse_button_cb), + (ephy_print_setup_dialog_close_button_cb), (ephy_print_dialog_new), + (ephy_print_setup_dialog_new): + * embed/print-dialog.h: + * src/ephy-nautilus-view.c: (ephy_nautilus_view_new_component), + (gnv_cmd_file_print): + * src/ephy-nautilus-view.h: + * src/ephy-shell.c: (ephy_shell_get_type), (ephy_shell_class_init), + (ephy_automation_factory_cb), (ephy_automation_factory_new), + (ephy_shell_init), (server_timeout), (ephy_shell_startup), + (ephy_shell_finalize), (ephy_shell_new_tab), + (ephy_shell_get_session), (ephy_shell_get_bookmarks), + (ephy_shell_get_toolbars_model), (ephy_shell_get_bookmarks_editor), + (ephy_shell_get_history_window), + (ephy_shell_get_print_setup_dialog), (ephy_shell_delete_on_exit): + * src/ephy-shell.h: + * src/ephy-window.c: (ephy_window_set_print_preview), + (ephy_window_print): + * src/ephy-window.h: + * src/window-commands.c: (window_cmd_file_print_setup), + (window_cmd_file_print_preview): + * src/window-commands.h: + + Split print dialogue in print setup and actual print, and move + print preview into the menus too. Made print setup a global dialogue, + print a per-window dialogue. + + * lib/ephy-dialog.c: (set_value_from_pref), (set_pref_from_value), + (set_value_from_combobox), (set_combo_box_from_value), + (set_radiobuttongroup_from_value), (set_pref_from_info_and_emit), + (togglebutton_clicked_cb), (radiobutton_clicked_cb), + (spinbutton_timeout_cb), (changed_cb), (init_props), (load_info), + (save_info), (impl_show), (ephy_dialog_set_size_group), + (ephy_dialog_construct), (run_response_cb), (ephy_dialog_run), + (ephy_dialog_set_parent), (ephy_dialog_class_init), + (ephy_dialog_new_with_parent): + * lib/ephy-dialog.h: + * src/language-editor.c: (language_editor_class_init): + * src/language-editor.h: + * src/pdm-dialog.c: (pdm_dialog_init): + * src/prefs-dialog.c: (fonts_language_changed_cb), + (create_fonts_language_menu), (prefs_dialog_init), + (prefs_language_more_button_clicked_cb): + + Slight api change; port callers. + +2003-12-02 David Bordoley + + * help/C/epiphany.xml: + + New Securing and snake oil certificates section :P + New keybindings section. Update the prefs section + and download section to match actual ui + patch from Piers Cornwell + +2003-12-06 Christian Persch + + * embed/mozilla/mozilla-embed-single.cpp: + + Fix a mem leak (ported from galeon). + +2003-12-06 Christian Persch + + * embed/ephy-embed-shell.c: (ephy_embed_shell_get_type), + (ephy_embed_shell_finalize), (ephy_embed_shell_get_favicon_cache), + (ephy_embed_shell_get_global_history), + (ephy_embed_shell_get_downloader_view), (load_mime_from_xml), + (ephy_embed_shell_init), (ephy_embed_shell_class_init): + * embed/ephy-embed-shell.h: + * embed/ephy-embed.c: (ephy_embed_base_init): + * embed/ephy-embed.h: + * src/ephy-tab.c: (ephy_tab_init): + + Misc cleanups. Remove a duplicated signal from EphyEmbed. + +2003-12-05 Christian Persch + + * lib/ephy-state.c: (sync_expander_cb), (ephy_state_add_expander): + + Use notify::expanded to persist expander state. Bug found by Crispin. + +2003-12-05 Christian Persch + + * embed/mozilla/GtkNSSClientAuthDialog.cpp: + + Remove unused variable. + +2003-12-05 Christian Persch + + * embed/mozilla/GtkNSSClientAuthDialogs.cpp: + + Remove unneccessary _() call. + +2003-12-04 Christian Persch + + * embed/mozilla/EphyBrowser.cpp: + + Add some missing NULL checks. + +2003-12-03 Christian Persch + + * lib/widgets/ephy-spinner.c: + + Remove unused includes. + +2003-12-03 Christian Persch + + * embed/mozilla/Makefile.am: + + Epiphany is now 100% fat-free.... err... free of + deprecated widgets. Add -DGTK_DISABLE_DEPRECATED + flag back again when in maintainer mode. + +2003-12-03 Christian Persch + + * embed/mozilla/GtkNSSClientAuthDialogs.cpp: + + Port from optionmenu to new GtkComboBox. + +2003-12-03 Christian Persch + + * embed/mozilla/GtkNSSDialogs.cpp: + * src/pdm-dialog.c: (show_cookies_properties): + + Fix strftime(3) usage. + +2003-12-03 Christian Persch + + * src/pdm-dialog.c: (pdm_cmd_delete_selection), (compare_cookies): + + Fix two crashers. + +2003-12-03 Piers Cornwell + + * src/pdm-dialog.c: (show_cookies_properties): + + Improve cookie properties dialogue for bug #125498. + +2003-12-02 Christian Persch + + * lib/ephy-dialog.c: (set_info_from_pref): + + Set sensitivity from gconf key writability, and do it right. + +2003-12-02 David Bordoley + + * help/C/epiphany.xml: + + More cleanups. Added prefs section and downloader + section. Still needs work to be brought 100% + up2date. + patch from Piers Cornwell + +2003-12-02 Christian Persch + + * embed/mozilla/mozilla-notifiers.cpp: + + Add /system/http_proxy to list of directories to monitor. + +2003-12-02 Xan Lopez + + * data/mime-types-permissions.xml: + + Move quite a lot of things from unsafe to safe, still some to go. + +2003-12-01 Marco Pesenti Gritti + + * src/ephy-shell.c: (ephy_shell_get_history_window): + + pass the shell to the callbacks as expected. Fix warnings. + +2003-12-01 Marco Pesenti Gritti + + * embed/mozilla/mozilla-embed.cpp: + + Handle case of get_location on an unrealized widget + +2003-11-30 Christian Persch + + * src/window-commands.c: + + Update my email address. + +2003-11-30 Christian Persch + + * src/language-editor.c: (language_editor_add): + + Fix mem leak introduced by last commit. + +2003-11-30 Christian Persch + + * lib/ephy-dialog.c: + + Remove gtkoptionmenu.h include. + + * src/language-editor.c: (language_editor_add): + * src/prefs-dialog.c: (create_language_menu): + + Make languages list unique; don't allow to add an entry + already in the list. + +2003-11-30 Marco Pesenti Gritti + + * embed/Makefile.am: + * lib/Makefile.am: + * lib/widgets/Makefile.am: + * src/Makefile.am: + * src/bookmarks/Makefile.am: + + Readd gtk deprecates (only in maintainer mode). + + * src/ephy-location-action.c: (sync_editable): + + Use not deprecated api. + + * lib/ephy-dialog.c: (set_value_from_info), (set_info_from_value), + (connect_signals), (init_props): + + Remove optionmenu deprecated control. + +2003-11-30 Christian Persch + + * data/epiphany-lockdown.schemas.in: + + Added disable_unsafe_protocols and additional_safe_protocols keys. + +2003-11-30 Christian Persch + + * configure.in: + * data/glade/epiphany.glade: + * data/glade/prefs-dialog.glade: + * embed/downloader-view.c: (downloader_view_build_ui): + * embed/ephy-embed-dialog.c: (ephy_embed_dialog_new_with_parent): + * embed/ephy-encodings.c: (ephy_encodings_get_detectors): + * embed/ephy-encodings.h: + * embed/find-dialog.c: (update_navigation_controls), + (set_properties), (impl_show), (find_dialog_class_init), + (find_dialog_init), (find_dialog_new_with_parent): + * embed/print-dialog.c: (impl_show), (print_dialog_init), + (print_dialog_new_with_parent), (print_get_info): + * lib/ephy-dialog.c: (ephy_dialog_get_type), (lookup_info), + (set_sensitivity), (set_value_from_pref), (set_pref_from_value), + (set_value_from_editable), (set_value_from_optionmenu), + (set_value_from_combobox), (get_radio_button_active_index), + (set_value_from_radiobuttongroup), (set_value_from_spin_button), + (set_value_from_togglebutton), (set_value_from_info), + (set_editable_from_value), (get_index_from_value), + (set_optionmenu_from_value), (compare_values), + (set_combo_box_from_value), (set_radiobuttongroup_from_value), + (set_spin_button_from_value), (set_togglebutton_from_value), + (set_info_from_value), (set_pref_from_info), + (togglebutton_clicked_cb), (radiobutton_clicked_cb), + (spinbutton_timeout_cb), (spinbutton_changed_cb), (changed_cb), + (set_info_from_pref), (connect_signals), (disconnect_signals), + (init_props), (load_info), (save_info), (setup_default_size), + (dialog_destroy_cb), (impl_construct), (impl_show), + (ephy_dialog_set_modal), (ephy_dialog_add_enum), + (ephy_dialog_set_data_column), (ephy_dialog_set_pref), + (ephy_dialog_set_size_group), (ephy_dialog_construct), + (ephy_dialog_show), (ephy_dialog_run), (ephy_dialog_get_control), + (ephy_dialog_get_value), (ephy_dialog_set_value), (free_prop_info), + (ephy_dialog_init), (ephy_dialog_dispose), (ephy_dialog_finalize), + (ephy_dialog_set_parent), (ephy_dialog_set_property), + (ephy_dialog_get_property), (ephy_dialog_class_init), + (ephy_dialog_new), (ephy_dialog_new_with_parent): + * lib/ephy-dialog.h: + * lib/ephy-file-chooser.c: (ephy_file_chooser_new): + * src/ephy-encoding-dialog.c: (sync_embed_cb), + (sync_parent_window_cb), (activate_choice), + (view_node_selected_cb), (view_node_activated_cb), + (ephy_encoding_dialog_init), (ephy_encoding_dialog_new): + * src/ephy-shell.c: (ephy_shell_finalize), + (ephy_shell_get_pdm_dialog), (ephy_shell_get_prefs_dialog): + * src/ephy-shell.h: + * src/language-editor.c: (language_editor_get_type), + (language_editor_class_init), (language_editor_update_pref), + (language_editor_add_button_clicked_cb), + (language_editor_set_view), (language_editor_init), + (language_editor_new), (language_editor_set_model), + (language_editor_add): + * src/language-editor.h: + * src/pdm-dialog.c: (pdm_dialog_show_help), + (action_treeview_selection_changed_cb), (setup_action), + (cookies_treeview_selection_changed_cb), + (pdm_dialog_cookies_construct), (pdm_dialog_passwords_construct), + (pdm_dialog_init), (show_cookies_properties): + * src/prefs-dialog.c: (prefs_dialog_get_type), + (prefs_dialog_class_init), (prefs_dialog_show_help), + (setup_font_combo), (fonts_language_combo_changed_cb), + (create_fonts_language_menu), (create_node_combo), + (language_combo_changed_cb), (create_language_menu), + (get_download_button_label), (create_download_path_label), + (prefs_dialog_init), (prefs_dialog_response_cb), + (set_homepage_entry), (prefs_homepage_current_button_clicked_cb), + (prefs_homepage_blank_button_clicked_cb), + (language_dialog_changed_cb), + (prefs_language_more_button_clicked_cb), + (download_path_response_cb), + (prefs_download_path_button_clicked_cb): + * src/prefs-dialog.h: + * src/window-commands.c: (window_cmd_edit_prefs): + + Improved API and implementation of EphyDialog. Add support for + new combo box, and removed optionmenu. + + Port all dialogues to new API and use combobox instead of optionmenus. + +2003-11-30 Chris Lahey + Marco Pesenti Gritti + + * data/Makefile.am: + * data/epiphany-lockdown.schemas.in: + * src/ephy-main.c: (main): + * src/ephy-tab.c: (ephy_tab_new_window_cb), (ephy_tab_size_to_cb): + * src/ephy-window.c: (update_chromes_visibility), (update_chrome), + (ephy_window_fullscreen), (ephy_window_unfullscreen), + (show_embed_popup), (update_layout_toggles), (chrome_notifier), + (ephy_window_init), (ephy_window_finalize), + (ephy_window_request_chrome), (ephy_window_set_print_preview), + (ephy_window_show), (print_dialog_preview_cb): + * src/ephy-window.h: + * src/ppview-toolbar.c: (ppview_toolbar_set_window), + (toolbar_cmd_ppv_close): + * src/window-commands.c: (window_cmd_view_bookmarks_bar), + (window_cmd_view_toolbar), (window_cmd_view_statusbar): + + Implement lockdown pref to not allow javascript to modify + chromes. Do necessary changes to chromes code to make + it possible. + +2003-11-28 Marco Pesenti Gritti + + * embed/downloader-view.c: (status_icon_activated), + (seconds_remaining_total), (update_status_icon), + (download_changed_cb), (downloader_view_add_download): + + Show total downloads and time in the tray icon tooltip + +2003-11-28 Christian Persch + + * lib/widgets/ephy-zoom-control.c: (ephy_zoom_control_get_type), + (proxy_menu_activate_cb), (combo_changed_cb), (sync_zoom_cb), + (ephy_zoom_control_init), (ephy_zoom_control_set_tooltip), + (ephy_zoom_control_class_init), (ephy_zoom_control_finalize): + * lib/widgets/ephy-zoom-control.h: + + Port from option menu to GtkComboBox. + +2003-11-28 Xan Lopez + + * 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 + +2003-11-27 Piers Cornwell + + * data/glade/prefs-dialog.glade: + + Fix some mnemonics, and make some mnemonics work by + assigning a mnemonic_widget. + +2003-11-26 Christian Persch + + * embed/mozilla/EphyContentPolicy.cpp: + * embed/mozilla/EphyContentPolicy.h: + * embed/mozilla/Makefile.am: + * embed/mozilla/MozRegisterComponents.cpp: + + Implement disabling unsafe protocols for lock-down mode. + +2003-11-26 Christian Persch + + * src/ephy-shell.c: (ephy_shell_init), (ephy_shell_finalize), + (ephy_shell_get_history_window), (ephy_shell_get_pdm_dialog): + * src/ephy-shell.h: + * src/pdm-dialog.c: (pdm_dialog_response_cb): + * src/pdm-dialog.h: + * src/window-commands.c: (window_cmd_edit_personal_data): + + Make PDM dialogue a singleton. + +2003-11-26 Christian Persch + + * embed/ephy-cookie-manager.c: (ephy_cookie_copy), + (ephy_cookie_manager_remove_cookie): + * embed/ephy-cookie-manager.h: + * embed/ephy-password-manager.c: (ephy_password_info_copy): + * embed/ephy-password-manager.h: + * embed/ephy-permission-manager.c: (ephy_permission_info_copy): + * embed/ephy-permission-manager.h: + * embed/mozilla/mozilla-embed-single.cpp: + + Mark parameters "const" where appropriate. + + * src/pdm-dialog.c: (pdm_cmd_delete_selection), (compare_cookies), + (cookie_to_iter), (cookie_added_cb), (cookie_changed_cb), + (cookie_deleted_cb), (cookies_cleared_cb), + (pdm_dialog_fill_cookies_list), (pdm_dialog_fill_passwords_list), + (pdm_dialog_init): + + Make the cookies list auto-updating. + +2003-11-26 Marco Pesenti Gritti + + * data/ui/epiphany-ui.xml: + * src/ephy-window.c: (update_edit_actions_sensitivity), + (edit_menu_show_cb), (show_embed_popup): + + Restore clipboard actions in input context menu. + Show it only if mozilla is recent enough though. + +2003-11-26 Marco Pesenti Gritti + + * embed/downloader-view.c: (update_download_row), + (download_changed_cb), (downloader_view_add_download), + (downloader_view_build_ui): + * lib/widgets/ephy-cell-renderer-progress.c: + + Try out a different layout for downloads rows. + Make the file column expand. + +2003-11-25 Christian Persch + + * embed/ephy-cookie-manager.c: (ephy_cookie_manager_base_init): + * embed/ephy-cookie-manager.h: + * embed/ephy-permission-manager.c: + (ephy_permission_manager_base_init): + * embed/mozilla/EphySingle.cpp: + + Change signal names to be unique for interfaces on the same object. + +2003-11-25 Christian Persch + + * embed/ephy-cookie-manager.c: (ephy_cookie_manager_base_init): + + Fix marshaller type. + +2003-11-25 Christian Persch + + * embed/mozilla/EphySingle.cpp: + + Make it compile with mozilla < 1.5. + +2003-11-24 Xan Lopez + + * embed/downloader-view.c: (download_changed_cb): + + Use gnome_vfs_format_file_size_for_display to display size, put + Unknown when size/remaining time are unknown instead of weird + numbers. + +2003-11-24 Christian Persch + + * embed/ephy-permission-manager.h: + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphySingle.cpp: + * embed/mozilla/EphySingle.h: + * embed/mozilla/Makefile.am: + * embed/mozilla/mozilla-embed-single.cpp: + * src/ephy-encoding-dialog.c: (sync_embed_encoding), + (automatic_toggled_cb), (ephy_encoding_dialog_init): + + Implemented cookie and permissions observer used to actually + send notifications on EphyCookieManager and EphyPermissionManager + signals. + +2003-11-24 Christian Persch + + * embed/mozilla/nsUnicharUtils.cpp: + * embed/mozilla/nsUnicharUtils.h: + + Re-sync with mozilla. + +2003-11-24 Christian Persch + + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/EphyEventListener.cpp: + * embed/mozilla/ExternalProtocolHandlers.cpp: + * embed/mozilla/ExternalProtocolHandlers.h: + * embed/mozilla/ExternalProtocolService.cpp: + * embed/mozilla/FilePicker.cpp: + * embed/mozilla/GlobalHistory.cpp: + * embed/mozilla/PrintingPromptService.cpp: + * embed/mozilla/mozilla-notifiers.cpp: + + Get rid of NS_INIT_ISUPPORTS() macros in constructors; + it's not been needed since mozilla 1.3. + +2003-11-24 Marco Pesenti Gritti + + * embed/mozilla/MozRegisterComponents.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + + No need to handle mailto registration separately. + +2003-11-24 Christian Persch + + * data/glade/epiphany.glade: + + Delete the obsolete mime-ask-action dialogue from glade file. + +2003-11-24 Christian Persch + + * src/pdm-dialog.c: (pdm_dialog_get_type), (pdm_dialog_class_init), + (action_treeview_selection_changed_cb), (pdm_cmd_delete_selection), + (pdm_key_pressed_cb), (pdm_dialog_remove_button_clicked_cb), + (setup_action), (cookies_treeview_selection_changed_cb), + (pdm_dialog_cookies_construct), (cookie_added_cb), + (cookie_changed_cb), (cookie_deleted_cb), (cookies_cleared_cb), + (pdm_dialog_fill_cookies_list), (pdm_dialog_cookies_destruct), + (pdm_dialog_cookie_add), (pdm_dialog_cookie_remove), + (pdm_dialog_passwords_construct), (password_added_cb), + (password_changed_cb), (password_deleted_cb), + (passwords_cleared_cb), (pdm_dialog_fill_passwords_list), + (pdm_dialog_passwords_destruct), (pdm_dialog_password_add), + (pdm_dialog_password_remove), (sync_notebook_tab), + (pdm_dialog_init), (pdm_dialog_finalize), + (show_cookies_properties), + (pdm_dialog_cookies_properties_button_clicked_cb), + (pdm_dialog_response_cb), (pdm_dialog_new): + + Refactored pdm dialogue code. Use new boxed cookie/password info + types. Hook up to the single signals to get notified on password/ + cookie updates [actual updating code to be written :)]. + +2003-11-24 Christian Persch + + * data/Makefile.am: + + Added $(mimepermission_DATA) to EXTRA_DIST. + +2003-11-24 Christian Persch + + * doc/reference/Makefile.am: + + Added egg tray icon headers to IGNORE_HFILES. + +2003-11-24 Christian Persch + + * data/Makefile.am: + + Fix typo in EXTRADIST: s/check_mime/check-mime/ + +2003-11-24 Christian Persch + + * lib/Makefile.am: + + Remove ephy-types.h from Makefile.am, it's long gone. + +2003-11-24 Christian Persch + + * doc/reference/epiphany-docs.sgml: + + s/[Insert name here]/Epiphany/ + +2003-11-24 David Bordoley + + * help/C/epiphany.xml: + + s/window/tab in the open link in new tab section. + +2003-11-24 David Bordoley + + * help/C/epiphany.xml: + + A big chuck of doc neatening and organization + plus some new stuff... + + patch from Piers Cornwell + aka spark, with a few quick fixes from me. + +2003-11-24 Marco Pesenti Gritti + + * embed/mozilla/BaseProtocolContentHandler.cpp: + * embed/mozilla/BaseProtocolContentHandler.h: + * embed/mozilla/BaseProtocolHandler.cpp: + * embed/mozilla/BaseProtocolHandler.h: + + Remove. + + * embed/mozilla/ExternalProtocolHandlers.cpp: + * embed/mozilla/ExternalProtocolHandlers.h: + + Merge base implementations here. No need + of using 200 files for a work around of + mozilla problems ;) + + * embed/mozilla/Makefile.am: + * embed/mozilla/MozRegisterComponents.cpp: + + Use ftp CID directly from mozilla headers + instead of doing a copy of it in ours. + +2003-11-23 Christian Persch + + * src/bookmarks/ephy-bookmarks-export.c: + (ephy_bookmarks_export_rdf): + + When exporting to RDF, write all bookmarks, not just every + second bookmark. + +2003-11-23 Marco Pesenti Gritti + + * embed/mozilla/ExternalProtocolService.cpp: + * embed/mozilla/MozRegisterComponents.cpp: + + Do not build our externla protocol service + with mozilla 1.6. It has his own and api is changed. + +2003-11-23 Xan Lopez + + * src/prefs-dialog.c: (get_download_button_label), + (download_path_response_cb), + (prefs_download_path_button_clicked_cb): + + Use EphyFileChooser API, convert download path to UTF8. + +2003-11-23 Christian Persch + + * embed/mozilla/mozilla-embed-single.cpp: + + Make it compile with mozilla 1.4 and 1.4.1 again. + +2003-11-23 Marco Pesenti Gritti + + * embed/Makefile.am: + * embed/downloader-view.c: (status_icon_activated), + (show_status_icon), (downloader_view_init), + (downloader_view_finalize), (download_dialog_delete_cb): + * lib/egg/Makefile.am: + * lib/egg/update-from-egg.sh: + + Very basic tray icon for downloader. + +2003-11-22 Marco Pesenti Gritti + + * data/art/Makefile.am: + * data/art/epiphany-bookmark-page.png: + * lib/ephy-stock-icons.c: (ephy_stock_icons_init): + * lib/ephy-stock-icons.h: + * src/bookmarks/ephy-new-bookmark.c: (ephy_new_bookmark_construct): + * src/ephy-history-window.c: + * src/ephy-window.c: + + Use icon theme icon for add bookmark + +2003-11-22 Marco Pesenti Gritti + + * doc/reference-howto.txt: + + Add a tip on how to clean docs. + + * doc/reference/Makefile.am: + * doc/reference/epiphany-docs.sgml: + * doc/reference/epiphany.types: + * doc/reference/tmpl/ephy-cookie-manager.sgml: + * doc/reference/tmpl/ephy-embed-factory.sgml: + * doc/reference/tmpl/ephy-embed-single.sgml: + * doc/reference/tmpl/ephy-password-manager.sgml: + * doc/reference/tmpl/ephy-permission-manager.sgml: + + Add some files chpe documented to the build. + + * embed/ephy-embed-factory.c: + + Document + +2003-11-22 Marco Pesenti Gritti + + * src/ephy-location-action.c: (sync_editable), (connect_proxy), + (ephy_location_action_set_property), + (ephy_location_action_get_property), + (ephy_location_action_class_init), (ephy_location_action_init): + * src/toolbar.c: (update_location_editable), + (arbitrary_url_notifier), (toolbar_setup_actions), + (toolbar_set_window), (toolbar_finalize): + + Implement arbitrary url lockdown pref + +2003-11-22 Marco Pesenti Gritti + + * doc/reference/Makefile.am: + * embed/Makefile.am: + * embed/ephy-embed-persist.c: (ephy_embed_persist_save): + * embed/ephy-embed-persist.h: + * embed/ephy-embed-popup-control.c: (save_url), + (embed_popup_set_image_as_background_cmd): + * embed/ephy-embed-shell.c: (ephy_embed_shell_get_embed_single): + * embed/ephy-embed.c: + * embed/ephy-embed.h: + * embed/ephy-favicon-cache.c: (ephy_favicon_cache_download): + * embed/mozilla/mozilla-embed-persist.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + * embed/mozilla/mozilla-embed-single.h: + * embed/mozilla/mozilla-embed.cpp: + * src/Makefile.am: + * src/ephy-nautilus-view.c: (ephy_nautilus_view_instance_init): + * src/ephy-tab.c: (ephy_tab_init): + * src/popup-commands.c: (save_property_url), + (popup_cmd_set_image_as_background): + * src/window-commands.c: (window_cmd_file_save_as), + (save_temp_source): + + Add a factory to create embed objects and use it. + Deal with dependency of mozilla-embed and mozilla-embed-persist + on mozilla-embed-single internally. + +2003-11-22 Christian Persch + + * embed/mozilla/mozilla-embed-single.cpp: + + Fix cookie deletion; use do_GetService instead of + do_CreateInstance. + +2003-11-22 Christian Persch + + * embed/ephy-embed-single.c: (ephy_embed_single_class_init), + (ephy_embed_single_load_proxy_autoconf): + + Added API documentation. + +2003-11-21 Christian Persch + + * embed/Makefile.am: + * embed/ephy-cookie-manager.c: (ephy_cookie_get_type), + (ephy_cookie_new), (ephy_cookie_copy), (ephy_cookie_free), + (ephy_cookie_manager_get_type), (ephy_cookie_manager_base_init), + (ephy_cookie_manager_list_cookies), + (ephy_cookie_manager_remove_cookie), (ephy_cookie_manager_clear): + * embed/ephy-cookie-manager.h: + * embed/ephy-embed-single.c: (ephy_embed_single_get_type), + (ephy_embed_single_class_init), (ephy_embed_single_clear_cache), + (ephy_embed_single_set_offline_mode), + (ephy_embed_single_load_proxy_autoconf), + (ephy_embed_single_get_font_list): + * embed/ephy-embed-single.h: + * embed/ephy-password-manager.c: (ephy_password_info_get_type), + (ephy_password_info_new), (ephy_password_info_copy), + (ephy_password_info_free), (ephy_password_manager_get_type), + (ephy_password_manager_add), (ephy_password_manager_remove), + (ephy_password_manager_list): + * embed/ephy-password-manager.h: + * embed/ephy-permission-manager.c: (ephy_permission_info_get_type), + (ephy_permission_info_new), (ephy_permission_info_copy), + (ephy_permission_info_free), (ephy_permission_manager_get_type), + (ephy_permission_manager_base_init), (ephy_permission_manager_add), + (ephy_permission_manager_remove), (ephy_permission_manager_clear), + (ephy_permission_manager_test), (ephy_permission_manager_list): + * embed/ephy-permission-manager.h: + * embed/mozilla/mozilla-embed-single.cpp: + * embed/mozilla/mozilla-embed-single.h: + * embed/mozilla/mozilla-notifiers.cpp: + * src/Makefile.am: + * src/pdm-dialog.c: (pdm_dialog_get_type), (pdm_dialog_cookie_add), + (pdm_dialog_password_add), (pdm_dialog_cookie_remove), + (pdm_dialog_password_remove), (pdm_dialog_cookies_free), + (pdm_dialog_passwords_free), (pdm_dialog_init), (pdm_dialog_new), + (show_cookies_properties), + (pdm_dialog_cookies_properties_button_clicked_cb): + * src/pdm-dialog.h: + + New interfaces: EphyCookieManager, EphyPermissionManager, + EphyPasswordManager. + Port all callers to new interfaces. + Change linking order to make it link. + + Only set autoconf proxy url if it's non-empty. + +2003-11-21 Marco Pesenti Gritti + + * lib/ephy-stock-icons.c: (ephy_stock_icons_init): + * lib/ephy-stock-icons.h: + + Pass a source based on filename instead of pixbuf + for our own icon set, so that they are created only + when necessary. + Add code to insert icon theme icons in our icon set + and use icon theme icons when possible. + + * src/ephy-window.c: + + Update icons id. + +2003-11-20 Marco Pesenti Gritti + + * data/glade/prefs-dialog.glade: + + Hide Open downloads pref. Since both behaviors are available + maybe it's not necessary at all. Also I feel it confusing to + have only one of the cases respecting it. I guess better + to wait feedback on releases before making a call on this. + + * src/ephy-window.c: + + No more need of ... on dowload context menu + +2003-11-20 Marco Pesenti Gritti + + * embed/ephy-embed-single.c: (ephy_embed_single_class_init): + * embed/ephy-embed-single.h: + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/EphyHeaderSniffer.h: + * lib/ephy-marshal.list: + + Implement an handle_content signal to allow to write + plugins to support external download managers. + +2003-11-20 Marco Pesenti Gritti + + * embed/ephy-command-manager.c: (ephy_command_manager_base_init): + * embed/ephy-embed-persist.c: (ephy_embed_persist_class_init): + * embed/ephy-embed.c: (ephy_embed_base_init): + + Not necessary to store signal id in an array for interfaces. + +2003-11-20 Marco Pesenti Gritti + + * src/ephy-session.c: (ephy_session_save): + + hrm misplaced free in last commit + +2003-11-20 Marco Pesenti Gritti + + * src/ephy-session.c: (ephy_session_save): + + Make xml saving low disk safe. + +2003-11-20 Marco Pesenti Gritti + + * src/ephy-window.c: (show_embed_popup): + + Fix unrefing of context menu event + +2003-11-20 Marco Pesenti Gritti + + * embed/mozilla/mozilla-embed.cpp: + + If it's not possible to go up fails do not assert, just fail + silently. + +2003-11-19 Marco Pesenti Gritti + + * Makefile.am: + * doc/reference/Makefile.am: + * doc/reference/epiphany-docs.sgml: + * doc/reference/tmpl/config.sgml: + + Do not document config.h ;) + Reenable docs build. + +2003-11-19 Marco Pesenti Gritti + + * doc/reference/.cvsignore: + * doc/reference/Makefile.am: + * doc/reference/epiphany-docs.sgml: + * doc/reference/epiphany.types: + * doc/reference/tmpl/config.sgml: + * doc/reference/tmpl/ephy-session.sgml: + * doc/reference/tmpl/ephy-shell.sgml: + + Complete docs base implementation. Should work + more or less. + + * embed/Makefile.am: + * lib/Makefile.am: + * src/Makefile.am: + + Cleanup a bit libs build and use a static lib + also for the src/ code so that we can use it + for documents. + + * src/ephy-nautilus-view.c: + + Bad chpe forgot to modify func signature. + +2003-11-19 Christian Persch + + * embed/downloader-view.h: + * embed/ephy-download.h: + * embed/ephy-embed-dialog.h: + * embed/ephy-embed-event.h: + * embed/ephy-embed-persist.h: + * embed/ephy-embed-popup-control.h: + * embed/ephy-embed-shell.h: + * embed/ephy-embed-single.h: + * embed/ephy-encodings.h: + * embed/ephy-favicon-cache.h: + * embed/ephy-history.h: + * embed/find-dialog.h: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/GtkNSSKeyPairDialogs.cpp: + * embed/mozilla/mozilla-download.h: + * embed/mozilla/mozilla-embed-persist.h: + * embed/mozilla/mozilla-embed-single.h: + * embed/print-dialog.h: + * lib/egg/egg-editable-toolbar.h: + * lib/egg/egg-toolbar-editor.h: + * lib/egg/egg-toolbars-model.h: + * lib/ephy-debug.h: + * lib/ephy-dialog.h: + * lib/ephy-dnd.h: + * lib/ephy-file-chooser.h: + * lib/ephy-node-db.h: + * lib/ephy-node-filter.h: + * lib/ephy-node.h: + * lib/ephy-prefs.h: + * lib/ephy-state.h: + * lib/ephy-string.h: + * lib/ephy-zoom.h: + * lib/widgets/ephy-arrow-toolbutton.h: + * lib/widgets/ephy-cell-renderer-progress.h: + * lib/widgets/ephy-ellipsizing-label.h: + * lib/widgets/ephy-location-entry.h: + * lib/widgets/ephy-node-view.h: + * lib/widgets/ephy-search-entry.h: + * lib/widgets/ephy-spinner.h: + * lib/widgets/ephy-tree-model-node.h: + * lib/widgets/ephy-tree-model-sort.h: + * lib/widgets/ephy-zoom-action.h: + * lib/widgets/ephy-zoom-control.h: + * src/bookmarks/ephy-bookmark-action.h: + * src/bookmarks/ephy-bookmark-properties.h: + * src/bookmarks/ephy-bookmarks-editor.h: + * src/bookmarks/ephy-bookmarks-menu.h: + * src/bookmarks/ephy-bookmarks.h: + * src/bookmarks/ephy-new-bookmark.h: + * src/bookmarks/ephy-topic-action.h: + * src/bookmarks/ephy-topics-selector.h: + * src/ephy-automation.h: + * src/ephy-completion-model.h: + * src/ephy-encoding-dialog.h: + * src/ephy-encoding-menu.h: + * src/ephy-extensions-manager.h: + * src/ephy-favicon-action.h: + * src/ephy-favorites-menu.h: + * src/ephy-go-action.h: + * src/ephy-history-window.h: + * src/ephy-location-action.h: + * src/ephy-nautilus-view.h: + * src/ephy-navigation-action.h: + * src/ephy-notebook.h: + * src/ephy-session.h: + * src/ephy-shell.h: + * src/ephy-tab.h: + * src/ephy-tabs-menu.h: + * src/ephy-toolbars-model.h: + * src/ephy-window.h: + * src/language-editor.h: + * src/pdm-dialog.h: + * src/ppview-toolbar.h: + * src/prefs-dialog.h: + * src/statusbar.h: + * src/toolbar.h: + + Mark all EphyFooPrivate structs as private for gtk-doc. + +2003-11-19 Christian Persch + + * embed/ephy-embed.c: + + Forgot to remove signal IDs from enum when I removed the signals. + +2003-11-19 Christian Persch + + * lib/ephy-dialog.c: (ephy_dialog_set_parent): + * src/ephy-encoding-dialog.c: (sync_parent_window_cb), + (ephy_encoding_dialog_init), (ephy_encoding_dialog_class_init), + (ephy_encoding_dialog_new): + + Make encodings dialogue transient. + +2003-11-19 Christian Persch + + * embed/ephy-embed.c: (ephy_embed_base_init), + (ephy_embed_get_location), (ephy_embed_get_link_message), + (ephy_embed_get_js_status): + * embed/ephy-embed.h: + * embed/mozilla/mozilla-embed.cpp: + * src/ephy-nautilus-view.c: (ephy_nautilus_view_instance_init), + (gnv_embed_link_message_cb): + * src/ephy-nautilus-view.h: + * src/ephy-tab.c: (ephy_tab_set_link_message), + (ephy_tab_link_message_cb), (ephy_tab_init): + + Re-use some more signals from GtkMozEmbed; fix getter_Copies usage in + mozilla-embed.cpp. Fixes bug #127335. + +2003-11-18 Marco Pesenti Gritti + + * Makefile.am: + * configure.in: + * doc/Makefile.am: + * doc/reference/Makefile.am: + * doc/reference/epiphany-docs.sgml: + * doc/reference/epiphany.types: + + Begin of gtk-doc support + +2003-11-17 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_import): + + Api fix + +2003-11-17 Christian Persch + + * embed/mozilla/GtkNSSClientAuthDialogs.cpp: + * embed/mozilla/GtkNSSClientAuthDialogs.h: + * embed/mozilla/Makefile.am: + * embed/mozilla/MozRegisterComponents.cpp: + * lib/ephy-state.c: (ephy_state_add_paned), (expander_activate_cb), + (ephy_state_add_expander): + * lib/ephy-state.h: + + Ported the Crispin's GtkNSSClientAuthDialogs from galeon. + Changes: + - use GtkExpander instead of the CDDB disclosure thingy + - persist state in ephy-state + - assing a mnemonic to expander label. + +2003-11-17 Marco Pesenti Gritti + + * embed/mozilla/EphyBrowser.cpp: + + Pass WebPageDescriptor, not CurrentDescriptor. + This way we dont refetch page on post. + +2003-11-17 Marco Pesenti Gritti + + * configure.in: + * embed/mozilla/GtkNSSDialogs.cpp: + * embed/mozilla/GtkNSSKeyPairDialogs.cpp: + + Resync with galeon. + + * embed/mozilla/mozilla-embed-single.cpp: + + Header name change + +2003-11-16 Marco Pesenti Gritti + + * src/ephy-shell.c: (toolwindow_show_cb), (toolwindow_hide_cb), + (ephy_shell_get_bookmarks_editor): + + Do not access session from priv struct but use get_session, + so it's properly initialized-> Fix epiphany -b crash + +2003-11-16 Marco Pesenti Gritti + + * src/ephy-session.c: (get_session_filename), (ephy_session_init), + (ephy_session_finalize): + * src/ephy-shell.c: (save_yourself_cb), (die_cb), + (gnome_session_init), (ephy_shell_startup): + + Move gnome session code in the shell. + +2003-11-16 Xan Lopez + + * data/glade/prefs-dialog.glade: + * src/prefs-dialog.c: (prefs_dialog_finalize), + (get_download_button_label), (create_download_path_label), + (prefs_dialog_init), (prefs_language_more_button_clicked_cb), + (download_path_response_cb), + (prefs_download_path_button_clicked_cb): + + Implement UI for default download path and auto open downlads + prefs for the downloader. + +2003-11-15 Marco Pesenti Gritti + + * configure.in: + * embed/Makefile.am: + * embed/mozilla/Makefile.am: + * lib/Makefile.am: + * lib/widgets/Makefile.am: + * src/Makefile.am: + + Enable deprecates and werror only in maintainer mode + (in the way suggested by Jamesh). + +2003-11-14 Marco Pesenti Gritti + + * data/GNOME_Epiphany_Automation.server.in: + * data/GNOME_Epiphany_NautilusView.server.in: + + Use an unique factory for both interfaces. + + * data/ui/Makefile.am: + + Do not try to merge translations in nautilus xml. + + * src/ephy-nautilus-view.c: (disconnected_idle), + (control_disconnected_cb), (ephy_nautilus_view_instance_init), + (ephy_nautilus_view_finalize): + + Unref the view on control disconnected, not on finalize. + + * src/ephy-main.c: (main): + + Add a server mode argument, used internally by bonobo interface. + Free popt context only when no more necessary. + + * src/ephy-automation.c: + * src/ephy-automation.h: + * src/ephy-shell.c: (ephy_nautilus_view_new), + (ephy_automation_factory_cb), (ephy_automation_factory_new), + (ephy_shell_init), (path_from_command_line_arg), (open_urls), + (server_timeout), (ephy_shell_startup), (ephy_shell_finalize), + (ephy_shell_new_tab): + * src/ephy-shell.h: + + When running in server mode unref (and so exit) on a timeout. + + Expand args passed to the command line. + +2003-11-13 Marco Pesenti Gritti + + * embed/ephy-embed-shell.c: (ephy_embed_shell_get_embed_single): + * embed/mozilla/mozilla-embed-single.cpp: + * embed/mozilla/mozilla-embed-single.h: + * src/ephy-shell.h: + + Put back borked mozilla alert. + +2003-11-13 Marco Pesenti Gritti + + * src/ephy-shell.c: (ephy_shell_finalize): + + Looks like we need to unregister factory since + we initialized it by ourself. + +2003-11-13 Marco Pesenti Gritti + + * embed/mozilla/mozilla-notifiers.cpp: + * src/ephy-main.c: (main): + * src/ephy-shell.c: (ephy_shell_init), (ephy_shell_startup), + (ephy_shell_finalize), (ephy_shell_get_session), + (ephy_shell_get_extensions_manager): + * src/ephy-window.c: (ensure_default_icon), (ephy_window_init): + + Rework shell services initialization so that it happen either + on every instance, before the automation stuff is used, either + when they are requested. This appear to fix the crash with two + instances runned simultaneously. + (Christian I'm not quite sure this is ok for plugins manager, if + there are problems let me know.) + +2003-11-13 Marco Pesenti Gritti + + * idl/EphyAutomation.idl: + * src/ephy-automation.c: (ephy_automation_factory_cb), + (ephy_automation_factory_new), (impl_ephy_automation_loadurl): + * src/ephy-automation.h: + * src/ephy-main.c: (shell_weak_notify), (main): + * src/ephy-shell.c: (ephy_shell_error_quark), (ephy_shell_init), + (init_services), (open_urls), (ephy_shell_startup), + (ephy_shell_finalize), (ephy_shell_new): + * src/ephy-shell.h: + + First stab at reorganizing initialization. + Fix crashes when launching an epiphany instance while + another once is still not initialized completely. It still + doesnt open the second session correctly though. + +2003-11-12 Marco Pesenti Gritti + + * embed/mozilla/mozilla-embed-single.cpp: + * embed/mozilla/mozilla-embed.cpp: + + Silly typos, thanks crispin. + +2003-11-12 Christian Persch + + * src/window-commands.c: (toolbar_editor_response_cb): + + Link up toolbar editor help button. + +2003-11-11 Christian Persch + + * data/glade/epiphany.glade: + + Set initial visibility to false, fixes a warning when showing the + encodings dialogue. + +2003-11-11 Marco Pesenti Gritti + + * embed/ephy-embed-single.c: (ephy_embed_single_class_init): + * embed/ephy-embed-single.h: + * embed/mozilla/mozilla-embed-persist.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + * embed/mozilla/mozilla-embed.cpp: + * embed/mozilla/mozilla-embed.h: + * src/ephy-nautilus-view.c: (gnv_embed_new_window_cb): + * src/ephy-session.c: (write_ephy_window): + * src/ephy-shell.c: (ephy_shell_init): + * src/ephy-tab.c: (ephy_tab_size_to_cb): + * src/ephy-window.c: (translate_default_chrome): + + Build xul dialogs using GtkWindow+GtkMozEmbed. + Make src code simpler and fix a pair of bugs. + +2003-11-10 Christian Persch + + * data/glade/Makefile.am: + + And add it to Makefile.am too. + +2003-11-10 Christian Persch + + * data/glade/certificate-dialogs.glade: + + We really need the glade file from galeon too. + +2003-11-10 Christian Persch + + New extensions API. + + * Makefile.am: + * configure.in: + * lib/Makefile.am: + * lib/ephy-module-loader.c: (ephy_module_loader_get_type), + (ephy_module_loader_new), (ephy_module_loader_load), + (ephy_module_loader_unload), (ephy_module_loader_class_init), + (ephy_module_loader_init), (ephy_module_loader_finalize), + (ephy_module_loader_factory): + * lib/ephy-module-loader.h: + * plugins/.cvsignore: + * plugins/Makefile.am: + * plugins/sample/.cvsignore: + * plugins/sample/Makefile.am: + * plugins/sample/sample.c: + * src/Makefile.am: + * src/bookmarks/ephy-bookmarks-editor.c: (get_target_window): + * src/bookmarks/ephy-bookmarks.c: + * src/ephy-automation.c: (ephy_automation_factory), + (ephy_automation_factory_new), (impl_ephy_automation_loadurl), + (impl_ephy_automation_load_session), (ephy_automation_class_init): + * src/ephy-extension.c: (ephy_extension_get_type), + (ephy_extension_attach_window), (ephy_extension_detach_window): + * src/ephy-extension.h: + * src/ephy-extensions-manager.c: + (ephy_extensions_manager_get_type), + (ephy_extensions_manager_instantiate_extension), + (ephy_extensions_manager_load), (ephy_extensions_manager_load_dir), + (ephy_extensions_manager_add), (ephy_extensions_manager_init), + (ephy_extensions_manager_finalize), (impl_attach_window), + (impl_detach_window), (ephy_extensions_manager_iface_init), + (ephy_extensions_manager_class_init), + (ephy_extensions_manager_new): + * src/ephy-extensions-manager.h: + * src/ephy-history-window.c: (get_target_window): + * src/ephy-plugin.c: + * src/ephy-plugin.h: + * src/ephy-session.c: (ephy_session_get_type), + (get_session_filename), (session_delete), (net_stop_cb), + (tab_added_cb), (tab_removed_cb), (tabs_reordered_cb), + (impl_attach_window), (impl_detach_window), (save_yourself_cb), + (die_cb), (gnome_session_attach), (gnome_session_detach), + (ensure_session_directory), (ephy_session_init), + (ephy_session_dispose), (ephy_session_finalize), + (ephy_session_iface_init), (ephy_session_class_init), + (offer_to_resume), (ephy_session_autoresume), (ephy_session_close), + (write_tab), (write_window_geometry), (write_tool_window), + (write_ephy_window), (ephy_session_save), (parse_embed), + (ephy_session_load), (ephy_session_get_windows), + (ephy_session_add_window), (ephy_session_remove_window), + (ephy_session_get_active_window): + * src/ephy-session.h: + * src/ephy-shell.c: (ephy_shell_init), (ephy_shell_finalize), + (ephy_shell_get_session), (ephy_shell_get_extensions_manager), + (toolwindow_show_cb), (toolwindow_hide_cb): + * src/ephy-shell.h: + * src/ephy-window.c: (ephy_window_destroy), (ephy_window_init): + * src/prefs-dialog.c: (prefs_homepage_current_button_clicked_cb): + * src/session.c: + * src/session.h: + + Create a new extensions API. Make session an internal extension :) + Port callers to session API changes. + +2003-11-10 Xan Lopez + + * embed/mozilla/mozilla-embed-persist.cpp: + + Deja-vu. + +2003-11-10 Marco Pesenti Gritti + + * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_load): + + Fix compile warning. + + * src/ephy-completion-model.c: (init_text_col): + + Correct TEXT column get_value + +2003-11-10 Marco Pesenti Gritti + + * embed/mozilla/mozilla-embed.cpp: + + Remove a decl I forgot. + + * lib/egg/egg-editable-toolbar.c: (create_item_from_action), + (create_item), (drag_data_received_cb), (item_added_cb), + (egg_editable_toolbar_construct): + + Copy hack from gtk to make tooltips work. + +2003-11-10 Christian Persch + + * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_load): + * lib/egg/egg-toolbars-model.h: + * src/ephy-toolbars-model.c: (ephy_toolbars_model_set_bookmarks): + + Fix recovery from corrupted toolbar layout file. + +2003-11-10 Marco Pesenti Gritti + + * embed/mozilla/MozDownload.cpp: + + Do not disable conversion. Some pages was + saved as gz compressed. + +2003-11-09 Marco Pesenti Gritti + + * embed/ephy-embed.c: (ephy_embed_base_init): + * embed/ephy-embed.h: + * embed/mozilla/mozilla-embed.cpp: + * src/ephy-tab.c: (ephy_tab_init): + + Do not connect and reemit same signal for nothing. + Remove unused/expensive progress signal. + + * src/session.c: (session_save): + + Unlink session file when all windows are removed. + +2003-11-09 Marco Pesenti Gritti + + * embed/ephy-embed.h: + * idl/EphyAutomation.idl: + * src/ephy-automation.c: (impl_ephy_automation_loadurl), + (impl_ephy_automation_open_bookmarks_editor), + (ephy_automation_init), (ephy_automation_object_finalize), + (ephy_automation_class_init): + * src/ephy-completion-model.c: (root_child_removed_cb): + * src/ephy-main.c: (ephy_main_start): + * src/ephy-shell.c: (ephy_shell_get_active_window), + (toolwindow_show_cb), (toolwindow_hide_cb), + (ephy_shell_get_bookmarks_editor), (ephy_shell_get_history_window): + * src/ephy-shell.h: + * src/ephy-tab.c: (ephy_tab_net_state_cb), (ephy_tab_size_to_cb): + * src/ephy-window.c: (remove_from_session), (ephy_window_init): + * src/session.c: (session_autoresume), (session_close), + (session_dispose), (save_window_geometry), (save_tool_window), + (save_ephy_window), (session_save), (session_load), + (session_get_windows), (net_stop_cb), (tab_added_cb), + (tab_removed_cb), (tabs_reordered_cb), (session_add_window), + (session_remove_window), (save_yourself_cb), (session_die_cb), + (gnome_session_init), (session_init): + * src/session.h: + * src/window-commands.c: (window_cmd_go_bookmarks), + (window_cmd_go_history): + + Cleanup session. Persist also history and bookmarks. + +2003-11-09 Christian Persch + + * src/window-commands.c: (window_cmd_help_about): + + Don't unref the icon theme, we don't own it. + +2003-11-09 Marco Pesenti Gritti + + * embed/ephy-history.c: (ephy_history_save): + + Do not save All node + +2003-11-08 Marco Pesenti Gritti + + * embed/mozilla/mozilla-embed-persist.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + * embed/mozilla/mozilla-embed.cpp: + + Remove decls from the top + +2003-11-08 Marco Pesenti Gritti + + * lib/widgets/ephy-tree-model-node.c: + (ephy_tree_model_node_get_flags): + * src/ephy-completion-model.c: (ephy_completion_model_get_flags): + + Pass ITEMS_PERSIST and LIST_ONLY to the models, the implementation + looks already ok with it to me. Hopefully not missing something ... + +2003-11-08 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarks-editor.c: + (ephy_bookmarks_editor_update_menu): + * src/ephy-history-window.c: (ephy_history_window_show), + (ephy_history_window_class_init), + (ephy_history_window_update_menu): + + Focus history entry on _show. + Do not try to update paste menu item using the wait + api, it can cause a crash on a timeout and anyway + it's incosistent what we do in main window. + +2003-11-08 Christian Persch + + * embed/ephy-favicon-cache.c: (ephy_favicon_cache_get_type), + (ephy_favicon_cache_finalize): + * embed/ephy-history.c: (ephy_history_save): + * lib/ephy-file-helpers.c: (ephy_file_switch_temp_file): + * lib/ephy-file-helpers.h: + * lib/ephy-node-db.c: (ephy_node_db_load_from_file), + (ephy_node_db_write_to_xml_valist), + (ephy_node_db_write_to_xml_safe): + * lib/ephy-node-db.h: + * lib/ephy-node.c: (write_parent), (ephy_node_write_to_xml): + * lib/ephy-node.h: + * lib/ephy-state.c: (ephy_states_save), (ensure_states): + * src/bookmarks/ephy-bookmarks-export.c: (write_topics_list), + (ephy_bookmarks_export_rdf): + * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_save): + + Port node db saving and RDF export to xml writer api. + +2003-11-07 Christian Persch + + * src/ephy-favicon-actio.c: (ephy_favicon_action_finalize): + + Fix mem leak. + +2003-11-07 Christian Persch + + * src/ephy-location-action.c: (ephy_location_action_finalize): + + Chain up to parent's finalize method. + +2003-11-07 Marco Pesenti Gritti + + * src/ephy-completion-model.c: (get_path_real), + (node_iter_from_node), (get_index_root), (root_child_removed_cb), + (root_child_added_cb), (root_child_changed_cb), + (ephy_completion_model_get_value), + (ephy_completion_model_get_iter), (ephy_completion_model_get_path), + (ephy_completion_model_iter_next), + (ephy_completion_model_iter_children), + (ephy_completion_model_iter_n_children), + (ephy_completion_model_iter_nth_child), + (ephy_completion_model_iter_parent): + + Rewrite the iteration part to take advantage of user_data2. Should + be faster and a bit cleaner. + +2003-11-06 Xan Lopez + + * embed/downloader-view.c: (download_changed_cb): + + Use kB, MB and GB for the total size of the files being downloaded. + Fixes #126387 + + * embed/mozilla/ContentHandler.cpp: + + Small cleanup. + +2003-11-06 Marco Pesenti Gritti + + * src/ephy-completion-model.c: (ephy_completion_model_iter_next): + + Handle correctly last bookmark case + +2003-11-06 Marco Pesenti Gritti + + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/ContentHandler.h: + + Small cleanups + +2003-11-06 Marco Pesenti Gritti + + * src/ephy-main.c: + * src/ephy-shell.c: + + More headers fixup. + + * src/window-commands.c: (window_cmd_help_about): + + Use gtk icon theme here too. + +2003-11-06 Marco Pesenti Gritti + + * embed/downloader-view.c: + * embed/ephy-embed-popup-control.c: + * embed/mozilla/ExternalProtocolService.cpp: + * embed/mozilla/FilePicker.cpp: + * embed/mozilla/GtkNSSDialogs.cpp: + * embed/mozilla/GtkNSSKeyPairDialogs.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + * embed/mozilla/mozilla-notifiers.cpp: + * lib/ephy-file-helpers.c: + * lib/widgets/ephy-search-entry.c: + + Change some more i18n inclusion and remove several + unused includes. + +2003-11-06 Marco Pesenti Gritti + + * data/epiphany.schemas.in: + + Correct download dir default. + + * embed/ephy-embed-shell.h: + * embed/ephy-embed-shell.c: (ephy_embed_shell_init), + (ephy_embed_shell_finalize), (ephy_embed_shell_get_encodings), + (load_mime_from_xml), (ephy_embed_shell_check_mime): + + Add check_mime api for permissions. + + * embed/mozilla/ContentHandler.cpp: + + First incomplete try at using it. + +2003-11-06 Marco Pesenti Gritti + + * data/Makefile.am: + * data/check-mime.py: + * data/mime-types-permissions.xml: + + Add a list of permissions for mime and a script + to update it (py hackers please forgive me). + I put only very obvious items in the safe list + for now. + +2003-11-05 Christian Persch + + * embed/downloader-view.c: + * embed/ephy-embed-popup-control.c: + * embed/ephy-encodings.c: + * embed/ephy-history.c: + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/FilePicker.cpp: + * lib/eel-gconf-extensions.c: + * lib/egg/egg-editable-toolbar.c: + * lib/ephy-file-helpers.c: + * lib/ephy-gui.c: + * lib/ephy-langs.c: + * lib/ephy-node.c: + * lib/ephy-zoom.h: + * lib/widgets/ephy-cell-renderer-progress.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-import.c: + * src/bookmarks/ephy-bookmarks-menu.c: + * src/bookmarks/ephy-bookmarks.c: + * src/bookmarks/ephy-new-bookmark.c: + * src/bookmarks/ephy-topic-action.c: + * src/ephy-encoding-dialog.c: + * src/ephy-encoding-menu.c: + * src/ephy-go-action.c: + * src/ephy-history-window.c: + * src/ephy-notebook.c: + * src/ephy-shell.c: + * src/ephy-tab.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/session.c: + * src/toolbar.c: + * src/window-commands.c: + + Use new glib gi18n.h instead of bonobo's bonobo-i18n.h. + +2003-11-05 Christian Persch + + * data/glade/print.glade: + * embed/print-dialog.c: (impl_show), (print_dialog_class_init), + (print_dialog_new), (print_dialog_new_with_parent), + (print_dialog_print), (print_dialog_preview), + (print_cancel_button_cb), (print_preview_button_cb): + + Only allow choosing "Selection" if there really is one. + + * lib/ephy-dialog.c: (impl_run): + + Use ephy_dialog_show() when running an EphyDialog. + +2003-11-05 Marco Pesenti Gritti + + * lib/ephy-gui.c: (ephy_gui_help): + * lib/ephy-gui.h: + + Remove unused func, bad xan + +2003-11-05 Christian Persch + + * embed/ephy-command-manager.c: + (ephy_command_manager_can_do_command): + * embed/ephy-command-manager.h: + * embed/mozilla/mozilla-embed.cpp: + * src/ephy-window.c: (edit_menu_show_cb): + + Renamed to get_command_state to can_do_command. + +2003-11-05 Marco Pesenti Gritti + + * embed/ephy-embed-prefs.h: + * embed/mozilla/mozilla-notifiers.cpp: + + Migrate font family too + +2003-11-05 Christian Persch + + * embed/Makefile.am: + * embed/ephy-command-manager.c: (ephy_command_manager_do_command), + (ephy_command_manager_get_command_state): + * embed/ephy-command-manager.h: + * embed/ephy-embed-event.c: (ephy_embed_event_get_type), + (ephy_embed_event_class_init), (ephy_embed_event_init), + (ephy_embed_event_finalize), (ephy_embed_event_new), + (ephy_embed_event_get_event_type), (ephy_embed_event_get_coords), + (ephy_embed_event_get_context), (ephy_embed_event_set_property): + * embed/ephy-embed-event.h: + * embed/ephy-embed-persist.c: (ephy_embed_persist_cancel): + * embed/ephy-embed-persist.h: + * embed/ephy-embed-popup-control.c: + (ephy_embed_popup_control_set_event), + (embed_popup_copy_location_cmd), (embed_popup_save_page_as_cmd), + (embed_popup_open_frame_cmd): + * embed/ephy-embed-single.c: (ephy_embed_single_get_type), + (ephy_embed_single_class_init), (ephy_embed_single_clear_cache), + (ephy_embed_single_set_offline_mode), + (ephy_embed_single_load_proxy_autoconf), + (ephy_embed_single_get_font_list), + (ephy_embed_single_list_cookies), + (ephy_embed_single_remove_cookies), + (ephy_embed_single_list_passwords), + (ephy_embed_single_remove_passwords), + (ephy_embed_single_free_cookies), + (ephy_embed_single_free_passwords): + * embed/ephy-embed-single.h: + * embed/ephy-embed-types.h: + * embed/ephy-embed.c: (ephy_embed_get_type), + (ephy_embed_base_init), (ephy_embed_new), (ephy_embed_load_url), + (ephy_embed_stop_load), (ephy_embed_can_go_back), + (ephy_embed_can_go_forward), (ephy_embed_can_go_up), + (ephy_embed_get_go_up_list), (ephy_embed_go_back), + (ephy_embed_go_forward), (ephy_embed_go_up), + (ephy_embed_get_title), (ephy_embed_get_location), + (ephy_embed_reload), (ephy_embed_zoom_set), (ephy_embed_zoom_get), + (ephy_embed_shistory_n_items), (ephy_embed_shistory_get_nth), + (ephy_embed_shistory_get_pos), (ephy_embed_shistory_go_nth), + (ephy_embed_get_security_level), (ephy_embed_find_set_properties), + (ephy_embed_find_next), (ephy_embed_activate), + (ephy_embed_set_encoding), (ephy_embed_get_encoding_info), + (ephy_embed_print), (ephy_embed_print_preview_close), + (ephy_embed_print_preview_n_pages), + (ephy_embed_print_preview_navigate): + * embed/ephy-embed.h: + * embed/ephy-history.c: + * embed/find-dialog.c: (find_dialog_go_next), + (find_dialog_go_prev): + * embed/mozilla/mozilla-embed-persist.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + * embed/mozilla/mozilla-embed.cpp: + * embed/mozilla/mozilla-embed.h: + * lib/Makefile.am: + * lib/ephy-state.c: + * lib/ephy-types.h: + * src/ephy-encoding-dialog.c: (sync_embed_cb), (activate_choice): + * src/ephy-encoding-menu.c: (update_encoding_menu_cb), + (encoding_activate_cb): + * src/ephy-favicon-action.c: (each_url_get_data_binder): + * src/ephy-nautilus-view.c: (gnv_embed_dom_mouse_click_cb), + (gnv_embed_context_menu_cb), (gnv_embed_title_cb), + (gnv_popup_cmd_frame_in_new_window), (gnv_zoomable_zoom_in_cb), + (gnv_zoomable_zoom_out_cb): + * src/ephy-navigation-action.c: (activate_up_menu_item_cb), + (setup_back_or_forward_menu), (setup_up_menu): + * src/ephy-tab.c: (ephy_tab_address_cb), + (ephy_tab_zoom_changed_cb), (ephy_tab_title_cb), + (ephy_tab_dom_mouse_click_cb), (ephy_tab_update_navigation_flags), + (ephy_tab_set_title): + * src/ephy-window.c: (edit_menu_show_cb), (sync_tab_security), + (show_embed_popup), (ephy_window_set_zoom): + * src/pdm-dialog.c: (pdm_dialog_init): + * src/popup-commands.c: (popup_cmd_frame_in_new_tab), + (popup_cmd_frame_in_new_window), (popup_cmd_open_frame): + * src/ppview-toolbar.c: (toolbar_update_sensitivity), + (toolbar_cmd_ppv_goto_last), (clamp_page_limits): + * src/prefs-dialog.c: (setup_font_menu), + (prefs_homepage_current_button_clicked_cb): + * src/session.c: (save_tab): + * src/window-commands.c: (window_cmd_file_send_to), + (window_cmd_file_bookmark_page), (window_cmd_view_page_source): + + Get rid of gresult type. Use return values instead of out-parameters + whereever possible, and port all callers. + +2003-11-04 Marco Pesenti Gritti + + * embed/ephy-embed-prefs.h: + + Better names for new font size keys + +2003-11-04 Marco Pesenti Gritti + + * lib/eel-gconf-extensions.c: (global_client_free), + (eel_gconf_client_get_global), (eel_gconf_handle_error), + (eel_gconf_set_string), (eel_gconf_is_default), + (eel_gconf_key_is_writable), (eel_gconf_monitor_add), + (eel_gconf_monitor_remove), (eel_gconf_preload_cache), + (eel_gconf_get_default_value), (eel_strcmp), (eel_str_is_equal), + (simple_value_is_equal), (eel_gconf_value_is_equal), + (eel_gconf_value_get_string_list), + (eel_gconf_value_set_string_list), (eel_gconf_set_float), + (eel_gconf_get_float): + * lib/eel-gconf-extensions.h: + + Resync with eel. + + * lib/ephy-prefs.h: + * lib/widgets/ephy-spinner.c: + * embed/ephy-embed-prefs.h: + * embed/mozilla/mozilla-notifiers.cpp: + + Migrate old font size settings. This will screw things + for 1.1 users, not much we can do about it now. + +2003-11-04 Marco Pesenti Gritti + + * embed/downloader-view.c: + * embed/mozilla/ExternalProtocolService.cpp: + * embed/mozilla/mozilla-embed-single.cpp: + * lib/widgets/ephy-spinner.c: + * src/bookmarks/ephy-bookmarks-editor.c: + * src/language-editor.c: + * src/session.c: + + Remove unused ephy-prefs includes + +2003-11-04 Xan Lopez + + * data/epiphany.schemas.in: + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/ContentHandler.h: + * lib/ephy-prefs.h: + + Rework ContentHandler to use the auto_open_downloads key. + +2003-11-04 Marco Pesenti Gritti + + * src/ephy-window.c: (edit_menu_show_cb): + + Fix sensitivity of Paste. Still not set for native + entries, I cant really see a way to do it without waiting and so + making the change visible which sucks. + +2003-11-04 Marco Pesenti Gritti + + * src/ephy-window.c: (edit_menu_show_cb), (edit_menu_hide_cb), + (init_menu_updaters), (setup_window): + + Yet another sensitivity update strategy. Set sensitivity + on menu show and reset it on menu hide, so that accellerators + ever work. + +2003-11-04 Marco Pesenti Gritti + + * src/ephy-window.c: (window_cmd_edit): + + update undo/redo sensitivity + +2003-11-04 David Adam Bordoley + + * data/ui/epiphany-ui.xml: + * src/window-commands.c: (window_cmd_edit_undo), + (window_cmd_edit_redo): + * src/window-commands.h: + + Menus for Undo/Redo + +2003-11-04 Marco Pesenti Gritti + + * data/ui/epiphany-ui.xml: + + Show only paste in the context menu, it's the only + one that works in mozilla. + + * embed/ephy-command-manager.c: + (ephy_command_manager_get_command_state): + * embed/ephy-command-manager.h: + + Rename the state api. + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/mozilla-embed.cpp: + + Implement state api. + + * src/ephy-window.c: (window_cmd_edit), (show_embed_popup): + + Update clipboard menus on activate. + +2003-11-03 Christian Persch + + * lib/ephy-marshal.list: + + Remove unused types. + + * embed/ephy-embed.c: (ephy_embed_base_init): + * lib/widgets/ephy-arrow-toolbutton.c: + (ephy_arrow_toolbutton_class_init): + * src/ephy-notebook.c: (ephy_notebook_class_init): + + Use g_cclosure_marshal_* instead of our own ephy_marshal_* + where there is a one. + + For signals returning a boolean, use the + g_signal_accumulator_true_handled accumulator. + +2003-11-02 Xan Lopez + + * data/epiphany.schemas.in: + + Remove the "show_details in downloader" schema. + + * embed/ephy-embed-popup-control.c: (save_url): + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/EphyHeaderSniffer.cpp: + * lib/ephy-prefs.h: + * src/popup-commands.c: (save_property_url): + + Implement the new downloading mechanism in CH, also rename + CONF_STATE_DOWNLOADING_DIR to CONF_STATE_DOWNLOAD_DIR. + +2003-11-02 Christian Persch + + * lib/ephy-dialog.c: (impl_run): + + Initialise the dialogue on run too. + +2003-11-02 Christian Persch + + * embed/mozilla/PrintingPromptService.cpp: (ShowPrintDialog): + + Adjust return value so that mozilla doesn't erreonously put up + a failure dialogue. + +2003-11-02 Christian Persch + + * embed/mozilla/PrintingPromptService.cpp: + * embed/print-dialog.c: (print_dialog_new), + (print_dialog_new_with_parent), (print_dialog_print), + (print_cancel_button_cb), (print_preview_button_cb): + + Don't unref the print dialogue twice when shown from + mozilla. + +2003-11-02 Christian Persch + + * embed/mozilla/mozilla-embed.cpp: (impl_print): + + Unset silent mode after printing, should fix bug #125984. + +2003-11-01 Christian Persch + + * embed/ephy-history.c: (ephy_history_save), (hosts_added_cb), + (hosts_removed_cb), (hosts_changed_cb), (pages_added_cb), + (pages_removed_cb), (pages_changed_cb), (ephy_history_init): + + Only save history db if there have been changes. Fixes bug #125973. + +2003-11-01 Christian Persch + + * embed/mozilla/FilePicker.cpp: + * lib/ephy-file-chooser.c: (current_folder_changed_cb), + (ephy_file_chooser_init), (ephy_file_chooser_set_persist_key), + (ephy_file_chooser_get_persist_key), + (ephy_file_chooser_get_property), (ephy_file_chooser_class_init), + (ephy_file_chooser_new): + * lib/ephy-file-chooser.h: + + Don't set the persist key on object construction time. + Fixes bug #125589. + +2003-10-31 Christian Persch + + * embed/mozilla/MozillaPrivate.cpp: + * embed/mozilla/MozillaPrivate.h: + * embed/mozilla/PrintingPromptService.cpp: + + Correctly set the embed for the print dialogue. + +2003-10-31 Marco Pesenti Gritti + + * embed/mozilla/ContentHandler.cpp: + * lib/ephy-file-helpers.c: + * lib/ephy-file-helpers.h: + + Use gnomevfs helper to open applications, drop our own. + +2003-10-31 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (set_drag_cursor): + * lib/egg/egg-toolbar-editor.c: (set_drag_cursor): + + Set the cursor hotspot to something sensible. All bugs + seem to be gone here, feel free to report more ;) + +2003-10-31 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb): + + When changing toolbar unhighlight the old one, not the new + +2003-10-30 Christian Persch + + * embed/mozilla/mozilla-embed-single.cpp: (getUILang): + * configure.in: + + Yet another mozilla API change. + +2003-10-30 Marco Pesenti Gritti + + * embed/mozilla/FilePicker.cpp: + + Do not require a parent window + +2003-10-30 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (drag_data_received_cb): + + Fix creation of special drag types items + +2003-10-30 Marco Pesenti Gritti + + * lib/ephy-dnd.c: (add_one_netscape_url), (add_one_uri), + (add_one_topic): + * lib/ephy-dnd.h: + * lib/widgets/ephy-tree-model-sort.c: + (each_property_get_data_binder): + * src/ephy-favicon-action.c: (each_url_get_data_binder): + + Add a title param to dnd iterator and remove unused screen + location params. + +2003-10-29 Christian Persch + + * embed/ephy-history.c: (ephy_history_add_host), + (ephy_history_get_host): + * embed/ephy-history.h: + + Add public function to get a host node from a page url. + + * src/ephy-tab.c: (address_has_web_scheme), (ephy_tab_address_cb), + (ephy_tab_zoom_changed_cb), (open_link_in_new_tab), + (ephy_tab_init): + + Persist zoom settings per host. + +2003-10-29 Soren Sandmann + + * lib/egg/egg-editable-toolbar.c: (drag_data_received_cb), + (free_dragged_item), (toolbar_drag_drop_cb), + (toolbar_drag_motion_cb), (toolbar_drag_leave_cb), + (toolbar_added_cb), (item_removed_cb): + + Make it use new api and make the highlighting a good deal + smoother. + +2003-10-29 Marco Pesenti Gritti + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/EventContext.cpp: + + We cant cache mDOMDocument, it changes for + every document loaded. + Remove some unused methods from definition. + +2003-10-29 Marco Pesenti Gritti + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + + Make some vars private, remove an unused one. + + * embed/mozilla/EventContext.cpp: + + Use the content dom document to determine + is_framed_page. + +2003-10-29 Xan Lopez + + * lib/ephy-prefs.h: + + Forgot this. + +2003-10-29 Xan Lopez + + * embed/downloader-view.c: (downloader_view_remove_download): + + Implement smart selection in the downloader view. + + * data/epiphany.schemas.in: + * embed/ephy-embed-popup-control.c: + (embed_popup_download_link_cmd): + * embed/mozilla/EphyHeaderSniffer.cpp: + * lib/ephy-prefs.h: + * src/popup-commands.c: (popup_cmd_download_link): + + Make persist downloads store the files in the download dir + automatically without asking the user (key only accessible via + gconf atm). CH downloads still need fixing. + +2003-10-28 Christian Persch + + * src/prefs-dialog.c: (sort_detectors), (create_optionmenu), + (prefs_dialog_init): + + Always list "Off" as first item in the list of autodetectors. + Fixes bug #125723. + +2003-10-28 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_import): + + Unref the store once added to the combo. + +2003-10-28 Marco Pesenti Gritti + + * data/Makefile.am: + + Build nautilus server only when the view is enabled + +2003-10-28 Christian Persch + + * embed/mozilla/ContentHandler.cpp: + (MimeAskActionDialog::MimeAskActionDialog): + + Add sanity check. + +2003-10-28 Marco Pesenti Gritti + + * 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. + +2003-10-27 Marco Pesenti Gritti + + * embed/mozilla/EphyBrowser.cpp: + + Fix page cloning, I was query descriptors interface + on webBrowser instead of docshell. + +2003-10-27 Marco Pesenti Gritti + + * embed/mozilla/EphyBrowser.cpp: + + We need to force the encoding to be able + to unset it. + +2003-10-27 Christian Persch + + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/EphyHeaderSniffer.h: + + Implement filechooser for ASK_DESTINATION. + +2003-10-27 Marco Pesenti Gritti + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/mozilla-embed.cpp: + + Solving the wrapper mess THE END + + An about:blank document is created syncronously + on _init, which means there are no more race conditions ! + Mozilla api is CRACK. + +2003-10-27 Marco Pesenti Gritti + + * embed/mozilla/EphyBrowser.cpp: + * embed/mozilla/EphyBrowser.h: + * embed/mozilla/EphyWrapper.cpp: + * embed/mozilla/EphyWrapper.h: + * embed/mozilla/EventContext.cpp: + * embed/mozilla/EventContext.h: + * embed/mozilla/Makefile.am: + * embed/mozilla/mozilla-embed-persist.cpp: + * embed/mozilla/mozilla-embed.cpp: + * embed/mozilla/mozilla-embed.h: + + Solving the wrapper mess Episode 3. + Rename to EphyBrowser and add sanity checks. + GtkMozEmbed initialize the browser on realize, that + means until that we shouldnt use most of the EphyBrowser + methods. I'm quite sure there are not such cases in + current implementation, otherwise we would have had + problems also before. Though better avoid problems + in the future. + +2003-10-27 Marco Pesenti Gritti + + * embed/mozilla/EphyWrapper.cpp: + * embed/mozilla/EphyWrapper.h: + * embed/mozilla/mozilla-embed.cpp: + + Solving the wrapper mess Episode 2. + + Create EphyWrapper on _init. Initialize it + on realize. Initialize the document part of it + on state changed (mozilla is full of hacks like this, + wouldnt have it be simpler to create an event ?;). + +2003-10-27 Marco Pesenti Gritti + + * embed/ephy-embed.c: + * embed/ephy-embed.h: + * embed/mozilla/EphyWrapper.cpp: + * embed/mozilla/EphyWrapper.h: + * embed/mozilla/EventContext.cpp: + * embed/mozilla/mozilla-embed-persist.cpp: + * embed/mozilla/mozilla-embed.cpp: + + Solving the wrapper mess Episode 1. + + Cleanup EphyWrapper to use higher level apis. + Do not set docshell history explicitly, it seem + to pickup the registered one nicely. + +2003-10-27 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (egg_editable_toolbar_set_fixed): + + Sink after ref + +2003-10-27 Marco Pesenti Gritti + + * src/ephy-nautilus-view.c: (gnv_embed_dom_mouse_click_cb), + (gnv_popup_cmd_new_window), (gnv_popup_cmd_image_in_new_window), + (gnv_popup_cmd_frame_in_new_window): + + Sync with nautilus api + +2003-10-27 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (create_dock), (set_fixed_style), + (unset_fixed_style), (toolbar_changed_cb), (unparent_fixed), + (update_fixed), (toolbar_removed_cb), (toolbars_clean), + (egg_editable_toolbar_construct), (egg_editable_toolbar_init), + (egg_editable_toolbar_finalize), (egg_editable_toolbar_set_fixed): + * lib/egg/egg-editable-toolbar.h: + * src/toolbar.c: (toolbar_style_sync), (create_spinner), + (toolbar_init): + + Fixup spinner when resetting the toolbar model. + Update spinner on toolbar style change. + Fix a typo in toolbars creation that wa causing fs toolbar + to be hidden. + +2003-10-26 Christian Persch + + * src/toolbar.c: (toolbar_init), (toolbar_finalize): + + Fix refounting of the spinner. + +2003-10-26 Christian Persch + + * lib/ephy-file-chooser.c: (current_folder_changed_cb), + (ephy_file_chooser_set_persist_key): + + Convert filenames from/to UTF-8 when persisting the directory. + +2003-10-26 Christian Persch + + * src/window-commands.c: (open_response_cb): + + Really used the converted string [in UTF-8] instead of + the directly using filename. + +2003-10-26 Christian Persch + + * src/bookmarks/ephy-bookmarks-editor.c: + (import_dialog_response_cb): + + One set of buttons is enough. + +2003-10-26 Christian Persch + + 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. + +2003-10-26 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb): + + Resync api + +2003-10-25 Christian Persch + + * data/default-prefs.js: + + Use "" instead of null, the new mozilla prefs parser doesn't + recognise null and aborts. Thanks to Crispin for alerting me + to this. + +2003-10-25 Christian Persch + + * data/default-prefs.js: + + Add missing font.size prefs for zh-HK font group. + +2003-10-25 Marco Pesenti Gritti + + * embed/Makefile.am: + * embed/ephy-command-manager.c: (ephy_command_manager_get_type), + (ephy_command_manager_base_init), + (ephy_command_manager_do_command), + (ephy_command_manager_can_do_command), + (ephy_command_manager_observe_command): + * embed/ephy-command-manager.h: + + Interface for commands. Useful for undo. (cmd_undo works). + + * embed/ephy-embed.c: + * embed/ephy-embed.h: + + Remove all clipboard calls. + + * embed/mozilla/EphyWrapper.cpp: + * embed/mozilla/EphyWrapper.h: + * embed/mozilla/Makefile.am: + * embed/mozilla/mozilla-embed.cpp: + + Implement part of the commands interface. + No regressions. + + * src/window-commands.c: (window_cmd_edit_cut), + (window_cmd_edit_copy), (window_cmd_edit_paste), + (window_cmd_edit_select_all): + + Implement clipboard using commands. + +2003-10-25 Xan Lopez + + * embed/downloader-view.c: (downloader_view_build_ui), + (download_dialog_delete_cb): + + Remove a debug print, don't do anything on wm delete event. + +2003-10-25 Marco Pesenti Gritti + + * embed/mozilla/GtkNSSDialogs.cpp: + * embed/mozilla/GtkNSSDialogs.h: + * embed/mozilla/GtkNSSKeyPairDialogs.cpp: + * embed/mozilla/GtkNSSKeyPairDialogs.h: + * embed/mozilla/Makefile.am: + + Resync with galeon. + +2003-10-25 Xan Lopez + + * data/glade/epiphany.glade: + * embed/downloader-view.c: (downloader_view_init), + (downloader_view_finalize), (get_row_from_download), + (download_changed_cb), (downloader_view_add_download), + (downloader_view_build_ui), (downloader_view_remove_download), + (download_dialog_delete_cb): + + Remove open button, autclose when there are no downloads left. + +2003-10-25 David Bordoley + + * src/ephy-tab.c: (build_net_state_message): + + don't pollute the statusbar with a "Done." message. + +2003-10-24 Christian Persch + + * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_response_cb), + (view_node_selected_cb), (automatic_toggled_cb), + (ephy_encoding_dialog_init): + * data/glade/epiphany.glade: + + Made encoding dialog auto-apply. + +2003-10-24 Marco Pesenti Gritti + + * lib/egg/egg-toolbar-editor.c: (set_drag_cursor), + (event_box_realize_cb), (editor_create_item): + + Use special drag cursors also for editor. + Do not hide separator when dragging it. + +2003-10-24 David Bordoley + + * data/art/hand-open.png: + + Took the open hand icon used in eog, did some + gimp magic. Why am I up at 4:30 in the morning + doing this? + +2003-10-25 Christian Persch + + * embed/mozilla/EphyHeaderSniffer.cpp: + + Use translatable title for untitled pages. + +2003-10-24 Marco Pesenti Gritti + + * 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. + +2003-10-23 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (create_item_from_action), + (egg_editable_toolbar_construct): + + Remove invalid items + +2003-10-23 Marco Pesenti Gritti + + * src/toolbar.c: (toolbar_spinner_start), (toolbar_spinner_stop): + + Make the spinner spin again. + +2003-10-23 Marco Pesenti Gritti + + * data/ui/epiphany-toolbar.xml: + * lib/egg/egg-editable-toolbar.c: (get_toolbar_position), + (get_dock_nth), (get_toolbar_nth), (create_dock), (update_fixed), + (toolbar_added_cb), (toolbar_removed_cb), + (egg_editable_toolbar_construct), (egg_editable_toolbar_init), + (egg_editable_toolbar_finalize), (egg_editable_toolbar_show), + (egg_editable_toolbar_hide), (egg_editable_toolbar_set_fixed): + * lib/egg/egg-editable-toolbar.h: + * src/Makefile.am: + * src/toolbar.c: (toolbar_setup_actions), (toolbar_init), + (toolbar_spinner_start), (toolbar_spinner_stop): + + Move the spinner in his own mini toolbar. + +2003-10-23 Xan Lopez + + * embed/mozilla/EphyEventListener.cpp: + * embed/mozilla/EphyWrapper.cpp: + * embed/mozilla/EphyWrapper.h: + * embed/mozilla/EventContext.cpp: + + Every time you change API God kills a kitten. + Think of the kitten!! (That means you, Mozilla :) + +2003-10-22 Marco Pesenti Gritti + + * data/ui/Makefile.am: + + Add xml files to extra data + +2003-10-22 Marco Pesenti Gritti + + * NEWS: + + Update for 1.1.0 + +2003-10-21 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (drag_begin_cb), (drag_end_cb), + (set_drag_cursor), (unset_drag_cursor), (create_item_from_action), + (create_item), (data_is_separator), (set_status_pending), + (get_status_pending), (drag_data_received_cb), (remove_toolbar_cb), + (popup_toolbar_context_menu_cb), (free_dragged_item), + (toolbar_drag_drop_cb), (toolbar_drag_motion_cb), + (toolbar_drag_leave_cb), (create_toolbar), (item_removed_cb), + (egg_editable_toolbar_set_drag_dest): + * lib/egg/egg-toolbar-editor.c: (drag_begin_cb), (drag_end_cb), + (editor_create_item): + + Use new api for highlighting and make it pick up and drop behavior + +2003-10-20 Christian Persch + + Encoding menu improvements, Episode V: + MPT strikes back. + + * data/glade/epiphany.glade: + * embed/ephy-encodings.c: (ephy_encodings_finalize), + (ephy_encodings_init): + * embed/ephy-encodings.h: + * src/ephy-encoding-dialog.c: (encoding_is_automatic), + (sync_embed_cb), (activate_choice), + (ephy_encoding_dialog_response_cb), (view_node_selected_cb), + (view_node_activated_cb), (ephy_encoding_dialog_init): + + Replace the 2-pane view with a single list, and restore + the automatic and manual radio buttons. + +2003-10-20 Marco Pesenti Gritti + + * src/ephy-history-window.c: (setup_filters), + (ephy_history_window_construct): + + Make sure that both sites and hosts are filtered + on construct + +2003-10-19 Marco Pesenti Gritti + + * embed/downloader-view.c: (downloader_view_build_ui): + * src/language-editor.c: (language_editor_set_view): + + unref the model once it's set in the view + +2003-10-19 Marco Pesenti Gritti + + * src/ephy-location-action.c: (remove_completion_actions): + + Index are not identifiers + +2003-10-19 Marco Pesenti Gritti + + * embed/ephy-history.c: (update_host_on_child_remove), + (update_hosts): + + We cant remove while iterating childrens, build a list + and remove later. + +2003-10-19 Christian Persch + + * src/ephy-location-action.c: (init_actions_list): + + Thaw smartbookmarks node after use. + +2003-10-19 Marco Pesenti Gritti + + * TODO: + * embed/ephy-download.c: (ephy_download_class_init), + (ephy_download_init), (update_remaining_time), + (ephy_download_get_remaining_time): + * embed/ephy-download.h: + + Update remaning time every two seconds + + * embed/mozilla/mozilla-download.cpp: + + Source/target was swapped + + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/EphyHeaderSniffer.h: + + Fix style + +2003-10-19 Marco Pesenti Gritti + + * embed/ephy-history.c: (update_hosts): + + do not try to remove All node + +2003-10-19 Marco Pesenti Gritti + + * embed/mozilla/mozilla-embed-persist.cpp: + + cleanup. Fix warning when fetching favicons. + +2003-10-18 Marco Pesenti Gritti + + * embed/mozilla/EphyHeaderSniffer.cpp: + + Looks like I copied a bug from mozilla js code. + Do not show bogus checkbox. + +2003-10-18 Marco Pesenti Gritti + + * embed/mozilla/MozDownload.cpp: + + initialize cur/total size + +2003-10-18 Marco Pesenti Gritti + + * TODO: + * embed/mozilla/MozDownload.cpp: + * embed/mozilla/MozDownload.h: + + fixup style + +2003-10-18 Marco Pesenti Gritti + + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/EphyHeaderSniffer.h: + + Add nsIAuthPrompt implementation, necessary + to make downloads on authenticated pages work. + +2003-10-18 Christian Persch + + * src/bookmarks/ephy-bookmarks.c: (add_to_favorites), + (history_site_visited_cb): + * src/ephy-favorites-menu.c: (ephy_favorites_menu_get_type), + (ephy_favorites_menu_clean), (ephy_favorites_menu_rebuild), + (ephy_favorites_menu_set_property), + (ephy_favorites_menu_get_property), + (ephy_favorites_menu_class_init), (do_updates), (fav_removed_cb), + (fav_added_cb), (ephy_favorites_menu_init), + (ephy_favorites_menu_finalize), (ephy_favorites_menu_new): + * src/ephy-favorites-menu.h: + * src/ephy-window.c: + * src/ephy-window.h: + + Get rid of the last vestige of ephy_window_update_control(), and make + the favourites menu self-updating. + +2003-10-18 Marco Pesenti Gritti + + * src/ephy-window.c: (setup_window): + + Show encoding menu also when empty, fix + oddness when opening View menu + +2003-10-18 Marco Pesenti Gritti + + * embed/mozilla/EphyWrapper.cpp: + + Fix string for old mozilla versions. + +2003-10-18 Christian Persch + + Encoding menu improvements, Part 4: + The Rewrite. + + * data/glade/epiphany.glade: + * data/ui/epiphany-ui.xml: + * data/ui/nautilus-epiphany-view.xml.in: + * embed/Makefile.am: + * embed/ephy-embed-shell.c: (ephy_embed_shell_init), + (ephy_embed_shell_finalize), (ephy_embed_shell_new), + (ephy_embed_shell_get_encodings): + * embed/ephy-embed-shell.h: + * embed/ephy-embed-utils.c: (ephy_embed_utils_save): + * embed/ephy-embed-utils.h: + * embed/ephy-embed.c: (ephy_embed_get_encoding_info): + * embed/ephy-embed.h: + * embed/ephy-encodings.c: (ephy_encodings_get_type), + (ephy_encodings_finalize), (ephy_encodings_class_init), + (ephy_encodings_get_node), (ephy_encodings_get_encodings), + (ephy_encodings_get_detectors), (ephy_encodings_get_all), + (ephy_encodings_get_categories), (ephy_encodings_add_recent), + (ephy_encodings_get_recent), (ephy_encodings_init), + (ephy_encoding_info_free), (ephy_encodings_new): + * embed/ephy-encodings.h: + * embed/mozilla/EphyWrapper.cpp: + * embed/mozilla/EphyWrapper.h: + * embed/mozilla/Makefile.am: + * embed/mozilla/mozilla-embed.cpp: + * embed/mozilla/mozilla-notifiers.cpp: + * lib/Makefile.am: + * lib/ephy-encodings.c: + * lib/ephy-encodings.h: + * lib/ephy-langs.c: (ephy_font_languages), (ephy_font_n_languages): + * lib/ephy-langs.h: + * src/Makefile.am: + * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_get_type), + (setup_filter), (sync_embed_cb), (sync_active_tab), + (ephy_encoding_dialog_set_window), (activate_choice), + (activate_automatic), (ephy_encoding_dialog_response_cb), + (category_node_selected_cb), (view_node_selected_cb), + (view_node_activated_cb), (ephy_encoding_dialog_init), + (ephy_encoding_dialog_finalize), + (ephy_encoding_dialog_set_property), + (ephy_encoding_dialog_get_property), + (ephy_encoding_dialog_class_init), (ephy_encoding_dialog_new): + * src/ephy-encoding-dialog.h: + * src/ephy-encoding-menu.c: (ephy_encoding_menu_init), + (sort_encodings), (add_menu_item), (update_encoding_menu_cb), + (encoding_activate_cb), (add_action), + (ephy_encoding_menu_view_dialog_cb), + (ephy_encoding_menu_automatic_cb), (ephy_encoding_menu_set_window), + (ephy_encoding_menu_finalize), (ephy_encoding_menu_class_init), + (ephy_encoding_menu_new): + * src/ephy-nautilus-view.c: (gnv_bonobo_control_activate_cb), + (gnv_cmd_select_encoding), (gnv_cmd_edit_find): + * src/ephy-window.c: (ephy_window_set_active_tab), + (setup_notebook), (ephy_window_set_property), + (ephy_window_get_property), (ephy_window_class_init): + * src/language-editor.h: + * src/pdm-dialog.c: (setup_passwords_treeview), + (setup_cookies_treeview): + * src/prefs-dialog.c: (prefs_dialog_finalize), + (get_current_language_code), (fonts_language_info_cmp), + (create_fonts_language_menu), (find_encoding_in_list_cmp), + (sort_encodings), (create_optionmenu), (prefs_dialog_init): + + Made encodings menu dynamic, containing recently used items + items + related to the currently active encoding. Split encodings out as a + embed shell service, port all users over to that. Harvest all encoding + info we can get from mozilla. + +2003-10-17 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarks-editor.c: + (ephy_bookmarks_editor_show), (ephy_bookmarks_editor_class_init), + (ephy_bookmarks_editor_construct): + + Grab focus in the entry when showing because we dont + rebuild the dialog. + +2003-10-17 Marco Pesenti Gritti + + * embed/mozilla/mozilla-embed-persist.cpp: + + Fix Save As, we need ever to pass the url now. + Now hope chpe stop to bug me about things + xan broke ... + +2003-10-16 Mark McLoughlin + + Change the behaviour of --nautilus-view such that the process + doesn't exit until the last control has been destroyed. The + previous behaviour caused intermittent activation failure + when the process timed out and died before the view could be + created - bug #124768. + + * src/ephy-main.c: + (ephy_main_start): don't unref the shell when started with + --nautilus-view. + (ephy_main_dummy_url_argument), + (ephy_main_translate_url_arguments): create a dummy argument + when no arguments are supplied which will cause the default + window to be opened. + + * src/ephy-shell.c: + (ephy_nautilus_view_all_controls_dead): unref the shell + here causing the process to exit. + (ephy_nautilus_view_init_factory): setup the all_controls_dead + callback. + (ephy_nautilus_view_new): instrument the control. + +2003-10-17 Ettore Perazzoli + + * src/bookmarks/ephy-bookmarks-editor.c + (ephy_bookmarks_editor_construct): Make the search entry grab the + focus, for added ease of use when using the keyboard. + +2003-10-15 Christian Persch + + * embed/mozilla/EventContext.cpp: + + Include config.h. + +2003-10-14 Kristian Rietveld + + * configure.in: also support mozilla 1.5. (Works fine, verified with + mozilla 1.5rc2). + +2003-10-14 Marco Pesenti Gritti + + * lib/widgets/ephy-location-entry.c: + (ephy_location_entry_class_init), + (ephy_location_entry_construct_contents), + (ephy_location_entry_init), (ephy_location_entry_activate): + * lib/widgets/ephy-location-entry.h: + * src/ephy-history-window.c: (confirmation_dialog_response_cb): + * src/ephy-location-action.c: (remove_completion_actions), + (add_completion_actions), (connect_proxy), + (ephy_location_action_set_address): + * src/ephy-location-action.h: + * src/toolbar.c: + * src/toolbar.h: + + Make location a normal entry. + +2003-10-13 Marco Pesenti Gritti + + * lib/widgets/ephy-location-entry.c: + (ephy_location_entry_set_completion): + + Unref completion + +2003-10-13 Christian Persch + + * embed/ephy-embed-single.c: (ephy_embed_single_free_passwords): + * embed/ephy-embed-single.h: + * embed/ephy-embed-utils.c: + (ephy_embed_utils_build_encodings_submenu): + * embed/mozilla/mozilla-embed-single.cpp: + * embed/mozilla/mozilla-notifiers.cpp: + * lib/Makefile.am: + * lib/ephy-encodings.c: (ephy_encoding_info_free), + (encodings_info_cmp), (ephy_encodings_get_list): + * lib/ephy-encodings.h: + * lib/ephy-langs.c: (ephy_lang_group_info_free), + (lang_group_info_cmp), (ephy_lang_get_group_list), + (fonts_language_info_cmp), (ephy_font_langs_get_codes_list), + (ephy_font_langs_get_list): + * lib/ephy-langs.h: + * po/POTFILES.in: + * src/ephy-encoding-menu.c: (ephy_encoding_menu_set_window), + (ephy_encoding_menu_rebuild): + * src/prefs-dialog.c: (prefs_dialog_finalize), + (get_current_language_code), (create_fonts_language_menu), + (default_encoding_menu_changed_cb), (find_encoding_in_list_cmp), + (create_default_encoding_menu): + + Encodings menu improvements, part 3: Refactored the encodings + list; it no longer is neccessary to have it in the embed single. + Ported all callers to new infrastructure. + +2003-10-13 Marco Pesenti Gritti + + * data/art/Makefile.am: + * lib/egg/Makefile.am: + * lib/egg/egg-editable-toolbar.c: (set_drag_cursor): + + Use a costum icon for the cursor + +2003-10-13 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (set_drag_cursor), + (unset_drag_cursor), (create_item), + (egg_editable_toolbar_set_edit_mode): + + Better implementation of cursor. + +2003-10-13 Marco Pesenti Gritti + + * lib/egg/egg-editable-toolbar.c: (enter_notify_cb), + (leave_notify_cb), (create_item): + + Show a different cursor when hovering toolbar items + in edit mode. + +2003-10-13 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarks-editor.c: (add_bookmarks_source), + (import_dialog_response_cb), (cmd_bookmarks_import): + + Port to new combo. + +2003-10-13 Marco Pesenti Gritti + + * src/ephy-history-window.c: (add_by_date_filter), + (time_combo_changed_cb), (build_search_box), (save_date_filter): + + Port to new combo. Size is wrong, prolly a bug in combo + size request, will look at it later. + +2003-10-13 Christian Persch + + * embed/mozilla/mozilla-notifiers.cpp: + (get_system_language): + + Return "en" when in C locale. + +2003-10-11 Christian Persch + + * embed/mozilla/EphyWrapper.cpp: + + Include config.h. + +2003-10-11 Christian Persch + + * embed/mozilla/EphyWrapper.cpp: + * embed/mozilla/EphyWrapper.h: + * embed/mozilla/mozilla-embed.cpp: + + Adapt EphyWrapper::GetEncoding to varying mozilla APIs. + +2003-10-11 Christian Persch + + * embed/ephy-embed.c: (ephy_embed_get_encoding): + * embed/ephy-embed.h: + * embed/mozilla/EphyWrapper.cpp: + * embed/mozilla/EphyWrapper.h: + * embed/mozilla/mozilla-embed.cpp: + * src/ephy-encoding-menu.c: (ephy_encoding_menu_verb_cb), + (update_encoding_menu_cb), (ephy_encoding_menu_set_window): + + Encoding menu improvements, part 2: Implement ephy_embed_get_encoding, + and use it in the menu to indicate the encoding of the loaded page. + +2003-10-11 Christian Persch + + * src/ephy-encoding-menu.c: (ephy_encoding_menu_get_type), + (ephy_encoding_menu_verb_cb), (ephy_encoding_menu_init), + (ephy_encoding_menu_set_window), (ephy_encoding_menu_set_property), + (ephy_encoding_menu_get_property), (ephy_encoding_menu_class_init), + (ephy_encoding_menu_new), (ephy_encoding_menu_rebuild): + * src/ephy-encoding-menu.h: + + Encodings menu improvements, part 1: Ported to new gtk ui manager + api, and general code cleanups. + +2003-10-10 Marco Pesenti Gritti + + * embed/mozilla/FilePicker.cpp: + * embed/mozilla/FilePicker.h: + * embed/mozilla/mozilla-embed-single.cpp: + * lib/Makefile.am: + * lib/ephy-dialog.c: (get_pref_type_from_widget), + (prefs_connect_signals), (load_props), (save_props): + * lib/ephy-gui.h: + * lib/widgets/Makefile.am: + * src/Makefile.am: + * src/bookmarks/Makefile.am: + * src/bookmarks/ephy-topic-action.c: + * src/ephy-history-window.c: + + Reenable deprecated api where necessary, fixup some + header inclusions. + Remove unused color picker control in ephy-dialog. + Remove unused file types optionmenu in Filepicker. + +2003-10-07 Marco Pesenti Gritti + + * lib/widgets/ephy-tree-model-node.c: (root_child_removed_cb), + (get_path_real), (root_child_added_cb), + (ephy_tree_model_node_update_node), (root_child_changed_cb), + (root_children_reordered_cb), (root_destroy_cb), + (ephy_tree_model_node_class_init), (ephy_tree_model_node_init), + (ephy_tree_model_node_finalize), + (ephy_tree_model_node_add_prop_column), + (ephy_tree_model_node_add_func_column), + (ephy_tree_model_node_get_column_type), + (ephy_tree_model_node_get_value), (ephy_tree_model_node_get_iter), + (ephy_tree_model_node_get_path), (ephy_tree_model_node_iter_next), + (ephy_tree_model_node_iter_children), + (ephy_tree_model_node_iter_n_children), + (ephy_tree_model_node_iter_nth_child), + (ephy_tree_model_node_iter_from_node), + (ephy_tree_model_node_tree_model_init): + * lib/widgets/ephy-tree-model-node.h: + + Merge fixes from branch and clean up. + +2003-10-16 Marco Pesenti Gritti + + * embed/mozilla/ContentHandler.cpp: + + pass handler with full path, not only + exec name. I dont get how it worked before. + +2003-10-16 Marco Pesenti Gritti + + * lib/widgets/ephy-cell-renderer-progress.c: + (ephy_cell_renderer_progress_init), + (ephy_cell_renderer_progress_set_value), + (ephy_cell_renderer_progress_set_property), (compute_dimensions), + (ephy_cell_renderer_progress_get_size), + (ephy_cell_renderer_progress_render), + (ephy_cell_renderer_progress_finalize), + (ephy_cell_renderer_progress_class_init): + * lib/widgets/ephy-cell-renderer-progress.h: + + fix for unknown/failed states + +2003-10-16 Xan Lopez + + * embed/mozilla/MozDownload.cpp: + * embed/mozilla/MozDownload.h: + + Unbreak for real. + +2003-10-16 Xan Lopez + + * TODO: + * embed/downloader-view.c: + * embed/mozilla/MozDownload.cpp: + + Evil marco loves to break my changes, ahem. + +2003-10-16 Marco Pesenti Gritti + + * TODO: + * embed/downloader-view.c: (downloader_view_init), + (get_row_from_download), (download_changed_cb), + (downloader_view_add_download), (downloader_view_build_ui), + (download_dialog_pause_cb), (downloader_view_remove_download), + (download_dialog_abort_cb): + * embed/ephy-download.c: (ephy_download_get_state): + * embed/ephy-download.h: + * embed/mozilla/MozDownload.cpp: + * embed/mozilla/MozDownload.h: + * embed/mozilla/mozilla-download.cpp: + + Implement state. + +2003-10-16 Marco Pesenti Gritti + + * data/glade/epiphany.glade: + + Remove details + + * embed/downloader-view.c: + + Remove details button leftover + +2003-10-16 Marco Pesenti Gritti + + * embed/mozilla/MozDownload.cpp: + + Fix some bugs + +2003-10-16 Marco Pesenti Gritti + + * embed/ephy-embed-persist.h: + * embed/ephy-favicon-cache.c: (ephy_favicon_cache_download): + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/MozDownload.cpp: + * embed/mozilla/MozDownload.h: + + Implement no_view downloads and use for favicons. + +2003-10-15 Marco Pesenti Gritti + + * embed/mozilla/MozDownload.cpp: + + Fix reference problem when using persist. + +2003-10-15 Xan Lopez + + * data/glade/epiphany.glade: + * embed/downloader-view.c: (downloader_view_init), + (downloader_view_finalize), (download_changed_cb), + (downloader_view_add_download), (downloader_view_build_ui), + (download_dialog_pause_cb), (downloader_view_remove_download), + (download_dialog_abort_cb), (download_dialog_delete_cb): + + Re-add abort UI, drop details + Serious glade cleanup is left as an exercise for the reader + +2003-10-15 Xan Lopez + + * data/glade/epiphany.glade: + * embed/downloader-view.c: (downloader_view_add_download), + (download_dialog_pause_cb), (download_dialog_abort_cb): + * embed/downloader-view.h: + + Fix stop button (UI not updated yet) + + * embed/mozilla/MozDownload.cpp: + + Init mEmbedPersist to nsnull (Marco) + +2003-10-14 Marco Pesenti Gritti + + * embed/downloader-view.c: (format_interval), + (download_changed_cb), (downloader_view_build_ui): + * embed/ephy-download.c: (ephy_download_get_remaining_time), + (ephy_download_get_current_progress), + (ephy_download_get_total_progress), (ephy_download_get_percent), + (ephy_download_get_elapsed_time): + * embed/ephy-download.h: + * embed/mozilla/MozDownload.cpp: + * embed/mozilla/MozDownload.h: + * embed/mozilla/mozilla-download.cpp: + * lib/widgets/Makefile.am: + + Get back the treeview info to work. Use + procman progress renderer for percent. + +2003-10-14 Marco Pesenti Gritti + + * embed/downloader-view.c: (download_changed_cb), + (downloader_view_add_download): + + Fix percent/filenamee + +2003-10-14 Marco Pesenti Gritti + + * embed/downloader-view.c: (download_changed_cb), + (downloader_view_add_download), (downloader_view_build_ui), + (downloader_treeview_selection_changed_cb): + * embed/ephy-download.c: (ephy_download_class_init), + (ephy_download_new), (ephy_download_get_name): + * embed/ephy-download.h: + * embed/mozilla/MozDownload.cpp: + * embed/mozilla/MozDownload.h: + + Implement a download changed signal and try to update + percent in the treeview. + +2003-10-14 Marco Pesenti Gritti + + * embed/ephy-download.c: (ephy_download_get_source), + (ephy_download_get_target), (ephy_download_get_percent): + * embed/ephy-download.h: + * embed/mozilla/mozilla-download.cpp: + + Implement basic download info getters. + +2003-10-14 Marco Pesenti Gritti + + * embed/Makefile.am: + * embed/downloader-view.c: (destroy_details_cb), + (downloader_view_update_controls), + (downloader_view_update_details), + (downloader_view_set_download_info), + (downloader_view_add_download), (downloader_view_build_ui), + (download_dialog_pause_cb), (download_dialog_abort_cb), + (downloader_treeview_selection_changed_cb), + (download_dialog_delete_cb), (open_selection_foreach), + (download_dialog_open_cb): + * embed/downloader-view.h: + * embed/ephy-download.c: (ephy_download_get_type), + (ephy_download_class_init), (ephy_download_init), + (ephy_download_new), (ephy_download_cancel), (ephy_download_pause), + (ephy_download_resume): + * embed/ephy-download.h: + * embed/ephy-embed-shell.c: (impl_get_downloader_view): + * embed/mozilla/EphyDownload.cpp: + * embed/mozilla/EphyDownload.h: + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/Makefile.am: + * embed/mozilla/MozDownload.cpp: + * embed/mozilla/MozDownload.h: + * embed/mozilla/MozRegisterComponents.cpp: + * embed/mozilla/mozilla-download.cpp: + * embed/mozilla/mozilla-download.h: + * embed/mozilla/mozilla-embed-persist.cpp: + * lib/Makefile.am: + * lib/widgets/Makefile.am: + * src/Makefile.am: + * src/bookmarks/Makefile.am: + + Big architectural changes. Now I think it make sense, + but we need to rewrite a lot of ui code. + +2003-10-14 Xan Lopez + + * embed/downloader-view.c: (downloader_view_class_init), + (download_dialog_pause_cb), (delete_pending_foreach): + * embed/mozilla/mozilla-downloader-view.cpp: + * embed/mozilla/mozilla-downloader-view.h: + + Some cleanups. + +2003-10-14 Xan Lopez + + * embed/downloader-view.c: (download_dialog_abort_cb), + (downloader_cancel_download): + * embed/mozilla/mozilla-downloader-view.cpp: + + Evil stuff. + +2003-10-14 Xan Lopez + + * embed/ephy-embed-shell.c: (impl_get_downloader_view): + * embed/mozilla/mozilla-downloader-view.cpp: + * embed/mozilla/mozilla-downloader-view.h: + + And More. + +2003-10-13 Xan Lopez + + * embed/mozilla/EphyDownload.h: + + Cleanup + + * embed/mozilla/Makefile.am: + * embed/mozilla/mozilla-downloader-view.cpp: + * embed/mozilla/mozilla-downloader-view.h: + + Yet More Work. + +2003-10-13 Xan Lopez + + * embed/downloader-view.c: (downloader_view_class_init), + (download_dialog_pause_cb), (download_dialog_abort_cb), + (delete_pending_foreach), (downloader_cancel_download), + (downloader_pause_download), (downloader_resume_download): + * embed/downloader-view.h: + + More work. + +2003-10-07 Marco Pesenti Gritti + + * embed/mozilla/EphyHeaderSniffer.cpp: + + Fix crash when download start + +2003-10-07 Marco Pesenti Gritti + + * embed/ephy-embed-persist.h: + * embed/ephy-embed-popup-control.c: (save_property_url), + (embed_popup_download_link_cmd), (embed_popup_save_image_as_cmd), + (save_url), (embed_popup_save_page_as_cmd), + (embed_popup_save_background_as_cmd): + * embed/ephy-embed-utils.c: (ephy_embed_utils_save): + * embed/ephy-embed-utils.h: + * embed/mozilla/EphyDownload.cpp: + * embed/mozilla/EphyDownload.h: + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/EphyHeaderSniffer.h: + * embed/mozilla/mozilla-embed-persist.cpp: + * src/popup-commands.c: (save_property_url), + (popup_cmd_download_link), (popup_cmd_save_image_as), + (popup_cmd_save_background_as): + * src/window-commands.c: (window_cmd_file_save_as): + + Make embed-persist use nsIDownload and cleanup api a bit. + +2003-10-06 Xan Lopez + + * embed/mozilla/ContentHandler.cpp: + * embed/mozilla/EphyWrapper.cpp: + * embed/mozilla/EphyWrapper.h: + * embed/mozilla/EventContext.cpp: + * embed/mozilla/GlobalHistory.h: + * embed/mozilla/ProgressListener.cpp: + * embed/mozilla/ProgressListener.h: + * embed/mozilla/mozilla-embed-persist.cpp: + + Remove ProgressListener again, hopefully everything + compiles without it now. + +2003-10-06 Xan Lopez + + * embed/mozilla/EphyDownload.cpp: + * embed/mozilla/EphyDownload.h: + * embed/mozilla/EphyHeaderSniffer.cpp: + * embed/mozilla/EphyHeaderSniffer.h: + * embed/mozilla/MozRegisterComponents.cpp: + * embed/mozilla/ProgressListener.cpp: + * embed/mozilla/ProgressListener.h: + * embed/mozilla/mozilla-embed-persist.cpp: + + Cleanups. + +2003-10-06 Xan Lopez + + * embed/mozilla/Makefile.am: + * embed/mozilla/MozRegisterComponents.cpp: + * embed/mozilla/mozilla-embed-persist.cpp: + + Make it work, behold the all new EphyDownload. + +2003-10-06 Christian Persch + + * src/ephy-notebook.c: (find_notebook_at_pointer), + (ephy_notebook_init), (ephy_notebook_finalize): + + Allow dragging of tabs to a window even when the tabs bar is not + shown. Fixes bug #123908. + +2003-10-06 Marco Pesenti Gritti + + * src/ephy-history-window.c: (setup_filters), + (site_node_selected_cb), (search_entry_search_cb), + (time_optionmenu_changed_cb): + + More granular filtering update + +2003-10-06 Marco Pesenti Gritti + + * embed/ephy-history.c: (update_host_on_child_remove), + (update_hosts), (page_removed_from_host_cb), (ephy_history_init), + (ephy_history_finalize): + + Update host last visit when removing sites from it. + +2003-10-06 Marco Pesenti Gritti + + * src/ephy-history-window.c: (search_entry_search_cb): + + update priv->select_node, signals are blocked so it would + not be updated otherwise + +2003-10-06 Marco Pesenti Gritti + + * lib/widgets/ephy-node-view.c: (did_not_drag): + + Do not unselect all on single selection mode, to not generate + useless node selection changes. + + * src/ephy-history-window.c: (site_node_selected_cb): + + Do not refilter if the new selected node is the same + as the old one. + +2003-10-03 Christian Persch + + * lib/egg/egg-toolbars-model.c: (safe_save_xml), + (egg_toolbars_model_load): + + Check for failed load of the toolbars model from the XML file, + and fix the check for failed save of same to the XML file. + +2003-10-02 Marco Pesenti Gritti + + * src/bookmarks/ephy-bookmarks-menu.c: (add_bookmarks_menu), + (ephy_bookmarks_menu_rebuild): + + Use new gtk api for empty submenus + +2003-10-07 Marco Pesenti Gritti + + * src/ephy-completion-model.c: (node_iter_from_node), + (ephy_completion_model_init), (ephy_completion_model_get_value), + (ephy_completion_model_get_iter), (ephy_completion_model_get_path), + (ephy_completion_model_iter_next), + (ephy_completion_model_iter_children), + (ephy_completion_model_iter_n_children), + (ephy_completion_model_iter_nth_child): + + Add stamp. + +2003-10-06 Marco Pesenti Gritti + + * lib/widgets/ephy-location-entry.c: (completion_func), + (match_selected_cb), (ephy_location_entry_construct_contents), + (ephy_location_entry_init), (sort_func), + (ephy_location_entry_set_completion): + * lib/widgets/ephy-location-entry.h: + * src/Makefile.am: + * src/ephy-completion-model.c: (ephy_completion_model_class_init), + (root_child_removed_cb), (node_iter_from_node), (get_path_real), + (root_child_added_cb), (root_child_changed_cb), (connect_signals), + (ephy_completion_model_init), + (ephy_completion_model_get_column_type), (init_text_col), + (init_action_col), (init_keywords_col), (init_relevance_col), + (ephy_completion_model_get_value), + (ephy_completion_model_get_iter): + * src/ephy-location-action.c: (connect_proxy): + + Implement our own completion model. The big part of the + new location entry impl is done. When gtk completion will + be fixed I'll be able to merge this on head. + +2003-10-05 Marco Pesenti Gritti + + * lib/widgets/ephy-location-entry.c: + (ephy_location_entry_class_init), (entry_activate_cb): + * lib/widgets/ephy-location-entry.h: + + Remove the activated signal. + + * src/ephy-location-action.c: (action_activated_cb), + (location_url_activate_cb), (remove_completion_actions), + (add_completion_actions), (connect_proxy), + (ephy_location_action_init): + + Just use entry activate signal. Implement smart + bookmarks activation. + +2003-10-05 Marco Pesenti Gritti + + * lib/ephy-node-common.h: + * lib/widgets/ephy-location-entry.c: + (ephy_location_entry_get_entry): + * lib/widgets/ephy-location-entry.h: + * src/bookmarks/ephy-bookmark-action.c: (sync_bookmark_properties): + * src/bookmarks/ephy-bookmarks-export.c: + (ephy_bookmarks_export_rdf): + * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init), + (update_has_smart_address), (ephy_bookmarks_add), + (ephy_bookmarks_set_address), (ephy_bookmarks_unset_keyword), + (ephy_bookmarks_get_smart_bookmarks): + * src/bookmarks/ephy-bookmarks.h: + + Modify smart bookmarks to use a separate root instead + of a property. + + * src/ephy-location-action.c: (remove_completion_actions), + (add_completion_actions), (connect_proxy), (init_actions_list), + (update_actions_list), (actions_child_removed_cb), + (actions_child_added_cb), (actions_child_changed_cb), + (ephy_location_action_init), (ephy_location_action_finalize): + + Implement smart bookmarks as location actions. + +2003-10-05 Marco Pesenti Gritti + + * lib/widgets/ephy-location-entry.c: (add_to_history), + (entry_activate_cb), (ephy_location_entry_construct_contents), + (ephy_location_entry_init), (save_location_history), + (ephy_location_entry_finalize), + (ephy_location_entry_clear_history): + + Implement location history. + + * lib/widgets/ephy-tree-model-node.c: (root_children_reordered_cb): + + Fixup reorder notification. + +2003-10-03 Marco Pesenti Gritti + + * lib/widgets/ephy-location-entry.c: (match_selected_cb), + (ephy_location_entry_construct_contents), + (ephy_location_entry_add_completion): + + Do not create multiple gtk completions, open the + url when a match is selected. + +2003-10-02 Marco Pesenti Gritti + + * lib/egg/Makefile.am: + * lib/egg/eggtreemodelunion.c: + * lib/egg/eggtreemodelunion.h: + + Add from libegg. + + * lib/widgets/ephy-location-entry.c: (completion_func), + (ephy_location_entry_construct_contents), + (ephy_location_entry_add_completion): + * lib/widgets/ephy-location-entry.h: + * lib/widgets/ephy-tree-model-node.c: + (ephy_tree_model_node_get_value): + * src/ephy-location-action.c: (connect_proxy): + + Merge bookmarks in autocompletion and implement + case unsensitive match. + +2003-10-02 Marco Pesenti Gritti + + * lib/widgets/ephy-location-entry.c: (completion_func), + (ephy_location_entry_init), (ephy_location_entry_add_completion): + + Costum match function to deal with prefixes. + + * lib/widgets/ephy-tree-model-node.c: + (ephy_tree_model_node_get_column_type), + (ephy_tree_model_node_get_value): + + Fix column indexes. + +2003-10-01 Marco Pesenti Gritti + + * lib/widgets/ephy-location-entry.c: (entry_button_press_cb), + (ephy_location_entry_construct_contents): + + Put back double click -> select all + +2003-10-01 Marco Pesenti Gritti + + * lib/widgets/ephy-location-entry.c: (location_focus_out_cb), + (ephy_location_entry_construct_contents), + (ephy_location_entry_init), (ephy_location_entry_finalize), + (ephy_location_entry_add_completion), + (ephy_location_entry_set_location), + (ephy_location_entry_get_location), (ephy_location_entry_activate), + (ephy_location_entry_clear_history): + * lib/widgets/ephy-location-entry.h: + + cleanups + +2003-10-01 Marco Pesenti Gritti + + * embed/ephy-history.c: (ephy_history_get_type), + (ephy_history_init), (ephy_history_visited): + * lib/Makefile.am: + * lib/ephy-autocompletion-source.c: + * lib/ephy-autocompletion-source.h: + * lib/ephy-autocompletion.c: + * lib/ephy-autocompletion.h: + * lib/widgets/Makefile.am: + * lib/widgets/ephy-autocompletion-window.c: + * lib/widgets/ephy-autocompletion-window.h: + * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_get_type), + (bookmarks_changed_cb), (bookmarks_removed_cb), + (ephy_bookmarks_init), (ephy_bookmarks_add): + + Remove old implementation completely + +2003-10-01 Marco Pesenti Gritti + + * lib/widgets/ephy-location-entry.c: + (ephy_location_entry_class_init), (editable_changed_cb), + (entry_activate_cb), (ephy_location_entry_construct_contents), + (ephy_location_entry_init), (ephy_location_entry_finalize), + (ephy_location_entry_new), (ephy_location_entry_add_completion), + (ephy_location_entry_set_location), + (ephy_location_entry_clear_history): + * lib/widgets/ephy-location-entry.h: + * lib/widgets/ephy-tree-model-node.c: + (ephy_tree_model_node_add_prop_column), + (ephy_tree_model_node_add_func_column): + * src/ephy-location-action.c: (connect_proxy): + * src/ephy-shell.c: (ephy_shell_finalize), + (ephy_shell_get_session): + * src/ephy-shell.h: + + Beginning of new location entry implementation + +2003-09-30 Marco Pesenti Gritti + + * data/epiphany.schemas.in: + * data/ui/epiphany-history-window-ui.xml: + * src/ephy-history-window.c: (set_columns_visibility), + (cmd_view_columns), (get_details_value), + (ephy_history_window_construct): + + Implement view menu. + +2003-09-30 Christian Persch + + * src/ephy-history-window.c: (build_search_box): + + Use ngettext. + +2003-09-30 Christian Persch + + * embed/print-dialog.c: (print_get_info): + + Don't pass NULL to gnome_vfs_expand_initial_tilde. + +2003-09-30 Marco Pesenti Gritti + + * embed/ephy-history.c: + * src/ephy-history-window.c: (build_search_box): + + More accurate description for Ever filter. + Keep the backend as is, so we dont have to change + it if we change history expire. + +2003-09-29 Marco Pesenti Gritti + + * data/default-prefs.js: + + Add defaults in points for fonts + +2003-09-28 Marco Pesenti Gritti + + * embed/mozilla/mozilla-embed-single.cpp: + + The file picker dir can be NULL, check before + trying to expand tilde. + + * src/bookmarks/ephy-bookmarks-editor.c: + (import_dialog_response_cb), (cmd_bookmarks_import): + + Implement import from a file + +2003-09-27 Xan Lopez + + * configure.in: + + Forgot this. + +2003-09-27 Xan Lopez + + * configure.in: + * embed/mozilla/ContentHandler.cpp: + + API sync, from galeon. + +2003-09-27 Christian Persch + + * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_import): + * src/bookmarks/ephy-bookmarks-import.h: + + Offer to import from Firebird too. + +2003-09-27 Marco Pesenti Gritti + + * lib/ephy-gui.c: (ephy_gui_get_pixbuf_from_mime_type): + + Simpler implementation. + + * lib/widgets/ephy-spinner.c: (ephy_spinner_load_images): + * src/ephy-shell.c: (ephy_shell_init): + + Pass 0 as flags + +2003-09-27 Marco Pesenti Gritti + + * embed/mozilla/ContentHandler.cpp: + * lib/ephy-gui.c: (make_mime_name), + (ephy_gui_get_pixbuf_from_mime_type): + * lib/ephy-gui.h: + * lib/widgets/ephy-spinner.c: (ephy_spinner_init), + (ephy_spinner_theme_changed), (ephy_spinner_load_images), + (ephy_spinner_finalize): + * src/ephy-shell.c: (ephy_shell_init): + + Use gtkicontheme, and use it also for mime icons. + +2003-09-26 Marco Pesenti Gritti + + * data/epiphany.schemas.in: + * lib/ephy-node-filter.c: (ephy_node_filter_evaluate): + * src/ephy-history-window.c: (ephy_history_window_finalize), + (add_by_site_filter), (add_by_date_filter), (add_by_word_filter), + (setup_filters), (site_node_selected_cb), (search_entry_search_cb), + (time_optionmenu_changed_cb), (build_search_box), + (ephy_history_window_construct), (save_date_filter), + (ephy_history_window_dispose): + + Implement history time filter + +2003-09-26 Marco Pesenti Gritti + + * src/ephy-window.c: + + Remove unused includes, they was causing warnings on solaris + diff --git a/autogen.sh b/autogen.sh index 59da628b3..75c5454ab 100755 --- a/autogen.sh +++ b/autogen.sh @@ -6,7 +6,7 @@ test -z "$srcdir" && srcdir=. PKG_NAME="epiphany" -(test -f $srcdir/configure.in) || { +(test -f $srcdir/src/ephy-window.c) || { echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" echo " top-level $PKG_NAME directory" exit 1 diff --git a/configure.ac b/configure.ac new file mode 100644 index 000000000..82df6b22c --- /dev/null +++ b/configure.ac @@ -0,0 +1,308 @@ +dnl Copyright (C) 2000-2004 Marco Pesenti Gritti +dnl Copyright (C) 2003, 2004 Christian Persch +dnl +dnl This program is free software; you can redistribute it and/or modify it +dnl under the terms of the GNU General Public License as published by the +dnl Free Software Foundation; either version 2 of the License, or (at your +dnl option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, but +dnl WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +dnl General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License along +dnl with this program; if not, write to the Free Software Foundation, Inc., +dnl 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +AC_INIT([GNOME Web browser], [1.5.0], + [http://bugzilla.gnome.org/enter_bug.cgi?product=epiphany],[epiphany]) + +GNOME_COMMON_INIT + +AC_PREREQ([2.57]) + +AM_CONFIG_HEADER([config.h]) +AC_CONFIG_SRCDIR([configure.ac]) + +EPIPHANY_MAJOR=1.5 +AC_SUBST([EPIPHANY_MAJOR]) + +AM_INIT_AUTOMAKE([dist-bzip2 check-news]) + +AM_MAINTAINER_MODE + +AC_PROG_INTLTOOL([0.29]) + +GLIB_REQUIRED=2.5.3 +PANGO_REQUIRED=1.5.1 +GTK_REQUIRED=2.5.3 +LIBXML_REQUIRED=2.6.6 +LIBGNOMEVFS_REQUIRED=2.3.1 +LIBGLADE_REQUIRED=2.3.1 +LIBGNOMEUI_REQUIRED=2.6.0 + +AC_SUBST([GLIB_REQUIRED]) +AC_SUBST([PANGO_REQUIRED]) +AC_SUBST([GTK_REQUIRED]) +AC_SUBST([LIBXML_REQUIRED]) +AC_SUBST([LIBGNOMEVFS_REQUIRED]) +AC_SUBST([LIBGLADE_REQUIRED]) +AC_SUBST([LIBGNOMEUI_REQUIRED]) + +AC_ENABLE_SHARED([yes]) +AC_ENABLE_STATIC([no]) + +AC_LIBTOOL_DLOPEN +AM_PROG_LIBTOOL + +AC_ISC_POSIX +AC_PROG_CC +AC_PROG_CXX +AM_PROG_CC_STDC +AC_HEADER_STDC +AC_PROG_INTLTOOL +AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal]) + +AC_SUBST([AM_CXXFLAGS]) + +GNOME_DEBUG_CHECK +GNOME_COMPILE_WARNINGS([error]) + +PKG_CHECK_MODULES([EPIPHANY_DEPENDENCY], \ + glib-2.0 >= $GLIB_REQUIRED \ + pango >= $PANGO_REQUIRED \ + gtk+-2.0 >= $GTK_REQUIRED \ + libxml-2.0 >= $LIBXML_REQUIRED \ + libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED \ + libglade-2.0 >= $LIBGLADE_REQUIRED \ + bonobo-activation-2.0 \ + ORBit-2.0 \ + libglade-2.0 >= $LIBGLADE_REQUIRED \ + gnome-vfs-2.0 >= $LIBGNOMEVFS_REQUIRED \ + gnome-vfs-module-2.0 \ + gconf-2.0 \ + ) +AC_SUBST([EPIPHANY_DEPENDENCY_CFLAGS]) +AC_SUBST([EPIPHANY_DEPENDENCY_LIBS]) + +ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`" +AC_SUBST([ORBIT_IDL]) + +LIBBONOBO_IDL="`$PKG_CONFIG --variable=idldir libbonobo-2.0`" +AC_SUBST([LIBBONOBO_IDL]) + +BONOBO_ACTIVATION_IDL="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`" +AC_SUBST([BONOBO_ACTIVATION_IDL]) + +PKG_CHECK_MODULES(MOZILLA_COMPONENT, mozilla-gtkmozembed mozilla-xpcom) +AC_SUBST([MOZILLA_COMPONENT_CFLAGS]) +AC_SUBST([MOZILLA_COMPONENT_LIBS]) + +MOZILLA_INCLUDE_ROOT="`$PKG_CONFIG --variable=includedir mozilla-gtkmozembed`" +AC_SUBST([MOZILLA_INCLUDE_ROOT]) + +MOZILLA_HOME="`$PKG_CONFIG --variable=libdir mozilla-gtkmozembed`" +AC_SUBST([MOZILLA_HOME]) + +dnl whether to build with DEBUG defined +AC_ARG_WITH([mozilla-debug], + AC_HELP_STRING([--mozilla-debug],[Whether mozilla is a debug build]), + [AM_CXXFLAGS="-DDEBUG $AM_CXXFLAGS"]) + +AC_ARG_ENABLE([cpp-rtti], + AC_HELP_STRING([--enable-cpp-rtti],[Enable C++ RTTI]),[], + [enable_cpp_rtti=no]) + +if test "x$enable_cpp_rtti" = "xno"; then + AM_CXXFLAGS="-fno-rtti $AM_CXXFLAGS" +fi + +dnl Specify the gconf configuration source, +dnl default to xml::$(sysconfdir)/gconf/gconf.xml.defaults + +AC_PATH_PROG([GCONFTOOL], [gconftool-2], [no]) + +if test x"$GCONFTOOL" = xno; then + AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf]) +fi + +AM_GCONF_SOURCE_2 + +dnl ****************** +dnl Portability checks +dnl ****************** + +AC_CHECK_FUNCS([mkdtemp]) + +dnl ************************************************************************* +dnl This is from Mozilla's configure.in. They set almost all the config stuff +dnl they need in mozilla-config.h Except for this compiler flag, which can't +dnl go in mozilla-config.h So we check the flag too and now we can include +dnl mozilla-config.h without breaking epiphany. +dnl This is really gcc-only +dnl Do this test using CXX only since some versions of gcc +dnl 2.95-2.97 have a signed wchar_t in c++ only and some versions +dnl only have short-wchar support for c++. +AC_LANG_PUSH([C++]) +_SAVE_CXXFLAGS=$CXXFLAGS +_SAVE_AM_CXXFLAGS=$AM_CXXFLAGS +AM_CXXFLAGS="$AM_CXXFLAGS -fshort-wchar" +CXXFLAGS="$CXXFLAGS $AM_CXXFLAGS" + +AC_CACHE_CHECK([for compiler -fshort-wchar option], + ac_cv_have_usable_wchar_option, + [AC_TRY_RUN([#include + int main () { + return (sizeof(wchar_t) != 2) || + (wchar_t)-1 < (wchar_t) 0 ; } ], + ac_cv_have_usable_wchar_option="yes", + ac_cv_have_usable_wchar_option="no", + ac_cv_have_usable_wchar_option="maybe")]) + +if test "$ac_cv_have_usable_wchar_option" != "yes"; then + AM_CXXFLAGS=$_SAVE_AM_CXXFLAGS +fi +CXXFLAGS=$_SAVE_CXXFLAGS +AC_LANG_POP([C++]) + +dnl ********************* +dnl Mozilla version check +dnl ********************* + +AC_MSG_CHECKING([for mozilla version]) +MOZILLA_VERSION="`$PKG_CONFIG --modversion mozilla-gtkmozembed`" + +AC_ARG_WITH([mozilla-snapshot], + AC_HELP_STRING([--with-mozilla-snapshot@<:@=1.7|1.8a1|1.8a2|trunk@:>@], + [Which mozilla version to build against, guessed: @<:@guessed@:>@]), + [autodetect=" (guessed: $MOZILLA_VERSION)"; MOZILLA_VERSION="$withval"]) + +AC_MSG_RESULT([$MOZILLA_VERSION$autodetect]) + +dnl Test for the "trunk" version +if test $MOZILLA_VERSION = "trunk"; then + MOZILLA_VERSION=9.0 # use a high number +fi + +dnl Split up the version string ( 1.7rc1 -> 1 7 rc 1 ) +version=$(echo $MOZILLA_VERSION | sed -e 's/\(@<:@0-9@:>@\+\|@<:@a-z@:>@\+\)/\1 /g' -e 's/\.//g') + +set -- $version; + +case $1 in + @<:@0-9@:>@) + AC_DEFINE_UNQUOTED([MOZILLA_MAJOR], [$1], [Define to the Mozilla major version.]) + ;; + *) + AC_ERROR([Invalid mozilla major version component: $1]) + ;; +esac + +case $2 in + @<:@0-9@:>@) + AC_DEFINE_UNQUOTED([MOZILLA_MINOR], [$2], [Define to the Mozilla minor version.]) + ;; + *) + AC_ERROR([Invalid mozilla minor version component: $2]) + ;; +esac + +micro=$3 +type=4 +case $3 in + @<:@0-9@:>@) # e.g. 1.4.1 + ;; + "") # e.g. 1.7 + micro=0 + ;; + a) type=1 + micro=$4 + ;; + + b) type=2 + micro=$4 + ;; + + rc) type=3 + micro=$4 + ;; + *) + AC_ERROR([Invalid mozilla version component: $3]) +esac + +if test "$micro" = "" ; then + micro=0 +fi + +if test "$5" != "" ; then + AC_ERROR([Unexpected mozilla version component: $5]) +fi + +AC_DEFINE_UNQUOTED([MOZILLA_TYPE], [$type], [Define to the Mozilla release type.]) +AC_DEFINE_UNQUOTED([MOZILLA_MICRO], [$micro], [Define to the Mozilla micro version.]) + +if test "$1" -lt 1 -o \( "$1" -eq 1 -a "$2" -lt 7 \) -o \( "$1" -eq 1 -a "$2" -eq 7 -a "$type" -lt 4 \); then + AC_ERROR([ +***************************************************************************** +Epiphany can be built using Mozilla 1.7, 1.7.x, 1.7 branch, 1.8a2, or trunk +snapshot, but the version available is $MOZILLA_VERSION. + +When using Mozilla trunk snapshot, a successful build is not guaranteed due +to the frequently changing state of the Mozilla interfaces and the limited +resources of the Epiphany team to support non-release Mozilla snapshots. +*****************************************************************************]) +fi + +AC_CHECK_FILE([$MOZILLA_INCLUDE_ROOT/pipnss/nsIX509Cert.h], + [AC_DEFINE(HAVE_MOZILLA_PSM, 1, + [Define if you have the mozilla psm headers installed])]) + +AC_CHECK_FILE([$MOZILLA_INCLUDE_ROOT/nsIPassword.h], + [AC_DEFINE(HAVE_NSIPASSWORD_H, 1, + [Define if mozilla nsIPassword header is available])]) + +MOZILLA_WARN_CXXFLAGS="-Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor" +AC_SUBST([MOZILLA_WARN_CXXFLAGS]) + +dnl ******************************* +dnl Internationalization +dnl ******************************* +dnl Add the languages which your application supports here. + +ALL_LINGUAS="am ar az be bg bn bs ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gu he hi hr hu id is it ja ko li lt mi mk ml mn ms nb ne nl nn no pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th tk tr uk vi wa zh_CN zh_TW" +GETTEXT_PACKAGE=epiphany +AC_SUBST([GETTEXT_PACKAGE]) +AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Gettext package]) +AM_GLIB_GNU_GETTEXT + +dnl uninstalled share dir to search data +AC_DEFINE_UNQUOTED([SHARE_UNINSTALLED_DIR], ["`pwd`/data"], [path to source data dir]) + +GTK_DOC_CHECK([1.0]) + +AC_CONFIG_FILES([ +Makefile +data/Makefile +data/epiphany-1.6.pc +data/glade/Makefile +data/art/Makefile +data/ui/Makefile +doc/Makefile +doc/reference/Makefile +lib/Makefile +lib/egg/Makefile +lib/widgets/Makefile +embed/Makefile +embed/mozilla/Makefile +src/Makefile +src/bookmarks/Makefile +help/Makefile +help/C/Makefile +help/es/Makefile +help/eu/Makefile +help/ja/Makefile +po/Makefile.in +]) + +AC_OUTPUT diff --git a/data/.cvsignore b/data/.cvsignore index 181c80d45..e6b3a3b26 100644 --- a/data/.cvsignore +++ b/data/.cvsignore @@ -4,6 +4,4 @@ Makefile.in *.schemas epiphany.desktop bme.desktop -epiphany-1.0.pc -epiphany-1.2.pc -epiphany-1.4.pc +*.pc diff --git a/data/Makefile.am b/data/Makefile.am index f7c94e813..8b6ef68fd 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -30,7 +30,7 @@ mimepermissiondir = $(pkgdatadir) mimepermission_DATA = mime-types-permissions.xml pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = epiphany-1.4.pc +pkgconfig_DATA = epiphany-1.6.pc install-data-local: if GCONF_SCHEMAS_INSTALL diff --git a/data/art/Makefile.am b/data/art/Makefile.am index cc27b7231..3ace0c8df 100644 --- a/data/art/Makefile.am +++ b/data/art/Makefile.am @@ -1,6 +1,5 @@ art_DATA = \ - epiphany-secure.png \ - epiphany-unsecure.png \ + epiphany-close-tab.png \ epiphany-entry.png \ epiphany-download.png \ epiphany-history.png \ diff --git a/data/art/epiphany-close-tab.png b/data/art/epiphany-close-tab.png new file mode 100644 index 000000000..43a549aa1 Binary files /dev/null and b/data/art/epiphany-close-tab.png differ diff --git a/data/art/epiphany-secure.png b/data/art/epiphany-secure.png deleted file mode 100644 index 36b3fc8b5..000000000 Binary files a/data/art/epiphany-secure.png and /dev/null differ diff --git a/data/art/epiphany-unsecure.png b/data/art/epiphany-unsecure.png deleted file mode 100644 index d6699dc94..000000000 Binary files a/data/art/epiphany-unsecure.png and /dev/null differ diff --git a/data/epiphany-1.4.pc.in b/data/epiphany-1.4.pc.in deleted file mode 100644 index bd81d700b..000000000 --- a/data/epiphany-1.4.pc.in +++ /dev/null @@ -1,12 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@/epiphany-@EPIPHANY_MAJOR@ -extensionsdir=@libdir@/epiphany-@EPIPHANY_MAJOR@/extensions - -Name: Epiphany Browser -Description: GNOME Web Browser -Version: @VERSION@ -Requires: gtk+-2.0, libxml-2.0, libgnomeui-2.0, bonobo-activation-2.0, ORBit-2.0, libglade-2.0, gnome-vfs-2.0, gnome-vfs-module-2.0, gconf-2.0 -Libs: -L${libdir} -Cflags: -I${includedir} diff --git a/data/epiphany-1.6.pc.in b/data/epiphany-1.6.pc.in new file mode 100644 index 000000000..bd81d700b --- /dev/null +++ b/data/epiphany-1.6.pc.in @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@/epiphany-@EPIPHANY_MAJOR@ +extensionsdir=@libdir@/epiphany-@EPIPHANY_MAJOR@/extensions + +Name: Epiphany Browser +Description: GNOME Web Browser +Version: @VERSION@ +Requires: gtk+-2.0, libxml-2.0, libgnomeui-2.0, bonobo-activation-2.0, ORBit-2.0, libglade-2.0, gnome-vfs-2.0, gnome-vfs-module-2.0, gconf-2.0 +Libs: -L${libdir} +Cflags: -I${includedir} diff --git a/data/ui/epiphany-ui.xml b/data/ui/epiphany-ui.xml index 58f8ae44e..6b4bad784 100644 --- a/data/ui/epiphany-ui.xml +++ b/data/ui/epiphany-ui.xml @@ -162,6 +162,23 @@ + + + + + + + + + + + + + + + + + diff --git a/embed/downloader-view.c b/embed/downloader-view.c index fd6611716..2029a701c 100644 --- a/embed/downloader-view.c +++ b/embed/downloader-view.c @@ -26,7 +26,6 @@ #include "downloader-view.h" #include "ephy-file-helpers.h" #include "ephy-embed-shell.h" -#include "ephy-cell-renderer-progress.h" #include "ephy-stock-icons.h" #include @@ -37,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -48,6 +48,7 @@ enum { + COL_STATE, COL_PERCENT, COL_IMAGE, COL_FILE, @@ -57,7 +58,7 @@ enum enum { - PERCENT_COL_POS, + PROGRESS_COL_POS, FILE_COL_POS, REMAINING_COL_POS }; @@ -299,10 +300,10 @@ update_download_row (DownloaderView *dv, EphyDownload *download) GtkTreePath *path; GtkTreeIter iter; EphyDownloadState state; - long total, current, remaining_secs; + long total, current, remaining_secs = 0; char *remaining, *file, *cur_progress, *name; struct tm; - int percent; + int percent = 0; row_ref = get_row_from_download (dv, download); g_return_if_fail (row_ref != NULL); @@ -311,21 +312,15 @@ update_download_row (DownloaderView *dv, EphyDownload *download) state = ephy_download_get_state (download); switch (state) { - case EPHY_DOWNLOAD_FAILED: - percent = -2; - remaining_secs = 0; - break; case EPHY_DOWNLOAD_COMPLETED: downloader_view_remove_download (dv, download); return; + case EPHY_DOWNLOAD_PAUSED: case EPHY_DOWNLOAD_DOWNLOADING: - case EPHY_DOWNLOAD_PAUSED: percent = ephy_download_get_percent (download); remaining_secs = ephy_download_get_remaining_time (download); break; default: - percent = 0; - remaining_secs = 0; break; } @@ -363,6 +358,7 @@ update_download_row (DownloaderView *dv, EphyDownload *download) gtk_tree_model_get_iter (dv->priv->model, &iter, path); gtk_list_store_set (GTK_LIST_STORE (dv->priv->model), &iter, + COL_STATE, state, COL_PERCENT, percent, COL_FILE, file, COL_REMAINING, remaining, @@ -518,6 +514,38 @@ selection_changed (GtkTreeSelection *selection, DownloaderView *dv) update_buttons (dv); } +static void +progress_cell_data_func (GtkTreeViewColumn *col, + GtkCellRenderer *renderer, + GtkTreeModel *model, + GtkTreeIter *iter, + gpointer user_data) +{ + EphyDownloadState state; + int percent; + + gtk_tree_model_get (model, iter, + COL_STATE, &state, + COL_PERCENT, &percent, + -1); + + switch (state) + { + case EPHY_DOWNLOAD_INITIALISING: + g_object_set (renderer, "text", Q_("download status|Unknown"), NULL); + break; + case EPHY_DOWNLOAD_FAILED: + g_object_set (renderer, "text", Q_("download status|Failed"), NULL); + break; + case EPHY_DOWNLOAD_DOWNLOADING: + case EPHY_DOWNLOAD_PAUSED: + g_object_set (renderer, "text", NULL, "value", percent, NULL); + break; + default: + g_return_if_reached (); + } +} + static void downloader_view_build_ui (DownloaderView *dv) { @@ -544,7 +572,8 @@ downloader_view_build_ui (DownloaderView *dv) gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->treeview)), GTK_SELECTION_BROWSE); - liststore = gtk_list_store_new (5, + liststore = gtk_list_store_new (6, + G_TYPE_INT, G_TYPE_INT, GDK_TYPE_PIXBUF, G_TYPE_STRING, @@ -576,15 +605,15 @@ downloader_view_build_ui (DownloaderView *dv) gtk_tree_view_column_set_sort_column_id (column, COL_FILE); gtk_tree_view_column_set_spacing (column, 3); - /* Percent column */ - renderer = ephy_cell_renderer_progress_new (); + /* Progress column */ + renderer = gtk_cell_renderer_progress_new (); g_object_set (renderer, "xalign", 0.5, NULL); gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW(priv->treeview), - PERCENT_COL_POS, _("%"), + PROGRESS_COL_POS, _("%"), renderer, - "value", COL_PERCENT, NULL); - column = gtk_tree_view_get_column (GTK_TREE_VIEW(priv->treeview), PERCENT_COL_POS); + column = gtk_tree_view_get_column (GTK_TREE_VIEW(priv->treeview), PROGRESS_COL_POS); + gtk_tree_view_column_set_cell_data_func(column, renderer, progress_cell_data_func, NULL, NULL); gtk_tree_view_column_set_sort_column_id (column, COL_PERCENT); /* Remainng time column */ diff --git a/embed/ephy-download.h b/embed/ephy-download.h index 749c55213..64d483b2a 100644 --- a/embed/ephy-download.h +++ b/embed/ephy-download.h @@ -39,6 +39,7 @@ typedef struct EphyDownloadPrivate EphyDownloadPrivate; typedef enum { + EPHY_DOWNLOAD_INITIALISING, EPHY_DOWNLOAD_DOWNLOADING, EPHY_DOWNLOAD_PAUSED, EPHY_DOWNLOAD_COMPLETED, diff --git a/embed/ephy-embed-factory.c b/embed/ephy-embed-factory.c index 5a81004f0..ef382c9eb 100644 --- a/embed/ephy-embed-factory.c +++ b/embed/ephy-embed-factory.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000-2003 Marco Pesenti Gritti + * Copyright (C) 2000-2004 Marco Pesenti Gritti * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,68 +26,39 @@ #include "mozilla-embed.h" #include "mozilla-embed-persist.h" #include "mozilla-embed-single.h" +#include "ephy-embed.h" +#include "ephy-embed-persist.h" +#include "ephy-embed-single.h" -#include - -typedef enum -{ - EPHY_EMBED_OBJECT, - EPHY_EMBED_PERSIST_OBJECT, - EPHY_EMBED_SINGLE_OBJECT -} EmbedObjectType; - -static EmbedObjectType -type_from_id (const char *object_id) +/** + * ephy_embed_factory_new_object: + * @type: a #GType specifying which object to create + * + * Create an instance of an object implementing the @type interface. + * + * Return value: the object instance + **/ +GObject * +ephy_embed_factory_new_object (GType type) { - EmbedObjectType result = 0; + GObject *object = NULL; - if (strcmp (object_id, "EphyEmbed") == 0) + if (type == EPHY_TYPE_EMBED) { - result = EPHY_EMBED_OBJECT; + object = g_object_new (MOZILLA_TYPE_EMBED, NULL); } - else if (strcmp (object_id, "EphyEmbedPersist") == 0) + else if (type == EPHY_TYPE_EMBED_PERSIST) { - result = EPHY_EMBED_PERSIST_OBJECT; + object = g_object_new (MOZILLA_TYPE_EMBED_PERSIST, NULL); } - else if (strcmp (object_id, "EphyEmbedSingle") == 0) + else if (type == EPHY_TYPE_EMBED_SINGLE) { - result = EPHY_EMBED_SINGLE_OBJECT; + object = g_object_new (MOZILLA_TYPE_EMBED_SINGLE, NULL); } else { g_assert_not_reached (); } - return result; -} - -/** - * ephy_embed_factory_new_object: - * @object_id: identifier of the object to create - * - * Create an instance of the object identified by @object_id. - * - * Return value: the object instance - **/ -GObject * -ephy_embed_factory_new_object (const char *object_id) -{ - GObject *object; - - switch (type_from_id (object_id)) - { - case EPHY_EMBED_OBJECT: - object = g_object_new (MOZILLA_TYPE_EMBED, NULL); - break; - case EPHY_EMBED_PERSIST_OBJECT: - object = g_object_new (MOZILLA_TYPE_EMBED_PERSIST, NULL); - break; - case EPHY_EMBED_SINGLE_OBJECT: - object = g_object_new (MOZILLA_TYPE_EMBED_SINGLE, NULL); - break; - default: - object = NULL; - } - return object; } diff --git a/embed/ephy-embed-factory.h b/embed/ephy-embed-factory.h index 9c8425f7d..9d4774147 100644 --- a/embed/ephy-embed-factory.h +++ b/embed/ephy-embed-factory.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000-2003 Marco Pesenti Gritti + * Copyright (C) 2000-2004 Marco Pesenti Gritti * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,7 +27,7 @@ G_BEGIN_DECLS -GObject *ephy_embed_factory_new_object (const char *object_id); +GObject *ephy_embed_factory_new_object (GType type); G_END_DECLS diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c index 28c3706ff..1bb7c637d 100644 --- a/embed/ephy-embed-shell.c +++ b/embed/ephy-embed-shell.c @@ -189,7 +189,7 @@ ephy_embed_shell_get_embed_single (EphyEmbedShell *shell) if (shell->priv->embed_single == NULL) { shell->priv->embed_single = EPHY_EMBED_SINGLE - (ephy_embed_factory_new_object ("EphyEmbedSingle")); + (ephy_embed_factory_new_object (EPHY_TYPE_EMBED_SINGLE)); } return G_OBJECT (shell->priv->embed_single); diff --git a/embed/ephy-encodings.c b/embed/ephy-encodings.c index b58fbd9e5..868391c29 100644 --- a/embed/ephy-encodings.c +++ b/embed/ephy-encodings.c @@ -484,21 +484,6 @@ ephy_encodings_init (EphyEncodings *encodings) g_slist_free (list); } -void -ephy_encoding_info_free (EphyEncodingInfo *info) -{ - if (info) - { - g_free (info->encoding); - g_free (info->hint_encoding); - g_free (info->parent_encoding); - g_free (info->prev_doc_encoding); - g_free (info->forced_encoding); - g_free (info->default_encoding); - g_free (info); - } -} - EphyEncodings * ephy_encodings_new (void) { diff --git a/embed/ephy-encodings.h b/embed/ephy-encodings.h index bb8dfea58..265c827eb 100644 --- a/embed/ephy-encodings.h +++ b/embed/ephy-encodings.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003 Christian Persch + * Copyright (C) 2003, 2004 Christian Persch * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -88,20 +88,6 @@ typedef enum } EphyEncodingSource; -typedef struct -{ - char *encoding; - char *default_encoding; - char *hint_encoding; - char *prev_doc_encoding; - char *forced_encoding; - char *parent_encoding; - EphyEncodingSource encoding_source; - EphyEncodingSource hint_encoding_source; - EphyEncodingSource parent_encoding_source; -} -EphyEncodingInfo; - enum { EPHY_NODE_ENCODING_PROP_TITLE = 1, @@ -145,8 +131,6 @@ void ephy_encodings_add_recent (EphyEncodings *encodings, GList *ephy_encodings_get_recent (EphyEncodings *encodings); -void ephy_encoding_info_free (EphyEncodingInfo *info); - G_END_DECLS #endif diff --git a/embed/ephy-favicon-cache.c b/embed/ephy-favicon-cache.c index 1854c6813..6d012d322 100644 --- a/embed/ephy-favicon-cache.c +++ b/embed/ephy-favicon-cache.c @@ -376,7 +376,7 @@ ephy_favicon_cache_download (EphyFaviconCache *cache, dest = g_build_filename (cache->priv->directory, filename, NULL); persist = EPHY_EMBED_PERSIST - (ephy_embed_factory_new_object ("EphyEmbedPersist")); + (ephy_embed_factory_new_object (EPHY_TYPE_EMBED_PERSIST)); ephy_embed_persist_set_dest (persist, dest); ephy_embed_persist_set_flags (persist, EMBED_PERSIST_NO_VIEW); diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp index 1f7d27bd4..c3891bc5f 100644 --- a/embed/mozilla/EventContext.cpp +++ b/embed/mozilla/EventContext.cpp @@ -653,8 +653,9 @@ nsresult EventContext::GetMouseEventInfo (nsIDOMMouseEvent *aMouseEvent, Mozilla aMouseEvent->GetShiftKey(&mod_key); if (mod_key) info->modifier |= GDK_SHIFT_MASK; - aMouseEvent->GetMetaKey(&mod_key); - if (mod_key) info->modifier |= GDK_MOD2_MASK; + /* no need to check GetMetaKey, it's always PR_FALSE, + * see widget/src/gtk2/nsWindow.cpp:InitMouseEvent + */ aMouseEvent->GetCtrlKey(&mod_key); if (mod_key) info->modifier |= GDK_CONTROL_MASK; diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp index 9070b6caa..7e25a1faa 100644 --- a/embed/mozilla/MozDownload.cpp +++ b/embed/mozilla/MozDownload.cpp @@ -69,7 +69,7 @@ MozDownload::MozDownload() : mMaxSize(-1), mStatus(NS_OK), mEmbedPersist(nsnull), - mDownloadState(EPHY_DOWNLOAD_DOWNLOADING) + mDownloadState(EPHY_DOWNLOAD_INITIALISING) { LOG ("MozDownload ctor (%p)", (void *) this) } diff --git a/lib/egg/.cvsignore b/lib/egg/.cvsignore index 3dda72986..bb66b8fe5 100644 --- a/lib/egg/.cvsignore +++ b/lib/egg/.cvsignore @@ -1,2 +1,4 @@ Makefile.in Makefile +eggmarshalers.h +eggmarshalers.c diff --git a/lib/egg/Makefile.am b/lib/egg/Makefile.am index 09de92ac5..7d2471e68 100644 --- a/lib/egg/Makefile.am +++ b/lib/egg/Makefile.am @@ -8,6 +8,7 @@ INCLUDES = \ noinst_LTLIBRARIES = libegg.la EGGSOURCES = \ + eggdropdowntoolbutton.c \ eggtreemultidnd.c \ egg-editable-toolbar.c \ egg-toolbars-model.c \ @@ -21,6 +22,7 @@ libegg_la_SOURCES = \ eggmarshalers.c EGGHEADERS = \ + eggdropdowntoolbutton.h \ eggtreemultidnd.h \ egg-editable-toolbar.h \ egg-toolbars-model.h \ @@ -34,6 +36,8 @@ noinst_HEADERS = \ eggmarshalers.h \ eggintl.h +BUILT_SOURCES = eggmarshalers.h eggmarshalers.c + eggmarshalers.h: eggmarshalers.list cd $(srcdir) \ && $(GLIB_GENMARSHAL) --prefix=_egg_marshal eggmarshalers.list --header > xgen-emh \ diff --git a/lib/egg/eggdropdowntoolbutton.c b/lib/egg/eggdropdowntoolbutton.c new file mode 100644 index 000000000..0ffe2f588 --- /dev/null +++ b/lib/egg/eggdropdowntoolbutton.c @@ -0,0 +1,411 @@ +/* GTK - The GIMP Toolkit + * + * Copyright (C) 2003 Ricardo Fernandez Pascual + * Copyright (C) 2004 Paolo Borelli + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + + +#include "config.h" + +#include "eggdropdowntoolbutton.h" + +#include +#include +#include +#include +#include +#include + + +#define EGG_DROPDOWN_TOOL_BUTTON_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EGG_TYPE_DROPDOWN_TOOL_BUTTON, EggDropdownToolButtonPrivate)) + +struct _EggDropdownToolButtonPrivate +{ + GtkWidget *button; + GtkWidget *arrow_button; + GtkMenu *menu; +}; + +static void egg_dropdown_tool_button_init (EggDropdownToolButton *button); +static void egg_dropdown_tool_button_class_init (EggDropdownToolButtonClass *klass); +static void egg_dropdown_tool_button_finalize (GObject *object); + +enum { + MENU_ACTIVATED, + LAST_SIGNAL +}; + +static gint signals[LAST_SIGNAL]; + +static GObjectClass *parent_class = NULL; + +GType +egg_dropdown_tool_button_get_type (void) +{ + static GType type = 0; + + if (type == 0) + { + static const GTypeInfo info = + { + sizeof (EggDropdownToolButtonClass), + (GBaseInitFunc) 0, + (GBaseFinalizeFunc) 0, + (GClassInitFunc) egg_dropdown_tool_button_class_init, + (GClassFinalizeFunc) 0, + NULL, + sizeof (EggDropdownToolButton), + 0, /* n_preallocs */ + (GInstanceInitFunc) egg_dropdown_tool_button_init + }; + + type = g_type_register_static (GTK_TYPE_TOOL_BUTTON, + "EggDropdownToolButton", + &info, 0); + } + + return type; +} + +static gboolean +egg_dropdown_tool_button_set_tooltip (GtkToolItem *tool_item, + GtkTooltips *tooltips, + const char *tip_text, + const char *tip_private) +{ + EggDropdownToolButton *button; + + g_return_val_if_fail (EGG_IS_DROPDOWN_TOOL_BUTTON (tool_item), FALSE); + + button = EGG_DROPDOWN_TOOL_BUTTON (tool_item); + gtk_tooltips_set_tip (tooltips, button->priv->button, tip_text, tip_private); + + return TRUE; +} + +static void +egg_dropdown_tool_button_class_init (EggDropdownToolButtonClass *klass) +{ + GObjectClass *object_class; + GtkToolItemClass *toolitem_class; + GtkToolButtonClass *toolbutton_class; + + parent_class = g_type_class_peek_parent (klass); + + object_class = (GObjectClass *)klass; + toolitem_class = (GtkToolItemClass *)klass; + toolbutton_class = (GtkToolButtonClass *)klass; + + object_class->finalize = egg_dropdown_tool_button_finalize; + toolitem_class->set_tooltip = egg_dropdown_tool_button_set_tooltip; + + signals[MENU_ACTIVATED] = + g_signal_new ("menu-activated", + G_OBJECT_CLASS_TYPE (klass), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (EggDropdownToolButtonClass, menu_activated), + NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, 0); + + g_type_class_add_private (object_class, sizeof (EggDropdownToolButtonPrivate)); +} + +static void +button_state_changed_cb (GtkWidget *widget, + GtkStateType previous_state, + EggDropdownToolButton *button) +{ + EggDropdownToolButtonPrivate *priv = button->priv; + GtkWidget *b; + GtkStateType state = GTK_WIDGET_STATE (widget); + + b = (widget == priv->arrow_button) ? priv->button : priv->arrow_button; + + g_signal_handlers_block_by_func (G_OBJECT (b), + G_CALLBACK (button_state_changed_cb), + button); + + if (state == GTK_STATE_PRELIGHT && + previous_state != GTK_STATE_ACTIVE) + { + gtk_widget_set_state (b, state); + } + else if (state == GTK_STATE_NORMAL) + { + gtk_widget_set_state (b, state); + } + else if (state == GTK_STATE_ACTIVE) + { + gtk_widget_set_state (b, GTK_STATE_NORMAL); + } + + g_signal_handlers_unblock_by_func (G_OBJECT (b), + G_CALLBACK (button_state_changed_cb), + button); +} + +static void +menu_position_func (GtkMenu *menu, + int *x, + int *y, + gboolean *push_in, + EggDropdownToolButton *button) +{ + EggDropdownToolButtonPrivate *priv; + GtkWidget *widget; + GtkRequisition menu_requisition; + int max_x, max_y; + + priv = button->priv; + widget = GTK_WIDGET (button); + + gdk_window_get_origin (widget->window, x, y); + gtk_widget_size_request (GTK_WIDGET (priv->menu), &menu_requisition); + + if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL) + *x += widget->allocation.x + + widget->allocation.width - + menu_requisition.width; + else + *x += widget->allocation.x; + + *y += widget->allocation.y + widget->allocation.height; + + /* Make sure we are on the screen. */ + max_x = MAX (0, gdk_screen_width () - menu_requisition.width); + max_y = MAX (0, gdk_screen_height () - menu_requisition.height); + + *x = CLAMP (*x, 0, max_x); + *y = CLAMP (*y, 0, max_y); +} + +static void +popup_menu_under_arrow (EggDropdownToolButton *button, + GdkEventButton *event) +{ + EggDropdownToolButtonPrivate *priv = button->priv; + + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->arrow_button), TRUE); + + g_signal_emit (button, signals[MENU_ACTIVATED], 0); + + if (!priv->menu) + return; + + gtk_menu_popup (priv->menu, NULL, NULL, + (GtkMenuPositionFunc) menu_position_func, + button, + event ? event->button : 0, + event ? event->time : gtk_get_current_event_time ()); +} + +static gboolean +arrow_button_press_event_cb (GtkWidget *widget, + GdkEventButton *event, + EggDropdownToolButton *button) +{ + popup_menu_under_arrow (button, event); + + return TRUE; +} + +static gboolean +arrow_key_press_event_cb (GtkWidget *widget, + GdkEventKey *event, + EggDropdownToolButton *button) +{ + if (event->keyval == GDK_space || + event->keyval == GDK_KP_Space || + event->keyval == GDK_Return || + event->keyval == GDK_KP_Enter || + event->keyval == GDK_Menu) + { + popup_menu_under_arrow (button, NULL); + } + + return FALSE; +} + +/* right click on the button shows the menu */ +static gboolean +button_button_press_event_cb (GtkWidget *widget, + GdkEventButton *event, + EggDropdownToolButton *button) +{ + if (event->button == 3) + { + popup_menu_under_arrow (button, event); + + return TRUE; + } + + return FALSE; +} + +static void +button_popup_menu_cb (GtkWidget *widget, + EggDropdownToolButton *button) +{ + popup_menu_under_arrow (button, NULL); +} + +static void +egg_dropdown_tool_button_init (EggDropdownToolButton *button) +{ + GtkWidget *hbox; + GtkWidget *arrow; + GtkWidget *arrow_button; + GtkWidget *real_button; + + button->priv = EGG_DROPDOWN_TOOL_BUTTON_GET_PRIVATE (button); + + gtk_tool_item_set_homogeneous (GTK_TOOL_ITEM (button), FALSE); + + hbox = gtk_hbox_new (FALSE, 0); + + real_button = GTK_BIN (button)->child; + g_object_ref (real_button); + gtk_container_remove (GTK_CONTAINER (button), real_button); + gtk_container_add (GTK_CONTAINER (hbox), real_button); + g_object_unref (real_button); + + arrow_button = gtk_toggle_button_new (); + arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_OUT); + gtk_button_set_relief (GTK_BUTTON (arrow_button), GTK_RELIEF_NONE); + gtk_container_add (GTK_CONTAINER (arrow_button), arrow); + + gtk_box_pack_end (GTK_BOX (hbox), arrow_button, + FALSE, FALSE, 0); + gtk_widget_show_all (hbox); + + gtk_container_add (GTK_CONTAINER (button), hbox); + + button->priv->button = real_button; + button->priv->arrow_button = arrow_button; + + g_signal_connect (real_button, "state_changed", + G_CALLBACK (button_state_changed_cb), button); + g_signal_connect (real_button, "button_press_event", + G_CALLBACK (button_button_press_event_cb), button); + g_signal_connect (real_button, "popup_menu", + G_CALLBACK (button_popup_menu_cb), button); + g_signal_connect (arrow_button, "state_changed", + G_CALLBACK (button_state_changed_cb), button); + g_signal_connect (arrow_button, "key_press_event", + G_CALLBACK (arrow_key_press_event_cb), button); + g_signal_connect (arrow_button, "button_press_event", + G_CALLBACK (arrow_button_press_event_cb), button); +} + +static void +egg_dropdown_tool_button_finalize (GObject *object) +{ + EggDropdownToolButton *button; + + button = EGG_DROPDOWN_TOOL_BUTTON (object); + + if (button->priv->menu) + g_object_unref (button->priv->menu); + + G_OBJECT_CLASS (parent_class)->finalize (object); +} + +GtkToolItem * +egg_dropdown_tool_button_new (void) +{ + EggDropdownToolButton *button; + + button = g_object_new (EGG_TYPE_DROPDOWN_TOOL_BUTTON, + NULL); + + return GTK_TOOL_ITEM (button); +} + +GtkToolItem * +egg_dropdown_tool_button_new_from_stock (const gchar *stock_id) +{ + EggDropdownToolButton *button; + + g_return_val_if_fail (stock_id != NULL, NULL); + + button = g_object_new (EGG_TYPE_DROPDOWN_TOOL_BUTTON, + "stock_id", stock_id, + NULL); + + return GTK_TOOL_ITEM (button); +} + +/* Callback for the "deactivate" signal on the pop-up menu. + * This is used so that we unset the state of the toggle button + * when the pop-up menu disappears. + */ +static int +menu_deactivate_cb (GtkMenuShell *menu_shell, + EggDropdownToolButton *button) +{ + EggDropdownToolButtonPrivate *priv = button->priv; + + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->arrow_button), FALSE); + + return TRUE; +} + +void +egg_dropdown_tool_button_set_menu (EggDropdownToolButton *button, + GtkMenuShell *menu) +{ + EggDropdownToolButtonPrivate *priv; + + g_return_if_fail (EGG_IS_DROPDOWN_TOOL_BUTTON (button)); + g_return_if_fail (GTK_IS_MENU (menu)); + + priv = button->priv; + + if (priv->menu != GTK_MENU (menu)) + { + if (priv->menu) + g_object_unref (priv->menu); + + priv->menu = GTK_MENU (menu); + + g_object_ref (priv->menu); + gtk_object_sink (GTK_OBJECT (priv->menu)); + + g_signal_connect (button->priv->menu, "deactivate", + G_CALLBACK (menu_deactivate_cb), button); + } +} + +GtkMenuShell * +egg_dropdown_tool_button_get_menu (EggDropdownToolButton *button) +{ + return GTK_MENU_SHELL (button->priv->menu); +} + +void +egg_dropdown_tool_button_set_arrow_tooltip (EggDropdownToolButton *button, + GtkTooltips *tooltips, + const gchar *tip_text, + const gchar *tip_private) +{ + g_return_if_fail (EGG_IS_DROPDOWN_TOOL_BUTTON (button)); + + gtk_tooltips_set_tip (tooltips, button->priv->arrow_button, tip_text, tip_private); +} + diff --git a/lib/egg/eggdropdowntoolbutton.h b/lib/egg/eggdropdowntoolbutton.h new file mode 100644 index 000000000..2cf26e013 --- /dev/null +++ b/lib/egg/eggdropdowntoolbutton.h @@ -0,0 +1,73 @@ +/* GTK - The GIMP Toolkit + * + * Copyright (C) 2003 Ricardo Fernandez Pascual + * Copyright (C) 2004 Paolo Borelli + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __EGG_DROPDOWN_TOOL_BUTTON_H__ +#define __EGG_DROPDOWN_TOOL_BUTTON_H__ + +#include +#include +#include + +G_BEGIN_DECLS + +#define EGG_TYPE_DROPDOWN_TOOL_BUTTON (egg_dropdown_tool_button_get_type ()) +#define EGG_DROPDOWN_TOOL_BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EGG_TYPE_DROPDOWN_TOOL_BUTTON, EggDropdownToolButton)) +#define EGG_DROPDOWN_TOOL_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EGG_TYPE_DROPDOWN_TOOL_BUTTON, EggDropdownToolButtonClass)) +#define EGG_IS_DROPDOWN_TOOL_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EGG_TYPE_DROPDOWN_TOOL_BUTTON)) +#define EGG_IS_DROPDOWN_TOOL_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EGG_TYPE_DROPDOWN_TOOL_BUTTON)) +#define EGG_DROPDOWN_TOOL_BUTTON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EGG_TYPE_DROPDOWN_TOOL_BUTTON, EggDropdownToolButtonClass)) + +typedef struct _EggDropdownToolButtonClass EggDropdownToolButtonClass; +typedef struct _EggDropdownToolButton EggDropdownToolButton; +typedef struct _EggDropdownToolButtonPrivate EggDropdownToolButtonPrivate; + +struct _EggDropdownToolButton +{ + GtkToolButton parent; + + /*< private >*/ + EggDropdownToolButtonPrivate *priv; +}; + +struct _EggDropdownToolButtonClass +{ + GtkToolButtonClass parent_class; + + void (*menu_activated) (EggDropdownToolButton *button); +}; + +GType egg_dropdown_tool_button_get_type (void); +GtkToolItem *egg_dropdown_tool_button_new (void); +GtkToolItem *egg_dropdown_tool_button_new_from_stock (const gchar *stock_id); + +void egg_dropdown_tool_button_set_menu (EggDropdownToolButton *button, + GtkMenuShell *menu); +GtkMenuShell *egg_dropdown_tool_button_get_menu (EggDropdownToolButton *button); + +void egg_dropdown_tool_button_set_arrow_tooltip (EggDropdownToolButton *button, + GtkTooltips *tooltips, + const gchar *tip_text, + const gchar *tip_private); + + +G_END_DECLS; + +#endif /* __EGG_DROPDOWN_TOOL_BUTTON_H__ */ diff --git a/lib/egg/eggmarshalers.c b/lib/egg/eggmarshalers.c deleted file mode 100644 index 1d336db0e..000000000 --- a/lib/egg/eggmarshalers.c +++ /dev/null @@ -1,638 +0,0 @@ - -#include - - -#ifdef G_ENABLE_DEBUG -#define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) -#define g_marshal_value_peek_char(v) g_value_get_char (v) -#define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) -#define g_marshal_value_peek_int(v) g_value_get_int (v) -#define g_marshal_value_peek_uint(v) g_value_get_uint (v) -#define g_marshal_value_peek_long(v) g_value_get_long (v) -#define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) -#define g_marshal_value_peek_int64(v) g_value_get_int64 (v) -#define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) -#define g_marshal_value_peek_enum(v) g_value_get_enum (v) -#define g_marshal_value_peek_flags(v) g_value_get_flags (v) -#define g_marshal_value_peek_float(v) g_value_get_float (v) -#define g_marshal_value_peek_double(v) g_value_get_double (v) -#define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) -#define g_marshal_value_peek_param(v) g_value_get_param (v) -#define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) -#define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) -#define g_marshal_value_peek_object(v) g_value_get_object (v) -#else /* !G_ENABLE_DEBUG */ -/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. - * Do not access GValues directly in your code. Instead, use the - * g_value_get_*() functions - */ -#define g_marshal_value_peek_boolean(v) (v)->data[0].v_int -#define g_marshal_value_peek_char(v) (v)->data[0].v_int -#define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint -#define g_marshal_value_peek_int(v) (v)->data[0].v_int -#define g_marshal_value_peek_uint(v) (v)->data[0].v_uint -#define g_marshal_value_peek_long(v) (v)->data[0].v_long -#define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong -#define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 -#define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 -#define g_marshal_value_peek_enum(v) (v)->data[0].v_int -#define g_marshal_value_peek_flags(v) (v)->data[0].v_uint -#define g_marshal_value_peek_float(v) (v)->data[0].v_float -#define g_marshal_value_peek_double(v) (v)->data[0].v_double -#define g_marshal_value_peek_string(v) (v)->data[0].v_pointer -#define g_marshal_value_peek_param(v) (v)->data[0].v_pointer -#define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer -#define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer -#define g_marshal_value_peek_object(v) (v)->data[0].v_pointer -#endif /* !G_ENABLE_DEBUG */ - - -/* VOID:OBJECT,OBJECT (eggmarshalers.list:1) */ -void -_egg_marshal_VOID__OBJECT_OBJECT (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, - gpointer arg_1, - gpointer arg_2, - gpointer data2); - register GMarshalFunc_VOID__OBJECT_OBJECT callback; - register GCClosure *cc = (GCClosure*) closure; - register gpointer data1, data2; - - g_return_if_fail (n_param_values == 3); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback); - - callback (data1, - g_marshal_value_peek_object (param_values + 1), - g_marshal_value_peek_object (param_values + 2), - data2); -} - -/* VOID:OBJECT,STRING,LONG,LONG (eggmarshalers.list:2) */ -void -_egg_marshal_VOID__OBJECT_STRING_LONG_LONG (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_STRING_LONG_LONG) (gpointer data1, - gpointer arg_1, - gpointer arg_2, - glong arg_3, - glong arg_4, - gpointer data2); - register GMarshalFunc_VOID__OBJECT_STRING_LONG_LONG callback; - register GCClosure *cc = (GCClosure*) closure; - register gpointer data1, data2; - - g_return_if_fail (n_param_values == 5); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_VOID__OBJECT_STRING_LONG_LONG) (marshal_data ? marshal_data : cc->callback); - - callback (data1, - g_marshal_value_peek_object (param_values + 1), - g_marshal_value_peek_string (param_values + 2), - g_marshal_value_peek_long (param_values + 3), - g_marshal_value_peek_long (param_values + 4), - data2); -} - -/* VOID:OBJECT,LONG (eggmarshalers.list:3) */ -void -_egg_marshal_VOID__OBJECT_LONG (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_LONG) (gpointer data1, - gpointer arg_1, - glong arg_2, - gpointer data2); - register GMarshalFunc_VOID__OBJECT_LONG callback; - register GCClosure *cc = (GCClosure*) closure; - register gpointer data1, data2; - - g_return_if_fail (n_param_values == 3); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_VOID__OBJECT_LONG) (marshal_data ? marshal_data : cc->callback); - - callback (data1, - g_marshal_value_peek_object (param_values + 1), - g_marshal_value_peek_long (param_values + 2), - data2); -} - -/* VOID:OBJECT,STRING,STRING (eggmarshalers.list:4) */ -void -_egg_marshal_VOID__OBJECT_STRING_STRING (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_STRING_STRING) (gpointer data1, - gpointer arg_1, - gpointer arg_2, - gpointer arg_3, - gpointer data2); - register GMarshalFunc_VOID__OBJECT_STRING_STRING callback; - register GCClosure *cc = (GCClosure*) closure; - register gpointer data1, data2; - - g_return_if_fail (n_param_values == 4); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_VOID__OBJECT_STRING_STRING) (marshal_data ? marshal_data : cc->callback); - - callback (data1, - g_marshal_value_peek_object (param_values + 1), - g_marshal_value_peek_string (param_values + 2), - g_marshal_value_peek_string (param_values + 3), - data2); -} - -/* VOID:UINT,UINT (eggmarshalers.list:5) */ -void -_egg_marshal_VOID__UINT_UINT (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__UINT_UINT) (gpointer data1, - guint arg_1, - guint arg_2, - gpointer data2); - register GMarshalFunc_VOID__UINT_UINT callback; - register GCClosure *cc = (GCClosure*) closure; - register gpointer data1, data2; - - g_return_if_fail (n_param_values == 3); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_VOID__UINT_UINT) (marshal_data ? marshal_data : cc->callback); - - callback (data1, - g_marshal_value_peek_uint (param_values + 1), - g_marshal_value_peek_uint (param_values + 2), - data2); -} - -/* BOOLEAN:INT (eggmarshalers.list:6) */ -void -_egg_marshal_BOOLEAN__INT (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef gboolean (*GMarshalFunc_BOOLEAN__INT) (gpointer data1, - gint arg_1, - gpointer data2); - register GMarshalFunc_BOOLEAN__INT callback; - register GCClosure *cc = (GCClosure*) closure; - register gpointer data1, data2; - gboolean v_return; - - g_return_if_fail (return_value != NULL); - g_return_if_fail (n_param_values == 2); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_BOOLEAN__INT) (marshal_data ? marshal_data : cc->callback); - - v_return = callback (data1, - g_marshal_value_peek_int (param_values + 1), - data2); - - g_value_set_boolean (return_value, v_return); -} - -/* BOOLEAN:ENUM (eggmarshalers.list:7) */ -void -_egg_marshal_BOOLEAN__ENUM (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef gboolean (*GMarshalFunc_BOOLEAN__ENUM) (gpointer data1, - gint arg_1, - gpointer data2); - register GMarshalFunc_BOOLEAN__ENUM callback; - register GCClosure *cc = (GCClosure*) closure; - register gpointer data1, data2; - gboolean v_return; - - g_return_if_fail (return_value != NULL); - g_return_if_fail (n_param_values == 2); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_BOOLEAN__ENUM) (marshal_data ? marshal_data : cc->callback); - - v_return = callback (data1, - g_marshal_value_peek_enum (param_values + 1), - data2); - - g_value_set_boolean (return_value, v_return); -} - -/* BOOLEAN:VOID (eggmarshalers.list:8) */ -void -_egg_marshal_BOOLEAN__VOID (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef gboolean (*GMarshalFunc_BOOLEAN__VOID) (gpointer data1, - gpointer data2); - register GMarshalFunc_BOOLEAN__VOID callback; - register GCClosure *cc = (GCClosure*) closure; - register gpointer data1, data2; - gboolean v_return; - - g_return_if_fail (return_value != NULL); - g_return_if_fail (n_param_values == 1); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_BOOLEAN__VOID) (marshal_data ? marshal_data : cc->callback); - - v_return = callback (data1, - data2); - - g_value_set_boolean (return_value, v_return); -} - -/* OBJECT:VOID (eggmarshalers.list:9) */ -void -_egg_marshal_OBJECT__VOID (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef GObject* (*GMarshalFunc_OBJECT__VOID) (gpointer data1, - gpointer data2); - register GMarshalFunc_OBJECT__VOID callback; - register GCClosure *cc = (GCClosure*) closure; - register gpointer data1, data2; - GObject* v_return; - - g_return_if_fail (return_value != NULL); - g_return_if_fail (n_param_values == 1); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_OBJECT__VOID) (marshal_data ? marshal_data : cc->callback); - - v_return = callback (data1, - data2); - - g_value_take_object (return_value, v_return); -} - -/* VOID:VOID (eggmarshalers.list:10) */ - -/* VOID:INT,INT (eggmarshalers.list:11) */ -void -_egg_marshal_VOID__INT_INT (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__INT_INT) (gpointer data1, - gint arg_1, - gint arg_2, - gpointer data2); - register GMarshalFunc_VOID__INT_INT callback; - register GCClosure *cc = (GCClosure*) closure; - register gpointer data1, data2; - - g_return_if_fail (n_param_values == 3); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_VOID__INT_INT) (marshal_data ? marshal_data : cc->callback); - - callback (data1, - g_marshal_value_peek_int (param_values + 1), - g_marshal_value_peek_int (param_values + 2), - data2); -} - -/* VOID:UINT,UINT (eggmarshalers.list:12) */ - -/* VOID:BOOLEAN (eggmarshalers.list:13) */ - -/* VOID:OBJECT,ENUM,BOXED (eggmarshalers.list:14) */ -void -_egg_marshal_VOID__OBJECT_ENUM_BOXED (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_ENUM_BOXED) (gpointer data1, - gpointer arg_1, - gint arg_2, - gpointer arg_3, - gpointer data2); - register GMarshalFunc_VOID__OBJECT_ENUM_BOXED callback; - register GCClosure *cc = (GCClosure*) closure; - register gpointer data1, data2; - - g_return_if_fail (n_param_values == 4); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_VOID__OBJECT_ENUM_BOXED) (marshal_data ? marshal_data : cc->callback); - - callback (data1, - g_marshal_value_peek_object (param_values + 1), - g_marshal_value_peek_enum (param_values + 2), - g_marshal_value_peek_boxed (param_values + 3), - data2); -} - -/* VOID:BOXED (eggmarshalers.list:15) */ - -/* BOOLEAN:BOOLEAN (eggmarshalers.list:16) */ -void -_egg_marshal_BOOLEAN__BOOLEAN (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef gboolean (*GMarshalFunc_BOOLEAN__BOOLEAN) (gpointer data1, - gboolean arg_1, - gpointer data2); - register GMarshalFunc_BOOLEAN__BOOLEAN callback; - register GCClosure *cc = (GCClosure*) closure; - register gpointer data1, data2; - gboolean v_return; - - g_return_if_fail (return_value != NULL); - g_return_if_fail (n_param_values == 2); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_BOOLEAN__BOOLEAN) (marshal_data ? marshal_data : cc->callback); - - v_return = callback (data1, - g_marshal_value_peek_boolean (param_values + 1), - data2); - - g_value_set_boolean (return_value, v_return); -} - -/* BOOLEAN:OBJECT,STRING,STRING (eggmarshalers.list:17) */ -void -_egg_marshal_BOOLEAN__OBJECT_STRING_STRING (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef gboolean (*GMarshalFunc_BOOLEAN__OBJECT_STRING_STRING) (gpointer data1, - gpointer arg_1, - gpointer arg_2, - gpointer arg_3, - gpointer data2); - register GMarshalFunc_BOOLEAN__OBJECT_STRING_STRING callback; - register GCClosure *cc = (GCClosure*) closure; - register gpointer data1, data2; - gboolean v_return; - - g_return_if_fail (return_value != NULL); - g_return_if_fail (n_param_values == 4); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_BOOLEAN__OBJECT_STRING_STRING) (marshal_data ? marshal_data : cc->callback); - - v_return = callback (data1, - g_marshal_value_peek_object (param_values + 1), - g_marshal_value_peek_string (param_values + 2), - g_marshal_value_peek_string (param_values + 3), - data2); - - g_value_set_boolean (return_value, v_return); -} - -/* STRING:POINTER (eggmarshalers.list:18) */ -void -_egg_marshal_STRING__POINTER (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef gchar* (*GMarshalFunc_STRING__POINTER) (gpointer data1, - gpointer arg_1, - gpointer data2); - register GMarshalFunc_STRING__POINTER callback; - register GCClosure *cc = (GCClosure*) closure; - register gpointer data1, data2; - gchar* v_return; - - g_return_if_fail (return_value != NULL); - g_return_if_fail (n_param_values == 2); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_STRING__POINTER) (marshal_data ? marshal_data : cc->callback); - - v_return = callback (data1, - g_marshal_value_peek_pointer (param_values + 1), - data2); - - g_value_take_string (return_value, v_return); -} - -/* STRING:STRING,STRING (eggmarshalers.list:19) */ -void -_egg_marshal_STRING__STRING_STRING (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef gchar* (*GMarshalFunc_STRING__STRING_STRING) (gpointer data1, - gpointer arg_1, - gpointer arg_2, - gpointer data2); - register GMarshalFunc_STRING__STRING_STRING callback; - register GCClosure *cc = (GCClosure*) closure; - register gpointer data1, data2; - gchar* v_return; - - g_return_if_fail (return_value != NULL); - g_return_if_fail (n_param_values == 3); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_STRING__STRING_STRING) (marshal_data ? marshal_data : cc->callback); - - v_return = callback (data1, - g_marshal_value_peek_string (param_values + 1), - g_marshal_value_peek_string (param_values + 2), - data2); - - g_value_take_string (return_value, v_return); -} - diff --git a/lib/egg/eggmarshalers.h b/lib/egg/eggmarshalers.h deleted file mode 100644 index af720ee2b..000000000 --- a/lib/egg/eggmarshalers.h +++ /dev/null @@ -1,143 +0,0 @@ - -#ifndef ___egg_marshal_MARSHAL_H__ -#define ___egg_marshal_MARSHAL_H__ - -#include - -G_BEGIN_DECLS - -/* VOID:OBJECT,OBJECT (eggmarshalers.list:1) */ -extern void _egg_marshal_VOID__OBJECT_OBJECT (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -/* VOID:OBJECT,STRING,LONG,LONG (eggmarshalers.list:2) */ -extern void _egg_marshal_VOID__OBJECT_STRING_LONG_LONG (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -/* VOID:OBJECT,LONG (eggmarshalers.list:3) */ -extern void _egg_marshal_VOID__OBJECT_LONG (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -/* VOID:OBJECT,STRING,STRING (eggmarshalers.list:4) */ -extern void _egg_marshal_VOID__OBJECT_STRING_STRING (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -/* VOID:UINT,UINT (eggmarshalers.list:5) */ -extern void _egg_marshal_VOID__UINT_UINT (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -/* BOOLEAN:INT (eggmarshalers.list:6) */ -extern void _egg_marshal_BOOLEAN__INT (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -/* BOOLEAN:ENUM (eggmarshalers.list:7) */ -extern void _egg_marshal_BOOLEAN__ENUM (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -/* BOOLEAN:VOID (eggmarshalers.list:8) */ -extern void _egg_marshal_BOOLEAN__VOID (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -/* OBJECT:VOID (eggmarshalers.list:9) */ -extern void _egg_marshal_OBJECT__VOID (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -/* VOID:VOID (eggmarshalers.list:10) */ -#define _egg_marshal_VOID__VOID g_cclosure_marshal_VOID__VOID - -/* VOID:INT,INT (eggmarshalers.list:11) */ -extern void _egg_marshal_VOID__INT_INT (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -/* VOID:UINT,UINT (eggmarshalers.list:12) */ - -/* VOID:BOOLEAN (eggmarshalers.list:13) */ -#define _egg_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN - -/* VOID:OBJECT,ENUM,BOXED (eggmarshalers.list:14) */ -extern void _egg_marshal_VOID__OBJECT_ENUM_BOXED (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -/* VOID:BOXED (eggmarshalers.list:15) */ -#define _egg_marshal_VOID__BOXED g_cclosure_marshal_VOID__BOXED - -/* BOOLEAN:BOOLEAN (eggmarshalers.list:16) */ -extern void _egg_marshal_BOOLEAN__BOOLEAN (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -/* BOOLEAN:OBJECT,STRING,STRING (eggmarshalers.list:17) */ -extern void _egg_marshal_BOOLEAN__OBJECT_STRING_STRING (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -/* STRING:POINTER (eggmarshalers.list:18) */ -extern void _egg_marshal_STRING__POINTER (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -/* STRING:STRING,STRING (eggmarshalers.list:19) */ -extern void _egg_marshal_STRING__STRING_STRING (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -G_END_DECLS - -#endif /* ___egg_marshal_MARSHAL_H__ */ - diff --git a/lib/egg/eggmarshalers.list b/lib/egg/eggmarshalers.list index 7b79b0f3a..97654cb09 100644 --- a/lib/egg/eggmarshalers.list +++ b/lib/egg/eggmarshalers.list @@ -15,5 +15,6 @@ VOID:OBJECT,ENUM,BOXED VOID:BOXED BOOLEAN:BOOLEAN BOOLEAN:OBJECT,STRING,STRING +BOOLEAN:ENUM,INT STRING:POINTER STRING:STRING,STRING diff --git a/lib/egg/update-from-egg.sh b/lib/egg/update-from-egg.sh index 50690440c..dd39b1fa0 100755 --- a/lib/egg/update-from-egg.sh +++ b/lib/egg/update-from-egg.sh @@ -30,6 +30,9 @@ for FILE in $EGGFILES; do if test -e $EGGDIR/treeviewutils/$FILE ; then SRCFILE=$EGGDIR/treeviewutils/$FILE fi + if test -e $EGGDIR/dropdowntoolbutton/$FILE; then + SRCFILE=$EGGDIR/dropdowntoolbutton/$FILE + fi fi if cmp -s $SRCFILE $FILE; then echo "File $FILE is unchanged" diff --git a/lib/ephy-stock-icons.c b/lib/ephy-stock-icons.c index 6134dce4e..566c2e37c 100644 --- a/lib/ephy-stock-icons.c +++ b/lib/ephy-stock-icons.c @@ -46,13 +46,15 @@ ephy_stock_icons_init (void) STOCK_VIEW_SOURCE, STOCK_SEND_MAIL, STOCK_ADD_BOOKMARK, - STOCK_PRINT_SETUP + STOCK_PRINT_SETUP, + STOCK_LOCK_INSECURE, + STOCK_LOCK_SECURE, + STOCK_LOCK_BROKEN }; static const GtkStockItem items[] = { - { EPHY_STOCK_SECURE, N_("Secure"), 0, 0, NULL }, - { EPHY_STOCK_UNSECURE, N_("Insecure"), 0, 0, NULL }, + { EPHY_STOCK_CLOSE_TAB, N_("Close Tab"), 0, 0, NULL }, { EPHY_STOCK_POPUPS, N_("Popup Windows"), 0, 0, NULL }, { EPHY_STOCK_HISTORY, N_("History"), 0, 0, NULL }, { EPHY_STOCK_BOOKMARKS, N_("Bookmarks"), 0, 0, NULL }, @@ -94,4 +96,6 @@ ephy_stock_icons_init (void) } g_object_unref (G_OBJECT (factory)); + + gtk_icon_size_register (EPHY_ICON_SIZE_TAB_BUTTON, 10, 10); } diff --git a/lib/ephy-stock-icons.h b/lib/ephy-stock-icons.h index 4984c2d13..53ed4d5d4 100644 --- a/lib/ephy-stock-icons.h +++ b/lib/ephy-stock-icons.h @@ -23,8 +23,9 @@ G_BEGIN_DECLS -#define EPHY_STOCK_SECURE "epiphany-secure" -#define EPHY_STOCK_UNSECURE "epiphany-unsecure" +#define EPHY_ICON_SIZE_TAB_BUTTON "epiphany-icon-size-tab-button" + +#define EPHY_STOCK_CLOSE_TAB "epiphany-close-tab" #define EPHY_STOCK_POPUPS "epiphany-popup-hidden" #define EPHY_STOCK_HISTORY "epiphany-history" #define EPHY_STOCK_BOOKMARKS "epiphany-bookmarks" @@ -37,6 +38,9 @@ G_BEGIN_DECLS #define STOCK_SEND_MAIL "stock_mail-send" #define STOCK_ADD_BOOKMARK "stock_add-bookmark" #define STOCK_PRINT_SETUP "stock_print-setup" +#define STOCK_LOCK_INSECURE "stock_lock-open" +#define STOCK_LOCK_SECURE "stock_lock" +#define STOCK_LOCK_BROKEN "stock_lock-broken" void ephy_stock_icons_init (void); diff --git a/lib/widgets/Makefile.am b/lib/widgets/Makefile.am index 5a5716f28..2f5169eb8 100644 --- a/lib/widgets/Makefile.am +++ b/lib/widgets/Makefile.am @@ -12,12 +12,6 @@ endif noinst_LTLIBRARIES = libephywidgets.la libephywidgets_la_SOURCES = \ - ephy-arrow-toolbutton.c \ - ephy-arrow-toolbutton.h \ - ephy-label.c \ - ephy-label.h \ - ephy-cell-renderer-progress.h \ - ephy-cell-renderer-progress.c \ ephy-location-entry.c \ ephy-location-entry.h \ ephy-node-view.c \ diff --git a/lib/widgets/ephy-arrow-toolbutton.c b/lib/widgets/ephy-arrow-toolbutton.c deleted file mode 100644 index aea936a78..000000000 --- a/lib/widgets/ephy-arrow-toolbutton.c +++ /dev/null @@ -1,273 +0,0 @@ -/* - * Copyright (C) 2002 Christophe Fergeau - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "ephy-arrow-toolbutton.h" -#include "ephy-marshal.h" -#include "ephy-gui.h" -#include "ephy-debug.h" - -#include -#include -#include -#include -#include - -#define EPHY_ARROW_TOOLBUTTON_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_ARROW_TOOLBUTTON, EphyArrowToolButtonPrivate)) - -struct EphyArrowToolButtonPrivate -{ - GtkWidget *arrow_widget; - GtkWidget *button; - GtkMenu *menu; -}; - -enum EphyArrowToolButtonSignalsEnum { - EPHY_ARROW_TOOL_BUTTON_MENU_ACTIVATED, - EPHY_ARROW_TOOL_BUTTON_LAST_SIGNAL -}; - -/* GObject boilerplate code */ -static void ephy_arrow_toolbutton_init (EphyArrowToolButton *arrow_toolbutton); -static void ephy_arrow_toolbutton_class_init (EphyArrowToolButtonClass *klass); -static void ephy_arrow_toolbutton_finalize (GObject *object); - -static GObjectClass *parent_class = NULL; - -static gint EphyArrowToolButtonSignals[EPHY_ARROW_TOOL_BUTTON_LAST_SIGNAL]; - -GType -ephy_arrow_toolbutton_get_type (void) -{ - static GType ephy_arrow_toolbutton_type = 0; - - if (ephy_arrow_toolbutton_type == 0) - { - static const GTypeInfo our_info = - { - sizeof (EphyArrowToolButtonClass), - NULL, /* base_init */ - NULL, /* base_finalize */ - (GClassInitFunc) ephy_arrow_toolbutton_class_init, - NULL, - NULL, /* class_data */ - sizeof (EphyArrowToolButton), - 0, /* n_preallocs */ - (GInstanceInitFunc) ephy_arrow_toolbutton_init - }; - - ephy_arrow_toolbutton_type = g_type_register_static (GTK_TYPE_TOOL_BUTTON, - "EphyArrowToolButton", - &our_info, 0); - } - - return ephy_arrow_toolbutton_type; -} - - -static gboolean -ephy_arrow_toolbutton_set_tooltip (GtkToolItem *tool_item, - GtkTooltips *tooltips, - const char *tip_text, - const char *tip_private) -{ - EphyArrowToolButton *button = EPHY_ARROW_TOOLBUTTON (tool_item); - - g_return_val_if_fail (EPHY_IS_ARROW_TOOLBUTTON (button), FALSE); - - gtk_tooltips_set_tip (tooltips, button->priv->button, tip_text, tip_private); - - return TRUE; -} - -static void -ephy_arrow_toolbutton_class_init (EphyArrowToolButtonClass *klass) -{ - GObjectClass *object_class = G_OBJECT_CLASS (klass); - GtkToolItemClass *tool_item_class = GTK_TOOL_ITEM_CLASS (klass); - - parent_class = g_type_class_peek_parent (klass); - - object_class->finalize = ephy_arrow_toolbutton_finalize; - - tool_item_class->set_tooltip = ephy_arrow_toolbutton_set_tooltip; - - EphyArrowToolButtonSignals[EPHY_ARROW_TOOL_BUTTON_MENU_ACTIVATED] = - g_signal_new - ("menu-activated", G_OBJECT_CLASS_TYPE (klass), - G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_LAST | G_SIGNAL_RUN_CLEANUP, - G_STRUCT_OFFSET (EphyArrowToolButtonClass, menu_activated), - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); - - g_type_class_add_private (object_class, sizeof (EphyArrowToolButtonPrivate)); -} - -static void -button_state_changed_cb (GtkWidget *widget, - GtkStateType previous_state, - EphyArrowToolButton *b) -{ - EphyArrowToolButtonPrivate *p = b->priv; - GtkWidget *button; - GtkStateType state = GTK_WIDGET_STATE (widget); - - button = (widget == p->arrow_widget) ? p->button : p->arrow_widget; - - g_signal_handlers_block_by_func - (G_OBJECT (button), - G_CALLBACK (button_state_changed_cb), - b); - if (state == GTK_STATE_PRELIGHT && - previous_state != GTK_STATE_ACTIVE) - { - gtk_widget_set_state (button, state); - } - else if (state == GTK_STATE_NORMAL) - { - gtk_widget_set_state (button, state); - } - else if (state == GTK_STATE_ACTIVE) - { - gtk_widget_set_state (button, GTK_STATE_NORMAL); - } - g_signal_handlers_unblock_by_func - (G_OBJECT (button), - G_CALLBACK (button_state_changed_cb), - b); -} - -static void -popup_menu_under_arrow (EphyArrowToolButton *b, GdkEventButton *event) -{ - EphyArrowToolButtonPrivate *p = b->priv; - - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (p->arrow_widget), TRUE); - LOG ("Emit menu activated signal"); - g_signal_emit (b, EphyArrowToolButtonSignals[EPHY_ARROW_TOOL_BUTTON_MENU_ACTIVATED], 0); - gtk_menu_popup (p->menu, NULL, NULL, ephy_gui_menu_position_under_widget, b, - event ? event->button : 0, - event ? event->time : gtk_get_current_event_time ()); -} - -static void -menu_deactivated_cb (GtkMenuShell *ms, EphyArrowToolButton *b) -{ - EphyArrowToolButtonPrivate *p = b->priv; - - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (p->arrow_widget), FALSE); -} - -static gboolean -arrow_button_press_event_cb (GtkWidget *widget, GdkEventButton *event, EphyArrowToolButton *b) -{ - popup_menu_under_arrow (b, event); - return TRUE; -} - -static gboolean -arrow_key_press_event_cb (GtkWidget *widget, GdkEventKey *event, EphyArrowToolButton *b) -{ - if (event->keyval == GDK_space - || event->keyval == GDK_KP_Space - || event->keyval == GDK_Return - || event->keyval == GDK_KP_Enter - || event->keyval == GDK_Menu) - { - popup_menu_under_arrow (b, NULL); - } - - return FALSE; -} - -static void -ephy_arrow_toolbutton_init (EphyArrowToolButton *arrowtb) -{ - GtkWidget *hbox; - GtkWidget *arrow; - GtkWidget *arrow_button; - GtkWidget *real_button; - - arrowtb->priv = EPHY_ARROW_TOOLBUTTON_GET_PRIVATE (arrowtb); - - gtk_tool_item_set_homogeneous (GTK_TOOL_ITEM (arrowtb), FALSE); - - hbox = gtk_hbox_new (FALSE, 0); - gtk_widget_show (hbox); - real_button = GTK_BIN (arrowtb)->child; - g_object_ref (real_button); - gtk_container_remove (GTK_CONTAINER (arrowtb), real_button); - gtk_container_add (GTK_CONTAINER (hbox), real_button); - gtk_container_add (GTK_CONTAINER (arrowtb), hbox); - g_object_unref (real_button); - - arrow_button = gtk_toggle_button_new (); - gtk_widget_show (arrow_button); - arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_OUT); - gtk_widget_show (arrow); - gtk_button_set_relief (GTK_BUTTON (arrow_button), GTK_RELIEF_NONE); - gtk_container_add (GTK_CONTAINER (arrow_button), arrow); - - gtk_box_pack_end (GTK_BOX (hbox), arrow_button, - FALSE, FALSE, 0); - - arrowtb->priv->button = real_button; - arrowtb->priv->arrow_widget = arrow_button; - - arrowtb->priv->menu = GTK_MENU (gtk_menu_new ()); - g_object_ref (arrowtb->priv->menu); - gtk_object_sink (GTK_OBJECT (arrowtb->priv->menu)); - - g_signal_connect (arrowtb->priv->menu, "deactivate", - G_CALLBACK (menu_deactivated_cb), arrowtb); - - g_signal_connect (real_button, "state_changed", - G_CALLBACK (button_state_changed_cb), - arrowtb); - g_signal_connect (arrow_button, "state_changed", - G_CALLBACK (button_state_changed_cb), - arrowtb); - g_signal_connect (arrow_button, "key_press_event", - G_CALLBACK (arrow_key_press_event_cb), - arrowtb); - g_signal_connect (arrow_button, "button_press_event", - G_CALLBACK (arrow_button_press_event_cb), - arrowtb); -} - -static void -ephy_arrow_toolbutton_finalize (GObject *object) -{ - EphyArrowToolButton *arrow_toolbutton = EPHY_ARROW_TOOLBUTTON (object); - - g_object_unref (arrow_toolbutton->priv->menu); - - G_OBJECT_CLASS (parent_class)->finalize (object); -} - -GtkMenuShell * -ephy_arrow_toolbutton_get_menu (EphyArrowToolButton *b) -{ - return GTK_MENU_SHELL (b->priv->menu); -} diff --git a/lib/widgets/ephy-arrow-toolbutton.h b/lib/widgets/ephy-arrow-toolbutton.h deleted file mode 100644 index be1193cae..000000000 --- a/lib/widgets/ephy-arrow-toolbutton.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (C) 2002 Christophe Fergeau - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ - */ - -#ifndef EPHY_ARROW_TOOLBUTTON_H -#define EPHY_ARROW_TOOLBUTTON_H - -#include -#include -#include - -G_BEGIN_DECLS - -#define EPHY_TYPE_ARROW_TOOLBUTTON (ephy_arrow_toolbutton_get_type ()) -#define EPHY_ARROW_TOOLBUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_ARROW_TOOLBUTTON, EphyArrowToolButton)) -#define EPHY_ARROW_TOOLBUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_ARROW_TOOLBUTTON, EphyArrowToolButtonClass)) -#define EPHY_IS_ARROW_TOOLBUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_ARROW_TOOLBUTTON)) -#define EPHY_IS_ARROW_TOOLBUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_ARROW_TOOLBUTTON)) -#define EPHY_ARROW_TOOLBUTTON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_ARROW_TOOLBUTTON, EphyArrowToolButtonClass)) - -typedef struct EphyArrowToolButtonClass EphyArrowToolButtonClass; -typedef struct EphyArrowToolButton EphyArrowToolButton; -typedef struct EphyArrowToolButtonPrivate EphyArrowToolButtonPrivate; - -struct EphyArrowToolButton -{ - GtkToolButton parent; - - /*< private >*/ - EphyArrowToolButtonPrivate *priv; -}; - -struct EphyArrowToolButtonClass -{ - GtkToolButtonClass parent_class; - - void (*menu_activated) (EphyArrowToolButton *b); -}; - -GType ephy_arrow_toolbutton_get_type (void); - -GtkMenuShell *ephy_arrow_toolbutton_get_menu (EphyArrowToolButton *b); - -G_END_DECLS; - -#endif /* EPHY_ARROW_TOOLBUTTON_H */ diff --git a/lib/widgets/ephy-cell-renderer-progress.c b/lib/widgets/ephy-cell-renderer-progress.c deleted file mode 100644 index 1253f10e0..000000000 --- a/lib/widgets/ephy-cell-renderer-progress.c +++ /dev/null @@ -1,388 +0,0 @@ -/* gtkcellrendererprogress.c - * Copyright (C) 2002 Naba Kumar - * heavily modified by Jörgen Scheibengruber - * heavily modified by Marco Pesenti Gritti - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ -/* - * Modified by the GTK+ Team and others 1997-2004. See the AUTHORS - * file for a list of people on the GTK+ Team. See the ChangeLog - * files for a list of changes. These files are distributed with - * GTK+ at ftp://ftp.gtk.org/pub/gtk/. - */ - -/* KEEP IN SYNC with the original in gtk+ (HEAD branch) */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include "ephy-cell-renderer-progress.h" -#include - -#define EPHY_CELL_RENDERER_PROGRESS_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), \ - EPHY_TYPE_CELL_RENDERER_PROGRESS, \ - EphyCellRendererProgressPrivate)) - -enum -{ - PROP_0, - PROP_VALUE, - PROP_TEXT -}; - -struct _EphyCellRendererProgressPrivate -{ - gint value; - gchar *text; - gchar *label; - gint min_h; - gint min_w; -}; - -static void ephy_cell_renderer_progress_finalize (GObject *object); -static void ephy_cell_renderer_progress_get_property (GObject *object, - guint param_id, - GValue *value, - GParamSpec *pspec); -static void ephy_cell_renderer_progress_set_property (GObject *object, - guint param_id, - const GValue *value, - GParamSpec *pspec); -static void ephy_cell_renderer_progress_set_value (EphyCellRendererProgress *cellprogress, - gint value); -static void ephy_cell_renderer_progress_set_text (EphyCellRendererProgress *cellprogress, - const gchar *text); -static void compute_dimensions (GtkCellRenderer *cell, - GtkWidget *widget, - const gchar *text, - gint *width, - gint *height); -static void ephy_cell_renderer_progress_get_size (GtkCellRenderer *cell, - GtkWidget *widget, - GdkRectangle *cell_area, - gint *x_offset, - gint *y_offset, - gint *width, - gint *height); -static void ephy_cell_renderer_progress_render (GtkCellRenderer *cell, - GdkWindow *window, - GtkWidget *widget, - GdkRectangle *background_area, - GdkRectangle *cell_area, - GdkRectangle *expose_area, - GtkCellRendererState flags); - - -G_DEFINE_TYPE (EphyCellRendererProgress, ephy_cell_renderer_progress, GTK_TYPE_CELL_RENDERER); - -static void -ephy_cell_renderer_progress_class_init (EphyCellRendererProgressClass *klass) -{ - GObjectClass *object_class = G_OBJECT_CLASS (klass); - GtkCellRendererClass *cell_class = GTK_CELL_RENDERER_CLASS (klass); - - object_class->finalize = ephy_cell_renderer_progress_finalize; - object_class->get_property = ephy_cell_renderer_progress_get_property; - object_class->set_property = ephy_cell_renderer_progress_set_property; - - cell_class->get_size = ephy_cell_renderer_progress_get_size; - cell_class->render = ephy_cell_renderer_progress_render; - - /** - * EphyCellRendererProgress:value: - * - * The "value" property determines the percentage to which the - * progress bar will be "filled in". - * - * Since: 2.6 - **/ - g_object_class_install_property (object_class, - PROP_VALUE, - g_param_spec_int ("value", - "Value", - "Value of the progress bar", - -2, 100, 0, - G_PARAM_READWRITE)); - - /** - * EphyCellRendererProgress:text: - * - * The "text" property determines the label which will be drawn - * over the progress bar. Setting this property to %NULL causes the default - * label to be displayed. Setting this property to an empty string causes - * no label to be displayed. - * - * Since: 2.6 - **/ - g_object_class_install_property (object_class, - PROP_TEXT, - g_param_spec_string ("text", - "Text", - "Text on the progress bar", - NULL, - G_PARAM_READWRITE)); - - g_type_class_add_private (object_class, - sizeof (EphyCellRendererProgressPrivate)); -} - -static void -ephy_cell_renderer_progress_init (EphyCellRendererProgress *cellprogress) -{ - cellprogress->priv = EPHY_CELL_RENDERER_PROGRESS_GET_PRIVATE (cellprogress); - cellprogress->priv->value = 0; - cellprogress->priv->text = NULL; - cellprogress->priv->label = NULL; - cellprogress->priv->min_w = -1; - - GTK_CELL_RENDERER (cellprogress)->xpad = 4; - GTK_CELL_RENDERER (cellprogress)->ypad = 8; -} - - -/** - * ephy_cell_renderer_progress_new: - * - * Creates a new #EphyCellRendererProgress. - * - * Return value: the new cell renderer - * - * Since: 2.6 - **/ -GtkCellRenderer* -ephy_cell_renderer_progress_new (void) -{ - return GTK_CELL_RENDERER (g_object_new (EPHY_TYPE_CELL_RENDERER_PROGRESS, NULL)); -} - -static void -ephy_cell_renderer_progress_finalize (GObject *object) -{ - EphyCellRendererProgress *cellprogress = EPHY_CELL_RENDERER_PROGRESS (object); - - g_free (cellprogress->priv->text); - g_free (cellprogress->priv->label); - - G_OBJECT_CLASS (ephy_cell_renderer_progress_parent_class)->finalize (object); -} - -static void -ephy_cell_renderer_progress_get_property (GObject *object, - guint param_id, - GValue *value, - GParamSpec *pspec) -{ - EphyCellRendererProgress *cellprogress = EPHY_CELL_RENDERER_PROGRESS (object); - - switch (param_id) - { - case PROP_VALUE: - g_value_set_int (value, cellprogress->priv->value); - break; - case PROP_TEXT: - g_value_set_string (value, cellprogress->priv->text); - break; - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); - } -} - -static void -ephy_cell_renderer_progress_set_property (GObject *object, - guint param_id, - const GValue *value, - GParamSpec *pspec) -{ - EphyCellRendererProgress *cellprogress = EPHY_CELL_RENDERER_PROGRESS (object); - - switch (param_id) - { - case PROP_VALUE: - ephy_cell_renderer_progress_set_value (cellprogress, - g_value_get_int (value)); - break; - case PROP_TEXT: - ephy_cell_renderer_progress_set_text (cellprogress, - g_value_get_string (value)); - break; - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); - } -} - -static void -ephy_cell_renderer_progress_set_value (EphyCellRendererProgress *cellprogress, - gint value) -{ - gchar *text; - - cellprogress->priv->value = value; - - if (cellprogress->priv->text) - text = g_strdup (cellprogress->priv->text); - else if (cellprogress->priv->value == EPHY_PROGRESS_CELL_FAILED) - /* Translator hint: this is a label on progress bars inside a tree view. - */ - text = g_strdup (_("Failed")); - else if (cellprogress->priv->value == EPHY_PROGRESS_CELL_UNKNOWN) - /* Translator hint: this is a label on progress bars inside a tree view. - */ - text = g_strdup (_("Unknown")); - else - /* Translator hint: this is the default label on progress bars - * inside a tree view. %d will be replaced by the percentage - */ - text = g_strdup_printf (_("%d %%"), cellprogress->priv->value); - - g_free (cellprogress->priv->label); - cellprogress->priv->label = text; -} - -static void -ephy_cell_renderer_progress_set_text (EphyCellRendererProgress *cellprogress, - const gchar *text) -{ - gchar *new_text; - - new_text = g_strdup (text); - g_free (cellprogress->priv->text); - cellprogress->priv->text = new_text; - - /* Update the label */ - ephy_cell_renderer_progress_set_value (cellprogress, cellprogress->priv->value); -} - -static void -compute_dimensions (GtkCellRenderer *cell, - GtkWidget *widget, - const gchar *text, - gint *width, - gint *height) -{ - PangoRectangle logical_rect; - PangoLayout *layout; - - layout = gtk_widget_create_pango_layout (widget, text); - pango_layout_get_pixel_extents (layout, NULL, &logical_rect); - - if (width) - *width = logical_rect.width + cell->xpad * 2 + widget->style->xthickness * 2; - - if (height) - *height = logical_rect.height + cell->ypad * 2 + widget->style->ythickness * 2; - - g_object_unref (G_OBJECT (layout)); -} - -static void -ephy_cell_renderer_progress_get_size (GtkCellRenderer *cell, - GtkWidget *widget, - GdkRectangle *cell_area, - gint *x_offset, - gint *y_offset, - gint *width, - gint *height) -{ - EphyCellRendererProgress *cellprogress = EPHY_CELL_RENDERER_PROGRESS (cell); - gint w, h; - - if (cellprogress->priv->min_w < 0) - compute_dimensions (cell, widget, _("Unknown"), - &cellprogress->priv->min_w, - &cellprogress->priv->min_h); - - compute_dimensions (cell, widget, cellprogress->priv->label, &w, &h); - - if (width) - *width = MAX (cellprogress->priv->min_w, w); - - if (height) - *height = MIN (cellprogress->priv->min_h, h); -} - -static void -ephy_cell_renderer_progress_render (GtkCellRenderer *cell, - GdkWindow *window, - GtkWidget *widget, - GdkRectangle *background_area, - GdkRectangle *cell_area, - GdkRectangle *expose_area, - GtkCellRendererState flags) -{ - EphyCellRendererProgress *cellprogress = EPHY_CELL_RENDERER_PROGRESS (cell); - GdkGC *gc; - PangoLayout *layout; - PangoRectangle logical_rect; - gint x, y, w, h, perc_w, pos; - GdkRectangle clip; - gboolean is_rtl; - - is_rtl = gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL; - - gc = gdk_gc_new (window); - - x = cell_area->x + cell->xpad; - y = cell_area->y + cell->ypad; - - w = cell_area->width - cell->xpad * 2; - h = cell_area->height - cell->ypad * 2; - - gdk_gc_set_rgb_fg_color (gc, &widget->style->fg[GTK_STATE_NORMAL]); - gdk_draw_rectangle (window, gc, TRUE, x, y, w, h); - - x += widget->style->xthickness; - y += widget->style->ythickness; - w -= widget->style->xthickness * 2; - h -= widget->style->ythickness * 2; - gdk_gc_set_rgb_fg_color (gc, &widget->style->bg[GTK_STATE_NORMAL]); - gdk_draw_rectangle (window, gc, TRUE, x, y, w, h); - - gdk_gc_set_rgb_fg_color (gc, &widget->style->bg[GTK_STATE_SELECTED]); - perc_w = w * MAX (0, cellprogress->priv->value) / 100; - gdk_draw_rectangle (window, gc, TRUE, is_rtl ? (x + w - perc_w) : x, y, perc_w, h); - - layout = gtk_widget_create_pango_layout (widget, cellprogress->priv->label); - pango_layout_get_pixel_extents (layout, NULL, &logical_rect); - - pos = (w - logical_rect.width)/2; - - clip.x = x; - clip.y = y; - clip.width = is_rtl ? w - perc_w : perc_w; - clip.height = h; - - gtk_paint_layout (widget->style, window, - is_rtl ? GTK_STATE_NORMAL : GTK_STATE_SELECTED, - FALSE, &clip, widget, "progressbar", - x + pos, y + (h - logical_rect.height)/2, - layout); - - clip.x = clip.x + clip.width; - clip.width = w - clip.width; - - gtk_paint_layout (widget->style, window, - is_rtl ? GTK_STATE_SELECTED : GTK_STATE_NORMAL, - FALSE, &clip, widget, "progressbar", - x + pos, y + (h - logical_rect.height)/2, - layout); - - g_object_unref (G_OBJECT (layout)); - g_object_unref (G_OBJECT (gc)); -} - diff --git a/lib/widgets/ephy-cell-renderer-progress.h b/lib/widgets/ephy-cell-renderer-progress.h deleted file mode 100644 index 3e3795281..000000000 --- a/lib/widgets/ephy-cell-renderer-progress.h +++ /dev/null @@ -1,75 +0,0 @@ -/* ephy-cell-renderer-progress.h - * Copyright (C) 2002 Naba Kumar - * modified by Jörgen Scheibengruber - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ -/* - * Modified by the GTK+ Team and others 1997-2004. See the AUTHORS - * file for a list of people on the GTK+ Team. See the ChangeLog - * files for a list of changes. These files are distributed with - * GTK+ at ftp://ftp.gtk.org/pub/gtk/. - */ - -#ifndef __EPHY_CELL_RENDERER_PROGRESS_H__ -#define __EPHY_CELL_RENDERER_PROGRESS_H__ - -#include - -G_BEGIN_DECLS - -#define EPHY_TYPE_CELL_RENDERER_PROGRESS (ephy_cell_renderer_progress_get_type ()) -#define EPHY_CELL_RENDERER_PROGRESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EPHY_TYPE_CELL_RENDERER_PROGRESS, EphyCellRendererProgress)) -#define EPHY_CELL_RENDERER_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EPHY_TYPE_CELL_RENDERER_PROGRESS, EphyCellRendererProgressClass)) -#define EPHY_IS_CELL_RENDERER_PROGRESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EPHY_TYPE_CELL_RENDERER_PROGRESS)) -#define EPHY_IS_CELL_RENDERER_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EPHY_TYPE_CELL_RENDERER_PROGRESS)) -#define EPHY_CELL_RENDERER_PROGRESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EPHY_TYPE_CELL_RENDERER_PROGRESS, EphyCellRendererProgressClass)) - -typedef struct _EphyCellRendererProgress EphyCellRendererProgress; -typedef struct _EphyCellRendererProgressClass EphyCellRendererProgressClass; -typedef struct _EphyCellRendererProgressPrivate EphyCellRendererProgressPrivate; - -enum -{ - EPHY_PROGRESS_CELL_UNKNOWN = -1, - EPHY_PROGRESS_CELL_FAILED = -2 -}; - -struct _EphyCellRendererProgress -{ - GtkCellRenderer parent_instance; - - /*< private >*/ - EphyCellRendererProgressPrivate *priv; -}; - -struct _EphyCellRendererProgressClass -{ - GtkCellRendererClass parent_class; - - /* Padding for future expansion */ - void (*_gtk_reserved1) (void); - void (*_gtk_reserved2) (void); - void (*_gtk_reserved3) (void); - void (*_gtk_reserved4) (void); -}; - -GType ephy_cell_renderer_progress_get_type (void); -GtkCellRenderer* ephy_cell_renderer_progress_new (void); - -G_END_DECLS - -#endif /* __EPHY_CELL_RENDERER_PROGRESS_H__ */ diff --git a/lib/widgets/ephy-label.c b/lib/widgets/ephy-label.c deleted file mode 100644 index f11816729..000000000 --- a/lib/widgets/ephy-label.c +++ /dev/null @@ -1,3463 +0,0 @@ -/* GTK - The GIMP Toolkit - * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - -/* - * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS - * file for a list of people on the GTK+ Team. See the ChangeLog - * files for a list of changes. These files are distributed with - * GTK+ at ftp://ftp.gtk.org/pub/gtk/. - */ - -/* Synch'd with gtklabel.c 1.154 */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#if !GTK_CHECK_VERSION (2, 5, 1) - -#include "ephy-label.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "ephy-marshal.h" - -/* we don't need to translate the property blurbs */ -#undef P_ -#define P_(string) (string) - -struct _EphyLabelSelectionInfo -{ - GdkWindow *window; - gint selection_anchor; - gint selection_end; - GtkWidget *popup_menu; -}; - -enum { - MOVE_CURSOR, - COPY_CLIPBOARD, - POPULATE_POPUP, - LAST_SIGNAL -}; - -enum { - PROP_0, - PROP_LABEL, - PROP_ATTRIBUTES, - PROP_USE_MARKUP, - PROP_USE_UNDERLINE, - PROP_JUSTIFY, - PROP_PATTERN, - PROP_WRAP, - PROP_SELECTABLE, - PROP_MNEMONIC_KEYVAL, - PROP_MNEMONIC_WIDGET, - PROP_CURSOR_POSITION, - PROP_SELECTION_BOUND, - PROP_ELLIPSIZE -}; - -static guint signals[LAST_SIGNAL] = { 0 }; - -static void ephy_label_class_init (EphyLabelClass *klass); -static void ephy_label_init (EphyLabel *label); -static void ephy_label_set_property (GObject *object, - guint prop_id, - const GValue *value, - GParamSpec *pspec); -static void ephy_label_get_property (GObject *object, - guint prop_id, - GValue *value, - GParamSpec *pspec); -static void ephy_label_destroy (GtkObject *object); -static void ephy_label_finalize (GObject *object); -static void ephy_label_size_request (GtkWidget *widget, - GtkRequisition *requisition); -static void ephy_label_size_allocate (GtkWidget *widget, - GtkAllocation *allocation); -static void ephy_label_state_changed (GtkWidget *widget, - GtkStateType state); -static void ephy_label_style_set (GtkWidget *widget, - GtkStyle *previous_style); -static void ephy_label_direction_changed (GtkWidget *widget, - GtkTextDirection previous_dir); -static gint ephy_label_expose (GtkWidget *widget, - GdkEventExpose *event); - -static void ephy_label_realize (GtkWidget *widget); -static void ephy_label_unrealize (GtkWidget *widget); -static void ephy_label_map (GtkWidget *widget); -static void ephy_label_unmap (GtkWidget *widget); - -static gboolean ephy_label_button_press (GtkWidget *widget, - GdkEventButton *event); -static gboolean ephy_label_button_release (GtkWidget *widget, - GdkEventButton *event); -static gboolean ephy_label_motion (GtkWidget *widget, - GdkEventMotion *event); - - -static void ephy_label_set_text_internal (EphyLabel *label, - gchar *str); -static void ephy_label_set_label_internal (EphyLabel *label, - gchar *str); -static void ephy_label_set_use_markup_internal (EphyLabel *label, - gboolean val); -static void ephy_label_set_use_underline_internal (EphyLabel *label, - gboolean val); -static void ephy_label_set_attributes_internal (EphyLabel *label, - PangoAttrList *attrs); -static void ephy_label_set_uline_text_internal (EphyLabel *label, - const gchar *str); -static void ephy_label_set_pattern_internal (EphyLabel *label, - const gchar *pattern); -static void set_markup (EphyLabel *label, - const gchar *str, - gboolean with_uline); -static void ephy_label_recalculate (EphyLabel *label); -static void ephy_label_hierarchy_changed (GtkWidget *widget, - GtkWidget *old_toplevel); -static void ephy_label_screen_changed (GtkWidget *widget, - GdkScreen *old_screen); - -static void ephy_label_create_window (EphyLabel *label); -static void ephy_label_destroy_window (EphyLabel *label); -static void ephy_label_clear_layout (EphyLabel *label); -static void ephy_label_ensure_layout (EphyLabel *label); -static void ephy_label_select_region_index (EphyLabel *label, - gint anchor_index, - gint end_index); - -static gboolean ephy_label_mnemonic_activate (GtkWidget *widget, - gboolean group_cycling); -static void ephy_label_setup_mnemonic (EphyLabel *label, - guint last_key); -static gboolean ephy_label_focus (GtkWidget *widget, - GtkDirectionType direction); - -/* For selectable lables: */ -static void ephy_label_move_cursor (EphyLabel *label, - GtkMovementStep step, - gint count, - gboolean extend_selection); -static void ephy_label_copy_clipboard (EphyLabel *label); -static void ephy_label_select_all (EphyLabel *label); -static void ephy_label_do_popup (EphyLabel *label, - GdkEventButton *event); - -static gint ephy_label_move_forward_word (EphyLabel *label, - gint start); -static gint ephy_label_move_backward_word (EphyLabel *label, - gint start); - -static GtkMiscClass *parent_class = NULL; - - -GType -ephy_label_get_type (void) -{ - static GType label_type = 0; - - if (!label_type) - { - static const GTypeInfo label_info = - { - sizeof (EphyLabelClass), - NULL, /* base_init */ - NULL, /* base_finalize */ - (GClassInitFunc) ephy_label_class_init, - NULL, /* class_finalize */ - NULL, /* class_data */ - sizeof (EphyLabel), - 32, /* n_preallocs */ - (GInstanceInitFunc) ephy_label_init, - }; - - label_type = g_type_register_static (GTK_TYPE_MISC, "EphyLabel", - &label_info, 0); - } - - return label_type; -} - -static void -add_move_binding (GtkBindingSet *binding_set, - guint keyval, - guint modmask, - GtkMovementStep step, - gint count) -{ - g_return_if_fail ((modmask & GDK_SHIFT_MASK) == 0); - - gtk_binding_entry_add_signal (binding_set, keyval, modmask, - "move_cursor", 3, - G_TYPE_ENUM, step, - G_TYPE_INT, count, - G_TYPE_BOOLEAN, FALSE); - - /* Selection-extending version */ - gtk_binding_entry_add_signal (binding_set, keyval, modmask | GDK_SHIFT_MASK, - "move_cursor", 3, - G_TYPE_ENUM, step, - G_TYPE_INT, count, - G_TYPE_BOOLEAN, TRUE); -} - -static void -ephy_label_class_init (EphyLabelClass *class) -{ - GObjectClass *gobject_class = G_OBJECT_CLASS (class); - GtkObjectClass *object_class = GTK_OBJECT_CLASS (class); - GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class); - GtkBindingSet *binding_set; - - parent_class = g_type_class_peek_parent (class); - - gobject_class->set_property = ephy_label_set_property; - gobject_class->get_property = ephy_label_get_property; - gobject_class->finalize = ephy_label_finalize; - - object_class->destroy = ephy_label_destroy; - - widget_class->size_request = ephy_label_size_request; - widget_class->size_allocate = ephy_label_size_allocate; - widget_class->state_changed = ephy_label_state_changed; - widget_class->style_set = ephy_label_style_set; - widget_class->direction_changed = ephy_label_direction_changed; - widget_class->expose_event = ephy_label_expose; - widget_class->realize = ephy_label_realize; - widget_class->unrealize = ephy_label_unrealize; - widget_class->map = ephy_label_map; - widget_class->unmap = ephy_label_unmap; - widget_class->button_press_event = ephy_label_button_press; - widget_class->button_release_event = ephy_label_button_release; - widget_class->motion_notify_event = ephy_label_motion; - widget_class->hierarchy_changed = ephy_label_hierarchy_changed; - widget_class->screen_changed = ephy_label_screen_changed; - widget_class->mnemonic_activate = ephy_label_mnemonic_activate; - widget_class->focus = ephy_label_focus; - - class->move_cursor = ephy_label_move_cursor; - class->copy_clipboard = ephy_label_copy_clipboard; - - signals[MOVE_CURSOR] = - g_signal_new ("move_cursor", - G_OBJECT_CLASS_TYPE (gobject_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, - G_STRUCT_OFFSET (EphyLabelClass, move_cursor), - NULL, NULL, - ephy_marshal_VOID__ENUM_INT_BOOLEAN, - G_TYPE_NONE, 3, - GTK_TYPE_MOVEMENT_STEP, - G_TYPE_INT, - G_TYPE_BOOLEAN); - - signals[COPY_CLIPBOARD] = - g_signal_new ("copy_clipboard", - G_OBJECT_CLASS_TYPE (gobject_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, - G_STRUCT_OFFSET (EphyLabelClass, copy_clipboard), - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); - - signals[POPULATE_POPUP] = - g_signal_new ("populate_popup", - G_OBJECT_CLASS_TYPE (gobject_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (EphyLabelClass, populate_popup), - NULL, NULL, - g_cclosure_marshal_VOID__OBJECT, - G_TYPE_NONE, 1, - GTK_TYPE_MENU); - - g_object_class_install_property (gobject_class, - PROP_LABEL, - g_param_spec_string ("label", - P_("Label"), - P_("The text of the label"), - NULL, - G_PARAM_READWRITE)); - g_object_class_install_property (gobject_class, - PROP_ATTRIBUTES, - g_param_spec_boxed ("attributes", - P_("Attributes"), - P_("A list of style attributes to apply to the text of the label"), - PANGO_TYPE_ATTR_LIST, - G_PARAM_READWRITE)); - g_object_class_install_property (gobject_class, - PROP_USE_MARKUP, - g_param_spec_boolean ("use_markup", - P_("Use markup"), - P_("The text of the label includes XML markup. See pango_parse_markup()"), - FALSE, - G_PARAM_READWRITE)); - g_object_class_install_property (gobject_class, - PROP_USE_UNDERLINE, - g_param_spec_boolean ("use_underline", - P_("Use underline"), - P_("If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key"), - FALSE, - G_PARAM_READWRITE)); - - g_object_class_install_property (gobject_class, - PROP_JUSTIFY, - g_param_spec_enum ("justify", - P_("Justification"), - P_("The alignment of the lines in the text of the label relative to each other. This does NOT affect the alignment of the label within its allocation. See GtkMisc::xalign for that"), - GTK_TYPE_JUSTIFICATION, - GTK_JUSTIFY_LEFT, - G_PARAM_READWRITE)); - - g_object_class_install_property (gobject_class, - PROP_PATTERN, - g_param_spec_string ("pattern", - P_("Pattern"), - P_("A string with _ characters in positions correspond to characters in the text to underline"), - NULL, - G_PARAM_WRITABLE)); - - g_object_class_install_property (gobject_class, - PROP_WRAP, - g_param_spec_boolean ("wrap", - P_("Line wrap"), - P_("If set, wrap lines if the text becomes too wide"), - FALSE, - G_PARAM_READWRITE)); - g_object_class_install_property (gobject_class, - PROP_SELECTABLE, - g_param_spec_boolean ("selectable", - P_("Selectable"), - P_("Whether the label text can be selected with the mouse"), - FALSE, - G_PARAM_READWRITE)); - g_object_class_install_property (gobject_class, - PROP_MNEMONIC_KEYVAL, - g_param_spec_uint ("mnemonic_keyval", - P_("Mnemonic key"), - P_("The mnemonic accelerator key for this label"), - 0, - G_MAXUINT, - GDK_VoidSymbol, - G_PARAM_READABLE)); - g_object_class_install_property (gobject_class, - PROP_MNEMONIC_WIDGET, - g_param_spec_object ("mnemonic_widget", - P_("Mnemonic widget"), - P_("The widget to be activated when the label's mnemonic " - "key is pressed"), - GTK_TYPE_WIDGET, - G_PARAM_READWRITE)); - - g_object_class_install_property (gobject_class, - PROP_CURSOR_POSITION, - g_param_spec_int ("cursor_position", - P_("Cursor Position"), - P_("The current position of the insertion cursor in chars"), - 0, - G_MAXINT, - 0, - G_PARAM_READABLE)); - - g_object_class_install_property (gobject_class, - PROP_SELECTION_BOUND, - g_param_spec_int ("selection_bound", - P_("Selection Bound"), - P_("The position of the opposite end of the selection from the cursor in chars"), - 0, - G_MAXINT, - 0, - G_PARAM_READABLE)); - - /** - * EphyLabel:ellipsize: - * - * The preferred place to ellipsize the string, if the label does not have - * enough room to display the entire string, specified as a #PangoEllisizeMode. - * - * Note that setting this property to a value other than %PANGO_ELLIPSIZE_NONE - * has the side-effect that the label requests only enough space to display the - * ellipsis "...". Ellipsizing labels must be packed in a container which - * ensures that the label gets a reasonable size allocated. In particular, - * this means that ellipsizing labels don't work well in notebook tabs, unless - * the tab's ::tab-expand property is set to %TRUE. - * - * Since: 2.6 - */ - g_object_class_install_property (gobject_class, - PROP_ELLIPSIZE, - g_param_spec_enum ("ellipsize", - P_("Ellipsize"), - P_("The preferred place to ellipsize the string, if the label does not have enough room to display the entire string, if at all"), - PANGO_TYPE_ELLIPSIZE_MODE, - PANGO_ELLIPSIZE_NONE, - G_PARAM_READWRITE)); - - /* - * Key bindings - */ - - binding_set = gtk_binding_set_by_class (class); - - /* Moving the insertion point */ - add_move_binding (binding_set, GDK_Right, 0, - GTK_MOVEMENT_VISUAL_POSITIONS, 1); - - add_move_binding (binding_set, GDK_Left, 0, - GTK_MOVEMENT_VISUAL_POSITIONS, -1); - - add_move_binding (binding_set, GDK_KP_Right, 0, - GTK_MOVEMENT_VISUAL_POSITIONS, 1); - - add_move_binding (binding_set, GDK_KP_Left, 0, - GTK_MOVEMENT_VISUAL_POSITIONS, -1); - - add_move_binding (binding_set, GDK_f, GDK_CONTROL_MASK, - GTK_MOVEMENT_LOGICAL_POSITIONS, 1); - - add_move_binding (binding_set, GDK_b, GDK_CONTROL_MASK, - GTK_MOVEMENT_LOGICAL_POSITIONS, -1); - - add_move_binding (binding_set, GDK_Right, GDK_CONTROL_MASK, - GTK_MOVEMENT_WORDS, 1); - - add_move_binding (binding_set, GDK_Left, GDK_CONTROL_MASK, - GTK_MOVEMENT_WORDS, -1); - - add_move_binding (binding_set, GDK_KP_Right, GDK_CONTROL_MASK, - GTK_MOVEMENT_WORDS, 1); - - add_move_binding (binding_set, GDK_KP_Left, GDK_CONTROL_MASK, - GTK_MOVEMENT_WORDS, -1); - - add_move_binding (binding_set, GDK_a, GDK_CONTROL_MASK, - GTK_MOVEMENT_PARAGRAPH_ENDS, -1); - - add_move_binding (binding_set, GDK_e, GDK_CONTROL_MASK, - GTK_MOVEMENT_PARAGRAPH_ENDS, 1); - - add_move_binding (binding_set, GDK_f, GDK_MOD1_MASK, - GTK_MOVEMENT_WORDS, 1); - - add_move_binding (binding_set, GDK_b, GDK_MOD1_MASK, - GTK_MOVEMENT_WORDS, -1); - - add_move_binding (binding_set, GDK_Home, 0, - GTK_MOVEMENT_DISPLAY_LINE_ENDS, -1); - - add_move_binding (binding_set, GDK_End, 0, - GTK_MOVEMENT_DISPLAY_LINE_ENDS, 1); - - add_move_binding (binding_set, GDK_KP_Home, 0, - GTK_MOVEMENT_DISPLAY_LINE_ENDS, -1); - - add_move_binding (binding_set, GDK_KP_End, 0, - GTK_MOVEMENT_DISPLAY_LINE_ENDS, 1); - - add_move_binding (binding_set, GDK_Home, GDK_CONTROL_MASK, - GTK_MOVEMENT_BUFFER_ENDS, -1); - - add_move_binding (binding_set, GDK_End, GDK_CONTROL_MASK, - GTK_MOVEMENT_BUFFER_ENDS, 1); - - add_move_binding (binding_set, GDK_KP_Home, GDK_CONTROL_MASK, - GTK_MOVEMENT_BUFFER_ENDS, -1); - - add_move_binding (binding_set, GDK_KP_End, GDK_CONTROL_MASK, - GTK_MOVEMENT_BUFFER_ENDS, 1); - - /* copy */ - gtk_binding_entry_add_signal (binding_set, GDK_c, GDK_CONTROL_MASK, - "copy_clipboard", 0); -} - -static void -ephy_label_set_property (GObject *object, - guint prop_id, - const GValue *value, - GParamSpec *pspec) -{ - EphyLabel *label; - - label = EPHY_LABEL (object); - - switch (prop_id) - { - case PROP_LABEL: - ephy_label_set_label (label, g_value_get_string (value)); - break; - case PROP_ATTRIBUTES: - ephy_label_set_attributes (label, g_value_get_boxed (value)); - break; - case PROP_USE_MARKUP: - ephy_label_set_use_markup (label, g_value_get_boolean (value)); - break; - case PROP_USE_UNDERLINE: - ephy_label_set_use_underline (label, g_value_get_boolean (value)); - break; - case PROP_JUSTIFY: - ephy_label_set_justify (label, g_value_get_enum (value)); - break; - case PROP_PATTERN: - ephy_label_set_pattern (label, g_value_get_string (value)); - break; - case PROP_WRAP: - ephy_label_set_line_wrap (label, g_value_get_boolean (value)); - break; - case PROP_SELECTABLE: - ephy_label_set_selectable (label, g_value_get_boolean (value)); - break; - case PROP_MNEMONIC_WIDGET: - ephy_label_set_mnemonic_widget (label, (GtkWidget*) g_value_get_object (value)); - break; - case PROP_ELLIPSIZE: - ephy_label_set_ellipsize (label, g_value_get_enum (value)); - break; - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); - break; - } -} - -static void -ephy_label_get_property (GObject *object, - guint prop_id, - GValue *value, - GParamSpec *pspec) -{ - EphyLabel *label; - - label = EPHY_LABEL (object); - - switch (prop_id) - { - case PROP_LABEL: - g_value_set_string (value, label->label); - break; - case PROP_ATTRIBUTES: - g_value_set_boxed (value, label->attrs); - break; - case PROP_USE_MARKUP: - g_value_set_boolean (value, label->use_markup); - break; - case PROP_USE_UNDERLINE: - g_value_set_boolean (value, label->use_underline); - break; - case PROP_JUSTIFY: - g_value_set_enum (value, label->jtype); - break; - case PROP_WRAP: - g_value_set_boolean (value, label->wrap); - break; - case PROP_SELECTABLE: - g_value_set_boolean (value, ephy_label_get_selectable (label)); - break; - case PROP_MNEMONIC_KEYVAL: - g_value_set_uint (value, label->mnemonic_keyval); - break; - case PROP_MNEMONIC_WIDGET: - g_value_set_object (value, (GObject*) label->mnemonic_widget); - break; - case PROP_CURSOR_POSITION: - if (label->select_info) - { - gint offset = g_utf8_pointer_to_offset (label->text, - label->text + label->select_info->selection_end); - g_value_set_int (value, offset); - } - else - g_value_set_int (value, 0); - break; - case PROP_SELECTION_BOUND: - if (label->select_info) - { - gint offset = g_utf8_pointer_to_offset (label->text, - label->text + label->select_info->selection_anchor); - g_value_set_int (value, offset); - } - else - g_value_set_int (value, 0); - break; - case PROP_ELLIPSIZE: - g_value_set_enum (value, label->ellipsize); - break; - - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); - break; - } -} - -static void -ephy_label_init (EphyLabel *label) -{ - GTK_WIDGET_SET_FLAGS (label, GTK_NO_WINDOW); - - label->label = NULL; - - label->jtype = GTK_JUSTIFY_LEFT; - label->wrap = FALSE; - label->ellipsize = PANGO_ELLIPSIZE_NONE; - - label->use_underline = FALSE; - label->use_markup = FALSE; - - label->mnemonic_keyval = GDK_VoidSymbol; - label->layout = NULL; - label->text = NULL; - label->attrs = NULL; - - label->mnemonic_widget = NULL; - label->mnemonic_window = NULL; - - ephy_label_set_text (label, ""); -} - -/** - * ephy_label_new: - * @str: The text of the label - * - * Creates a new label with the given text inside it. You can - * pass %NULL to get an empty label widget. - * - * Return value: the new #EphyLabel - **/ -GtkWidget* -ephy_label_new (const gchar *str) -{ - EphyLabel *label; - - label = g_object_new (EPHY_TYPE_LABEL, NULL); - - if (str && *str) - ephy_label_set_text (label, str); - - return GTK_WIDGET (label); -} - -/** - * ephy_label_new_with_mnemonic: - * @str: The text of the label, with an underscore in front of the - * mnemonic character - * - * Creates a new #EphyLabel, containing the text in @str. - * - * If characters in @str are preceded by an underscore, they are - * underlined. If you need a literal underscore character in a label, use - * '__' (two underscores). The first underlined character represents a - * keyboard accelerator called a mnemonic. The mnemonic key can be used - * to activate another widget, chosen automatically, or explicitly using - * ephy_label_set_mnemonic_widget(). - * - * If ephy_label_set_mnemonic_widget() - * is not called, then the first activatable ancestor of the #EphyLabel - * will be chosen as the mnemonic widget. For instance, if the - * label is inside a button or menu item, the button or menu item will - * automatically become the mnemonic widget and be activated by - * the mnemonic. - * - * Return value: the new #EphyLabel - **/ -GtkWidget* -ephy_label_new_with_mnemonic (const gchar *str) -{ - EphyLabel *label; - - label = g_object_new (EPHY_TYPE_LABEL, NULL); - - if (str && *str) - ephy_label_set_text_with_mnemonic (label, str); - - return GTK_WIDGET (label); -} - -static gboolean -ephy_label_mnemonic_activate (GtkWidget *widget, - gboolean group_cycling) -{ - GtkWidget *parent; - - if (EPHY_LABEL (widget)->mnemonic_widget) - return gtk_widget_mnemonic_activate (EPHY_LABEL (widget)->mnemonic_widget, group_cycling); - - /* Try to find the widget to activate by traversing the - * widget's ancestry. - */ - parent = widget->parent; - - if (parent && GTK_IS_NOTEBOOK (parent)) - return FALSE; - - while (parent) - { - if (GTK_WIDGET_CAN_FOCUS (parent) || - (!group_cycling && GTK_WIDGET_GET_CLASS (parent)->activate_signal) || - (parent->parent && GTK_IS_NOTEBOOK (parent->parent)) || - (GTK_IS_MENU_ITEM (parent))) - return gtk_widget_mnemonic_activate (parent, group_cycling); - parent = parent->parent; - } - - /* barf if there was nothing to activate */ - g_warning ("Couldn't find a target for a mnemonic activation."); - gdk_display_beep (gtk_widget_get_display (widget)); - - return FALSE; -} - -static void -ephy_label_setup_mnemonic (EphyLabel *label, - guint last_key) -{ - GtkWidget *toplevel; - - if (last_key != GDK_VoidSymbol && label->mnemonic_window) - { - gtk_window_remove_mnemonic (label->mnemonic_window, - last_key, - GTK_WIDGET (label)); - label->mnemonic_window = NULL; - } - - if (label->mnemonic_keyval == GDK_VoidSymbol) - return; - - toplevel = gtk_widget_get_toplevel (GTK_WIDGET (label)); - if (GTK_WIDGET_TOPLEVEL (toplevel)) - { - gtk_window_add_mnemonic (GTK_WINDOW (toplevel), - label->mnemonic_keyval, - GTK_WIDGET (label)); - label->mnemonic_window = GTK_WINDOW (toplevel); - } -} - -static void -ephy_label_hierarchy_changed (GtkWidget *widget, - GtkWidget *old_toplevel) -{ - EphyLabel *label = EPHY_LABEL (widget); - - ephy_label_setup_mnemonic (label, label->mnemonic_keyval); -} - -static void -ephy_label_screen_changed (GtkWidget *widget, - GdkScreen *old_screen) -{ - ephy_label_clear_layout (EPHY_LABEL (widget)); -} - -static void -label_mnemonic_widget_weak_notify (gpointer data, - GObject *where_the_object_was) -{ - EphyLabel *label = data; - - label->mnemonic_widget = NULL; - g_object_notify (G_OBJECT (label), "mnemonic_widget"); -} - -/** - * ephy_label_set_mnemonic_widget: - * @label: a #EphyLabel - * @widget: the target #GtkWidget - * - * If the label has been set so that it has an mnemonic key (using - * i.e. ephy_label_set_markup_with_mnemonic(), - * ephy_label_set_text_with_mnemonic(), ephy_label_new_with_mnemonic() - * or the "use_underline" property) the label can be associated with a - * widget that is the target of the mnemonic. When the label is inside - * a widget (like a #GtkButton or a #GtkNotebook tab) it is - * automatically associated with the correct widget, but sometimes - * (i.e. when the target is a #GtkEntry next to the label) you need to - * set it explicitly using this function. - * - * The target widget will be accelerated by emitting "mnemonic_activate" on it. - * The default handler for this signal will activate the widget if there are no - * mnemonic collisions and toggle focus between the colliding widgets otherwise. - **/ -void -ephy_label_set_mnemonic_widget (EphyLabel *label, - GtkWidget *widget) -{ - g_return_if_fail (EPHY_IS_LABEL (label)); - if (widget) - g_return_if_fail (GTK_IS_WIDGET (widget)); - - if (label->mnemonic_widget) - { - gtk_widget_remove_mnemonic_label (label->mnemonic_widget, GTK_WIDGET (label)); - g_object_weak_unref (G_OBJECT (label->mnemonic_widget), - label_mnemonic_widget_weak_notify, - label); - } - label->mnemonic_widget = widget; - if (label->mnemonic_widget) - { - g_object_weak_ref (G_OBJECT (label->mnemonic_widget), - label_mnemonic_widget_weak_notify, - label); - gtk_widget_add_mnemonic_label (label->mnemonic_widget, GTK_WIDGET (label)); - } - - g_object_notify (G_OBJECT (label), "mnemonic_widget"); -} - -/** - * ephy_label_get_mnemonic_widget: - * @label: a #EphyLabel - * - * Retrieves the target of the mnemonic (keyboard shortcut) of this - * label. See ephy_label_set_mnemonic_widget (). - * - * Return value: the target of the label's mnemonic, or %NULL if none - * has been set and the default algorithm will be used. - **/ -GtkWidget * -ephy_label_get_mnemonic_widget (EphyLabel *label) -{ - g_return_val_if_fail (EPHY_IS_LABEL (label), NULL); - - return label->mnemonic_widget; -} - -/** - * ephy_label_get_mnemonic_keyval: - * @label: a #EphyLabel - * - * If the label has been set so that it has an mnemonic key this function - * returns the keyval used for the mnemonic accelerator. If there is no - * mnemonic set up it returns #GDK_VoidSymbol. - * - * Returns: GDK keyval usable for accelerators, or #GDK_VoidSymbol - **/ -guint -ephy_label_get_mnemonic_keyval (EphyLabel *label) -{ - g_return_val_if_fail (EPHY_IS_LABEL (label), GDK_VoidSymbol); - - return label->mnemonic_keyval; -} - -static void -ephy_label_set_text_internal (EphyLabel *label, - gchar *str) -{ - g_free (label->text); - - label->text = str; - - ephy_label_select_region_index (label, 0, 0); -} - -static void -ephy_label_set_label_internal (EphyLabel *label, - gchar *str) -{ - g_free (label->label); - - label->label = str; - - g_object_notify (G_OBJECT (label), "label"); -} - -static void -ephy_label_set_use_markup_internal (EphyLabel *label, - gboolean val) -{ - val = val != FALSE; - if (label->use_markup != val) - { - g_object_notify (G_OBJECT (label), "use_markup"); - label->use_markup = val; - } -} - -static void -ephy_label_set_use_underline_internal (EphyLabel *label, - gboolean val) -{ - val = val != FALSE; - if (label->use_underline != val) - { - g_object_notify (G_OBJECT (label), "use_underline"); - label->use_underline = val; - } -} - -static void -ephy_label_set_attributes_internal (EphyLabel *label, - PangoAttrList *attrs) -{ - if (attrs) - pango_attr_list_ref (attrs); - - if (label->attrs) - pango_attr_list_unref (label->attrs); - - if (!label->use_markup && !label->use_underline) - { - if (attrs) - pango_attr_list_ref (attrs); - if (label->effective_attrs) - pango_attr_list_unref (label->effective_attrs); - label->effective_attrs = attrs; - } - - label->attrs = attrs; - g_object_notify (G_OBJECT (label), "attributes"); -} - - -/* Calculates text, attrs and mnemonic_keyval from - * label, use_underline and use_markup - */ -static void -ephy_label_recalculate (EphyLabel *label) -{ - if (label->use_markup) - set_markup (label, label->label, label->use_underline); - else - { - if (label->use_underline) - ephy_label_set_uline_text_internal (label, label->label); - else - { - ephy_label_set_text_internal (label, g_strdup (label->label)); - if (label->attrs) - pango_attr_list_ref (label->attrs); - if (label->effective_attrs) - pango_attr_list_unref (label->effective_attrs); - label->effective_attrs = label->attrs; - } - } - - if (!label->use_underline) - { - guint keyval = label->mnemonic_keyval; - - label->mnemonic_keyval = GDK_VoidSymbol; - ephy_label_setup_mnemonic (label, keyval); - } - - ephy_label_clear_layout (label); - gtk_widget_queue_resize (GTK_WIDGET (label)); -} - -/** - * ephy_label_set_text: - * @label: a #EphyLabel - * @str: The text you want to set. - * - * Sets the text within the #EphyLabel widget. It overwrites any text that - * was there before. - * - * This will also clear any previously set mnemonic accelerators. - **/ -void -ephy_label_set_text (EphyLabel *label, - const gchar *str) -{ - g_return_if_fail (EPHY_IS_LABEL (label)); - - g_object_freeze_notify (G_OBJECT (label)); - - ephy_label_set_label_internal (label, g_strdup (str ? str : "")); - ephy_label_set_use_markup_internal (label, FALSE); - ephy_label_set_use_underline_internal (label, FALSE); - - ephy_label_recalculate (label); - - g_object_thaw_notify (G_OBJECT (label)); -} - -/** - * ephy_label_set_attributes: - * @label: a #EphyLabel - * @attrs: a #PangoAttrList - * - * Sets a #PangoAttrList; the attributes in the list are applied to the - * label text. The attributes set with this function will be ignored - * if the "use_underline" property or the "use_markup" property - * is %TRUE. - **/ -void -ephy_label_set_attributes (EphyLabel *label, - PangoAttrList *attrs) -{ - g_return_if_fail (EPHY_IS_LABEL (label)); - - ephy_label_set_attributes_internal (label, attrs); - - ephy_label_clear_layout (label); - gtk_widget_queue_resize (GTK_WIDGET (label)); -} - -/** - * ephy_label_get_attributes: - * @label: a #EphyLabel - * - * Gets the attribute list that was set on the label using - * ephy_label_set_attributes(), if any. This function does - * not reflect attributes that come from the labels markup - * (see ephy_label_set_markup()). If you want to get the - * effective attributes for the label, use - * pango_layout_get_attribute (ephy_label_get_layout (label)). - * - * Return value: the attribute list, or %NULL if none was set. - **/ -PangoAttrList * -ephy_label_get_attributes (EphyLabel *label) -{ - g_return_val_if_fail (EPHY_IS_LABEL (label), NULL); - - return label->attrs; -} - -/** - * ephy_label_set_label: - * @label: a #EphyLabel - * @str: the new text to set for the label - * - * Sets the text of the label. The label is interpreted as - * including embedded underlines and/or Pango markup depending - * on the values of label->use_underline and label->use_markup. - **/ -void -ephy_label_set_label (EphyLabel *label, - const gchar *str) -{ - guint last_keyval; - - g_return_if_fail (EPHY_IS_LABEL (label)); - g_return_if_fail (str != NULL); - - last_keyval = label->mnemonic_keyval; - - ephy_label_set_label_internal (label, g_strdup (str)); - ephy_label_recalculate (label); - if (last_keyval != label->mnemonic_keyval) - ephy_label_setup_mnemonic (label, last_keyval); -} - -/** - * ephy_label_get_label: - * @label: a #EphyLabel - * - * Fetches the text from a label widget including any embedded - * underlines indicating mnemonics and Pango markup. (See - * ephy_label_get_text ()). - * - * Return value: the text of the label widget. This string is - * owned by the widget and must not be modified or freed. - **/ -G_CONST_RETURN gchar * -ephy_label_get_label (EphyLabel *label) -{ - g_return_val_if_fail (EPHY_IS_LABEL (label), NULL); - - return label->label; -} - -static void -set_markup (EphyLabel *label, - const gchar *str, - gboolean with_uline) -{ - gchar *text = NULL; - GError *error = NULL; - PangoAttrList *attrs = NULL; - gunichar accel_char = 0; - - if (!pango_parse_markup (str, - -1, - with_uline ? '_' : 0, - &attrs, - &text, - with_uline ? &accel_char : NULL, - &error)) - { - g_warning ("Failed to set label from markup due to error parsing markup: %s", - error->message); - g_error_free (error); - return; - } - - if (text) - ephy_label_set_text_internal (label, text); - - if (attrs) - { - if (label->effective_attrs) - pango_attr_list_unref (label->effective_attrs); - label->effective_attrs = attrs; - } - - if (accel_char != 0) - label->mnemonic_keyval = gdk_keyval_to_lower (gdk_unicode_to_keyval (accel_char)); - else - label->mnemonic_keyval = GDK_VoidSymbol; -} - -/** - * ephy_label_set_markup: - * @label: a #EphyLabel - * @str: a markup string (see Pango markup format) - * - * Parses @str which is marked up with the Pango text markup language, - * setting the label's text and attribute list based on the parse results. - **/ -void -ephy_label_set_markup (EphyLabel *label, - const gchar *str) -{ - g_return_if_fail (EPHY_IS_LABEL (label)); - - ephy_label_set_label_internal (label, g_strdup (str ? str : "")); - ephy_label_set_use_markup_internal (label, TRUE); - ephy_label_set_use_underline_internal (label, FALSE); - - ephy_label_recalculate (label); -} - -/** - * ephy_label_set_markup_with_mnemonic: - * @label: a #EphyLabel - * @str: a markup string (see Pango markup format) - * - * Parses @str which is marked up with the Pango text markup language, - * setting the label's text and attribute list based on the parse results. - * If characters in @str are preceded by an underscore, they are underlined - * indicating that they represent a keyboard accelerator called a mnemonic. - * - * The mnemonic key can be used to activate another widget, chosen automatically, - * or explicitly using ephy_label_set_mnemonic_widget(). - **/ -void -ephy_label_set_markup_with_mnemonic (EphyLabel *label, - const gchar *str) -{ - guint last_keyval; - g_return_if_fail (EPHY_IS_LABEL (label)); - - last_keyval = label->mnemonic_keyval; - ephy_label_set_label_internal (label, g_strdup (str ? str : "")); - ephy_label_set_use_markup_internal (label, TRUE); - ephy_label_set_use_underline_internal (label, TRUE); - - ephy_label_recalculate (label); - ephy_label_setup_mnemonic (label, last_keyval); -} - -/** - * ephy_label_get_text: - * @label: a #EphyLabel - * - * Fetches the text from a label widget, as displayed on the - * screen. This does not include any embedded underlines - * indicating mnemonics or Pango markup. (See ephy_label_get_label()) - * - * Return value: the text in the label widget. This is the internal - * string used by the label, and must not be modified. - **/ -G_CONST_RETURN gchar * -ephy_label_get_text (EphyLabel *label) -{ - g_return_val_if_fail (EPHY_IS_LABEL (label), NULL); - - return label->text; -} - -static PangoAttrList * -ephy_label_pattern_to_attrs (EphyLabel *label, - const gchar *pattern) -{ - const char *start; - const char *p = label->text; - const char *q = pattern; - PangoAttrList *attrs; - - attrs = pango_attr_list_new (); - - while (1) - { - while (*p && *q && *q != '_') - { - p = g_utf8_next_char (p); - q++; - } - start = p; - while (*p && *q && *q == '_') - { - p = g_utf8_next_char (p); - q++; - } - - if (p > start) - { - PangoAttribute *attr = pango_attr_underline_new (PANGO_UNDERLINE_LOW); - attr->start_index = start - label->text; - attr->end_index = p - label->text; - - pango_attr_list_insert (attrs, attr); - } - else - break; - } - - return attrs; -} - -static void -ephy_label_set_pattern_internal (EphyLabel *label, - const gchar *pattern) -{ - PangoAttrList *attrs; - g_return_if_fail (EPHY_IS_LABEL (label)); - - attrs = ephy_label_pattern_to_attrs (label, pattern); - - if (label->effective_attrs) - pango_attr_list_unref (label->effective_attrs); - label->effective_attrs = attrs; -} - -void -ephy_label_set_pattern (EphyLabel *label, - const gchar *pattern) -{ - g_return_if_fail (EPHY_IS_LABEL (label)); - - ephy_label_set_pattern_internal (label, pattern); - - ephy_label_clear_layout (label); - gtk_widget_queue_resize (GTK_WIDGET (label)); -} - - -/** - * ephy_label_set_justify: - * @label: a #EphyLabel - * @jtype: a #GtkJustification - * - * Sets the alignment of the lines in the text of the label relative to - * each other. %GTK_JUSTIFY_LEFT is the default value when the - * widget is first created with ephy_label_new(). If you instead want - * to set the alignment of the label as a whole, use - * gtk_misc_set_alignment() instead. ephy_label_set_justify() has no - * effect on labels containing only a single line. - **/ -void -ephy_label_set_justify (EphyLabel *label, - GtkJustification jtype) -{ - g_return_if_fail (EPHY_IS_LABEL (label)); - g_return_if_fail (jtype >= GTK_JUSTIFY_LEFT && jtype <= GTK_JUSTIFY_FILL); - - if ((GtkJustification) label->jtype != jtype) - { - label->jtype = jtype; - - /* No real need to be this drastic, but easier than duplicating the code */ - ephy_label_clear_layout (label); - - g_object_notify (G_OBJECT (label), "justify"); - gtk_widget_queue_resize (GTK_WIDGET (label)); - } -} - -/** - * ephy_label_get_justify: - * @label: a #EphyLabel - * - * Returns the justification of the label. See ephy_label_set_justify (). - * - * Return value: #GtkJustification - **/ -GtkJustification -ephy_label_get_justify (EphyLabel *label) -{ - g_return_val_if_fail (EPHY_IS_LABEL (label), 0); - - return label->jtype; -} - - -/** - * ephy_label_set_ellipsize: - * @label: a #EphyLabel - * @mode: a #PangoEllipsizeMode - * - * Sets the mode used to ellipsize (add an ellipsis: "...") to the text if there - * is not enough space to render the entire string. - * - * Since: 2.6 - **/ -void -ephy_label_set_ellipsize (EphyLabel *label, - PangoEllipsizeMode mode) -{ - g_return_if_fail (EPHY_IS_LABEL (label)); - g_return_if_fail (mode >= PANGO_ELLIPSIZE_NONE && mode <= PANGO_ELLIPSIZE_END); - - if ((PangoEllipsizeMode) label->ellipsize != mode) - { - label->ellipsize = mode; - - /* No real need to be this drastic, but easier than duplicating the code */ - ephy_label_clear_layout (label); - - g_object_notify (G_OBJECT (label), "ellipsize"); - gtk_widget_queue_resize (GTK_WIDGET (label)); - } -} - -/** - * ephy_label_get_ellipsize: - * @label: a #EphyLabel - * - * Returns the ellipsizing position of the label. See ephy_label_set_ellipsize(). - * - * Return value: #PangoEllipsizeMode - * - * Since: 2.6 - **/ -PangoEllipsizeMode -ephy_label_get_ellipsize (EphyLabel *label) -{ - g_return_val_if_fail (EPHY_IS_LABEL (label), PANGO_ELLIPSIZE_NONE); - - return label->ellipsize; -} - -/** - * ephy_label_set_line_wrap: - * @label: a #EphyLabel - * @wrap: the setting - * - * Toggles line wrapping within the #EphyLabel widget. %TRUE makes it break - * lines if text exceeds the widget's size. %FALSE lets the text get cut off - * by the edge of the widget if it exceeds the widget size. - **/ -void -ephy_label_set_line_wrap (EphyLabel *label, - gboolean wrap) -{ - g_return_if_fail (EPHY_IS_LABEL (label)); - - wrap = wrap != FALSE; - - if (label->wrap != wrap) - { - label->wrap = wrap; - g_object_notify (G_OBJECT (label), "wrap"); - - gtk_widget_queue_resize (GTK_WIDGET (label)); - } -} - -/** - * ephy_label_get_line_wrap: - * @label: a #EphyLabel - * - * Returns whether lines in the label are automatically wrapped. See ephy_label_set_line_wrap (). - * - * Return value: %TRUE if the lines of the label are automatically wrapped. - */ -gboolean -ephy_label_get_line_wrap (EphyLabel *label) -{ - g_return_val_if_fail (EPHY_IS_LABEL (label), FALSE); - - return label->wrap; -} - -void -ephy_label_get (EphyLabel *label, - gchar **str) -{ - g_return_if_fail (EPHY_IS_LABEL (label)); - g_return_if_fail (str != NULL); - - *str = label->text; -} - -static void -ephy_label_destroy (GtkObject *object) -{ - EphyLabel *label = EPHY_LABEL (object); - - ephy_label_set_mnemonic_widget (label, NULL); - - GTK_OBJECT_CLASS (parent_class)->destroy (object); -} - -static void -ephy_label_finalize (GObject *object) -{ - EphyLabel *label; - - g_return_if_fail (EPHY_IS_LABEL (object)); - - label = EPHY_LABEL (object); - - g_free (label->label); - g_free (label->text); - - if (label->layout) - g_object_unref (label->layout); - - if (label->attrs) - pango_attr_list_unref (label->attrs); - - if (label->effective_attrs) - pango_attr_list_unref (label->effective_attrs); - - g_free (label->select_info); - - G_OBJECT_CLASS (parent_class)->finalize (object); -} - -static void -ephy_label_clear_layout (EphyLabel *label) -{ - if (label->layout) - { - g_object_unref (label->layout); - label->layout = NULL; - } -} - -typedef struct _LabelWrapWidth LabelWrapWidth; -struct _LabelWrapWidth -{ - gint width; - PangoFontDescription *font_desc; -}; - -static void -label_wrap_width_free (gpointer data) -{ - LabelWrapWidth *wrap_width = data; - pango_font_description_free (wrap_width->font_desc); - g_free (wrap_width); -} - -static gint -get_label_wrap_width (EphyLabel *label) -{ - PangoLayout *layout; - GtkStyle *style = GTK_WIDGET (label)->style; - - LabelWrapWidth *wrap_width = g_object_get_data (G_OBJECT (style), "gtk-label-wrap-width"); - if (!wrap_width) - { - wrap_width = g_new0 (LabelWrapWidth, 1); - g_object_set_data_full (G_OBJECT (style), "gtk-label-wrap-width", - wrap_width, label_wrap_width_free); - } - - if (wrap_width->font_desc && pango_font_description_equal (wrap_width->font_desc, style->font_desc)) - return wrap_width->width; - - if (wrap_width->font_desc) - pango_font_description_free (wrap_width->font_desc); - - wrap_width->font_desc = pango_font_description_copy (style->font_desc); - - layout = gtk_widget_create_pango_layout (GTK_WIDGET (label), - "This long string gives a good enough length for any line to have."); - pango_layout_get_size (layout, &wrap_width->width, NULL); - g_object_unref (layout); - - return wrap_width->width; -} - -static void -ephy_label_ensure_layout (EphyLabel *label) -{ - GtkWidget *widget; - PangoRectangle logical_rect; - gint rwidth, rheight; - gboolean rtl; - - widget = GTK_WIDGET (label); - - rtl = gtk_widget_get_direction(widget) == GTK_TEXT_DIR_RTL; - rwidth = label->misc.xpad * 2; - rheight = label->misc.ypad * 2; - - if (!label->layout) - { - PangoAlignment align = PANGO_ALIGN_LEFT; /* Quiet gcc */ - - label->layout = gtk_widget_create_pango_layout (widget, label->text); - - if (label->effective_attrs) - pango_layout_set_attributes (label->layout, label->effective_attrs); - - switch (label->jtype) - { - case GTK_JUSTIFY_LEFT: - align = rtl ? PANGO_ALIGN_RIGHT : PANGO_ALIGN_LEFT; - break; - case GTK_JUSTIFY_RIGHT: - align = rtl ? PANGO_ALIGN_LEFT : PANGO_ALIGN_RIGHT; - break; - case GTK_JUSTIFY_CENTER: - align = PANGO_ALIGN_CENTER; - break; - case GTK_JUSTIFY_FILL: - /* FIXME: This just doesn't work to do this */ - align = rtl ? PANGO_ALIGN_RIGHT : PANGO_ALIGN_LEFT; - pango_layout_set_justify (label->layout, TRUE); - break; - default: - g_assert_not_reached(); - } - - pango_layout_set_alignment (label->layout, align); - pango_layout_set_ellipsize (label->layout, label->ellipsize); - - if (label->ellipsize) - pango_layout_set_width (label->layout, - widget->allocation.width * PANGO_SCALE); - else if (label->wrap) - { - GtkWidgetAuxInfo *aux_info; - gint longest_paragraph; - gint width, height; - - aux_info = NULL; /* EPHY HACK */ - if (aux_info && aux_info->width > 0) - pango_layout_set_width (label->layout, aux_info->width * PANGO_SCALE); - else - { - GdkScreen *screen = gtk_widget_get_screen (GTK_WIDGET (label)); - gint wrap_width; - - pango_layout_set_width (label->layout, -1); - pango_layout_get_extents (label->layout, NULL, &logical_rect); - - width = logical_rect.width; - - /* Try to guess a reasonable maximum width */ - longest_paragraph = width; - - wrap_width = get_label_wrap_width (label); - width = MIN (width, wrap_width); - width = MIN (width, - PANGO_SCALE * (gdk_screen_get_width (screen) + 1) / 2); - - pango_layout_set_width (label->layout, width); - pango_layout_get_extents (label->layout, NULL, &logical_rect); - width = logical_rect.width; - height = logical_rect.height; - - /* Unfortunately, the above may leave us with a very unbalanced looking paragraph, - * so we try short search for a narrower width that leaves us with the same height - */ - if (longest_paragraph > 0) - { - gint nlines, perfect_width; - - nlines = pango_layout_get_line_count (label->layout); - perfect_width = (longest_paragraph + nlines - 1) / nlines; - - if (perfect_width < width) - { - pango_layout_set_width (label->layout, perfect_width); - pango_layout_get_extents (label->layout, NULL, &logical_rect); - - if (logical_rect.height <= height) - width = logical_rect.width; - else - { - gint mid_width = (perfect_width + width) / 2; - - if (mid_width > perfect_width) - { - pango_layout_set_width (label->layout, mid_width); - pango_layout_get_extents (label->layout, NULL, &logical_rect); - - if (logical_rect.height <= height) - width = logical_rect.width; - } - } - } - } - pango_layout_set_width (label->layout, width); - } - } - else /* !label->wrap */ - pango_layout_set_width (label->layout, -1); - } -} - -static void -ephy_label_size_request (GtkWidget *widget, - GtkRequisition *requisition) -{ - EphyLabel *label; - gint width, height; - PangoRectangle logical_rect; - GtkWidgetAuxInfo *aux_info; - - g_return_if_fail (EPHY_IS_LABEL (widget)); - g_return_if_fail (requisition != NULL); - - label = EPHY_LABEL (widget); - - /* - * If word wrapping is on, then the height requisition can depend - * on: - * - * - Any width set on the widget via gtk_widget_set_usize(). - * - The padding of the widget (xpad, set by gtk_misc_set_padding) - * - * Instead of trying to detect changes to these quantities, if we - * are wrapping, we just rewrap for each size request. Since - * size requisitions are cached by the GTK+ core, this is not - * expensive. - */ - - if (label->wrap) - ephy_label_clear_layout (label); - - ephy_label_ensure_layout (label); - - width = label->misc.xpad * 2; - height = label->misc.ypad * 2; - - pango_layout_get_extents (label->layout, NULL, &logical_rect); - aux_info = NULL; /* EPHY HACK */ - - if (label->ellipsize) - { - PangoContext *context; - PangoFontMetrics *metrics; - gint char_width; - - /* The minimum size for ellipsized labels is ~ 3 chars */ - context = pango_layout_get_context (label->layout); - metrics = pango_context_get_metrics (context, widget->style->font_desc, NULL); - - char_width = pango_font_metrics_get_approximate_char_width (metrics); - pango_font_metrics_unref (metrics); - - width += (PANGO_PIXELS (char_width) * 3); - } - else - { - if (label->wrap && aux_info && aux_info->width > 0) - width += aux_info->width; - else - width += PANGO_PIXELS (logical_rect.width); - } - - height += PANGO_PIXELS (logical_rect.height); - - requisition->width = width; - requisition->height = height; -} - -static void -ephy_label_size_allocate (GtkWidget *widget, - GtkAllocation *allocation) -{ - EphyLabel *label; - - label = EPHY_LABEL (widget); - - (* GTK_WIDGET_CLASS (parent_class)->size_allocate) (widget, allocation); - - if (label->ellipsize) - { - if (label->layout) - pango_layout_set_width (label->layout, allocation->width * PANGO_SCALE); - } - - if (label->select_info && label->select_info->window) - { - gdk_window_move_resize (label->select_info->window, - allocation->x, - allocation->y, - allocation->width, - allocation->height); - } -} - -static void -ephy_label_state_changed (GtkWidget *widget, - GtkStateType prev_state) -{ - EphyLabel *label; - - label = EPHY_LABEL (widget); - - if (label->select_info) - ephy_label_select_region (label, 0, 0); - - if (GTK_WIDGET_CLASS (parent_class)->state_changed) - GTK_WIDGET_CLASS (parent_class)->state_changed (widget, prev_state); -} - -static void -ephy_label_style_set (GtkWidget *widget, - GtkStyle *previous_style) -{ - EphyLabel *label; - - g_return_if_fail (EPHY_IS_LABEL (widget)); - - label = EPHY_LABEL (widget); - - /* We have to clear the layout, fonts etc. may have changed */ - ephy_label_clear_layout (label); -} - -static void -ephy_label_direction_changed (GtkWidget *widget, - GtkTextDirection previous_dir) -{ - EphyLabel *label = EPHY_LABEL (widget); - - if (label->layout) - pango_layout_context_changed (label->layout); - - GTK_WIDGET_CLASS (parent_class)->direction_changed (widget, previous_dir); -} - -#if 0 -static void -ephy_label_paint_word (EphyLabel *label, - gint x, - gint y, - EphyLabelWord *word, - GdkRectangle *area) -{ - GtkWidget *widget = GTK_WIDGET (label); - EphyLabelULine *uline; - gchar *tmp_str; - - tmp_str = gdk_wcstombs (word->beginning); - if (tmp_str) - { - gtk_paint_string (widget->style, widget->window, widget->state, - area, widget, "label", - x + word->x, - y + word->y, - tmp_str); - g_free (tmp_str); - } - - for (uline = word->uline; uline; uline = uline->next) - gtk_paint_hline (widget->style, widget->window, - widget->state, area, - widget, "label", - x + uline->x1, x + uline->x2, y + uline->y); -} -#endif - -static void -get_layout_location (EphyLabel *label, - gint *xp, - gint *yp) -{ - GtkMisc *misc; - GtkWidget *widget; - gfloat xalign; - gint req_width, x, y; - - misc = GTK_MISC (label); - widget = GTK_WIDGET (label); - - if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR) - xalign = misc->xalign; - else - xalign = 1.0 - misc->xalign; - - if (label->ellipsize) - { - PangoRectangle ink_rect; - - pango_layout_get_extents (label->layout, &ink_rect, NULL); - - req_width = PANGO_PIXELS (ink_rect.width); - } - else - req_width = widget->requisition.width; - - x = floor (widget->allocation.x + (gint)misc->xpad + - xalign * (widget->allocation.width - req_width) - + 0.5); - - if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR) - x = MAX (x, widget->allocation.x + misc->xpad); - else - x = MIN (x, - widget->allocation.x + widget->allocation.width - - req_width - misc->xpad); - - y = floor (widget->allocation.y + (gint)misc->ypad - + MAX (((widget->allocation.height - widget->requisition.height) * misc->yalign) - + 0.5, 0)); - - if (xp) - *xp = x; - - if (yp) - *yp = y; -} - -static void -draw_insertion_cursor (EphyLabel *label, - GdkRectangle *cursor_location, - gboolean is_primary, - PangoDirection direction, - gboolean draw_arrow) -{ - GtkWidget *widget = GTK_WIDGET (label); - GtkTextDirection text_dir; - - if (direction == PANGO_DIRECTION_LTR) - text_dir = GTK_TEXT_DIR_LTR; - else - text_dir = GTK_TEXT_DIR_RTL; - - gtk_draw_insertion_cursor (widget, widget->window, NULL, - cursor_location, - is_primary, text_dir, draw_arrow); -} - -static PangoDirection -get_cursor_direction (EphyLabel *label) -{ - GSList *l; - - g_assert (label->select_info); - - ephy_label_ensure_layout (label); - - for (l = pango_layout_get_lines (label->layout); l; l = l->next) - { - PangoLayoutLine *line = l->data; - - /* If label->select_info->selection_end is at the very end of - * the line, we don't know if the cursor is on this line or - * the next without looking ahead at the next line. (End - * of paragraph is different from line break.) But it's - * definitely in this paragraph, which is good enough - * to figure out the resolved direction. - */ - if (line->start_index + line->length >= label->select_info->selection_end) - return line->resolved_dir; - } - - return PANGO_DIRECTION_LTR; -} - -static void -ephy_label_draw_cursor (EphyLabel *label, gint xoffset, gint yoffset) -{ - if (label->select_info == NULL) - return; - - if (GTK_WIDGET_DRAWABLE (label)) - { - GtkWidget *widget = GTK_WIDGET (label); - - PangoDirection keymap_direction; - PangoDirection cursor_direction; - PangoRectangle strong_pos, weak_pos; - gboolean split_cursor; - PangoRectangle *cursor1 = NULL; - PangoRectangle *cursor2 = NULL; - GdkRectangle cursor_location; - PangoDirection dir1 = PANGO_DIRECTION_NEUTRAL; - PangoDirection dir2 = PANGO_DIRECTION_NEUTRAL; - - keymap_direction = gdk_keymap_get_direction (gdk_keymap_get_for_display (gtk_widget_get_display (widget))); - cursor_direction = get_cursor_direction (label); - - ephy_label_ensure_layout (label); - - pango_layout_get_cursor_pos (label->layout, label->select_info->selection_end, - &strong_pos, &weak_pos); - - g_object_get (gtk_widget_get_settings (widget), - "gtk-split-cursor", &split_cursor, - NULL); - - dir1 = cursor_direction; - - if (split_cursor) - { - cursor1 = &strong_pos; - - if (strong_pos.x != weak_pos.x || - strong_pos.y != weak_pos.y) - { - dir2 = (cursor_direction == PANGO_DIRECTION_LTR) ? PANGO_DIRECTION_RTL : PANGO_DIRECTION_LTR; - cursor2 = &weak_pos; - } - } - else - { - if (keymap_direction == cursor_direction) - cursor1 = &strong_pos; - else - cursor1 = &weak_pos; - } - - cursor_location.x = xoffset + PANGO_PIXELS (cursor1->x); - cursor_location.y = yoffset + PANGO_PIXELS (cursor1->y); - cursor_location.width = 0; - cursor_location.height = PANGO_PIXELS (cursor1->height); - - draw_insertion_cursor (label, - &cursor_location, TRUE, dir1, - dir2 != PANGO_DIRECTION_NEUTRAL); - - if (dir2 != PANGO_DIRECTION_NEUTRAL) - { - cursor_location.x = xoffset + PANGO_PIXELS (cursor2->x); - cursor_location.y = yoffset + PANGO_PIXELS (cursor2->y); - cursor_location.width = 0; - cursor_location.height = PANGO_PIXELS (cursor2->height); - - draw_insertion_cursor (label, - &cursor_location, FALSE, dir2, - TRUE); - } - } -} - - -static gint -ephy_label_expose (GtkWidget *widget, - GdkEventExpose *event) -{ - EphyLabel *label; - gint x, y; - - g_return_val_if_fail (EPHY_IS_LABEL (widget), FALSE); - g_return_val_if_fail (event != NULL, FALSE); - - label = EPHY_LABEL (widget); - - ephy_label_ensure_layout (label); - - if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_MAPPED (widget) && - label->text && (*label->text != '\0')) - { - get_layout_location (label, &x, &y); - - gtk_paint_layout (widget->style, - widget->window, - GTK_WIDGET_STATE (widget), - FALSE, - &event->area, - widget, - "label", - x, y, - label->layout); - - if (label->select_info && - (label->select_info->selection_anchor != - label->select_info->selection_end)) - { - gint range[2]; - GdkRegion *clip; - GtkStateType state; - - range[0] = label->select_info->selection_anchor; - range[1] = label->select_info->selection_end; - - if (range[0] > range[1]) - { - gint tmp = range[0]; - range[0] = range[1]; - range[1] = tmp; - } - - clip = gdk_pango_layout_get_clip_region (label->layout, - x, y, - range, - 1); - - /* FIXME should use gtk_paint, but it can't use a clip - * region - */ - - gdk_gc_set_clip_region (widget->style->black_gc, clip); - - - state = GTK_STATE_SELECTED; - if (!GTK_WIDGET_HAS_FOCUS (widget)) - state = GTK_STATE_ACTIVE; - - gdk_draw_layout_with_colors (widget->window, - widget->style->black_gc, - x, y, - label->layout, - &widget->style->text[state], - &widget->style->base[state]); - - gdk_gc_set_clip_region (widget->style->black_gc, NULL); - gdk_region_destroy (clip); - } - else if (label->select_info && GTK_WIDGET_HAS_FOCUS (widget)) - ephy_label_draw_cursor (label, x, y); - } - - return FALSE; -} - -static void -ephy_label_set_uline_text_internal (EphyLabel *label, - const gchar *str) -{ - guint accel_key = GDK_VoidSymbol; - - gchar *new_str; - gchar *pattern; - const gchar *src; - gchar *dest, *pattern_dest; - gboolean underscore; - - g_return_if_fail (EPHY_IS_LABEL (label)); - g_return_if_fail (str != NULL); - - /* Split text into the base text and a separate pattern - * of underscores. - */ - - new_str = g_new (gchar, strlen (str) + 1); - pattern = g_new (gchar, g_utf8_strlen (str, -1) + 1); - - underscore = FALSE; - - if (str == NULL) - str = ""; - - src = str; - dest = new_str; - pattern_dest = pattern; - - while (*src) - { - gunichar c; - gchar *next_src; - - c = g_utf8_get_char (src); - if (c == (gunichar)-1) - { - g_warning ("Invalid input string"); - g_free (new_str); - g_free (pattern); - return; - } - next_src = g_utf8_next_char (src); - - if (underscore) - { - if (c == '_') - *pattern_dest++ = ' '; - else - { - *pattern_dest++ = '_'; - if (accel_key == GDK_VoidSymbol) - accel_key = gdk_keyval_to_lower (gdk_unicode_to_keyval (c)); - } - - while (src < next_src) - *dest++ = *src++; - - underscore = FALSE; - } - else - { - if (c == '_') - { - underscore = TRUE; - src = next_src; - } - else - { - while (src < next_src) - *dest++ = *src++; - - *pattern_dest++ = ' '; - } - } - } - *dest = 0; - *pattern_dest = 0; - - ephy_label_set_text_internal (label, new_str); - ephy_label_set_pattern_internal (label, pattern); - - g_free (pattern); - - label->mnemonic_keyval = accel_key; -} - -guint -ephy_label_parse_uline (EphyLabel *label, - const gchar *str) -{ - guint keyval; - guint orig_keyval; - - g_return_val_if_fail (EPHY_IS_LABEL (label), GDK_VoidSymbol); - g_return_val_if_fail (str != NULL, GDK_VoidSymbol); - - orig_keyval = label->mnemonic_keyval; - - g_object_freeze_notify (G_OBJECT (label)); - - ephy_label_set_label_internal (label, g_strdup (str ? str : "")); - ephy_label_set_use_markup_internal (label, FALSE); - ephy_label_set_use_underline_internal (label, TRUE); - - ephy_label_recalculate (label); - - keyval = label->mnemonic_keyval; - label->mnemonic_keyval = GDK_VoidSymbol; - - ephy_label_setup_mnemonic (label, orig_keyval); - - g_object_thaw_notify (G_OBJECT (label)); - - return keyval; -} - -/** - * ephy_label_set_text_with_mnemonic: - * @label: a #EphyLabel - * @str: a string - * - * Sets the label's text from the string @str. - * If characters in @str are preceded by an underscore, they are underlined - * indicating that they represent a keyboard accelerator called a mnemonic. - * The mnemonic key can be used to activate another widget, chosen automatically, - * or explicitly using ephy_label_set_mnemonic_widget(). - **/ -void -ephy_label_set_text_with_mnemonic (EphyLabel *label, - const gchar *str) -{ - guint last_keyval; - - g_return_if_fail (EPHY_IS_LABEL (label)); - g_return_if_fail (str != NULL); - - last_keyval = label->mnemonic_keyval; - - g_object_freeze_notify (G_OBJECT (label)); - - ephy_label_set_label_internal (label, g_strdup (str ? str : "")); - ephy_label_set_use_markup_internal (label, FALSE); - ephy_label_set_use_underline_internal (label, TRUE); - - ephy_label_recalculate (label); - - ephy_label_setup_mnemonic (label, last_keyval); - - g_object_thaw_notify (G_OBJECT (label)); -} - -static void -ephy_label_realize (GtkWidget *widget) -{ - EphyLabel *label; - - label = EPHY_LABEL (widget); - - (* GTK_WIDGET_CLASS (parent_class)->realize) (widget); - - if (label->select_info) - ephy_label_create_window (label); -} - -static void -ephy_label_unrealize (GtkWidget *widget) -{ - EphyLabel *label; - - label = EPHY_LABEL (widget); - - if (label->select_info) - ephy_label_destroy_window (label); - - (* GTK_WIDGET_CLASS (parent_class)->unrealize) (widget); -} - -static void -ephy_label_map (GtkWidget *widget) -{ - EphyLabel *label; - - label = EPHY_LABEL (widget); - - (* GTK_WIDGET_CLASS (parent_class)->map) (widget); - - if (label->select_info) - gdk_window_show (label->select_info->window); -} - -static void -ephy_label_unmap (GtkWidget *widget) -{ - EphyLabel *label; - - label = EPHY_LABEL (widget); - - if (label->select_info) - gdk_window_hide (label->select_info->window); - - (* GTK_WIDGET_CLASS (parent_class)->unmap) (widget); -} - -static void -window_to_layout_coords (EphyLabel *label, - gint *x, - gint *y) -{ - gint lx, ly; - GtkWidget *widget; - - widget = GTK_WIDGET (label); - - /* get layout location in widget->window coords */ - get_layout_location (label, &lx, &ly); - - if (x) - { - *x += widget->allocation.x; /* go to widget->window */ - *x -= lx; /* go to layout */ - } - - if (y) - { - *y += widget->allocation.y; /* go to widget->window */ - *y -= ly; /* go to layout */ - } -} - -#if 0 -static void -layout_to_window_coords (EphyLabel *label, - gint *x, - gint *y) -{ - gint lx, ly; - GtkWidget *widget; - - widget = GTK_WIDGET (label); - - /* get layout location in widget->window coords */ - get_layout_location (label, &lx, &ly); - - if (x) - { - *x += lx; /* go to widget->window */ - *x -= widget->allocation.x; /* go to selection window */ - } - - if (y) - { - *y += ly; /* go to widget->window */ - *y -= widget->allocation.y; /* go to selection window */ - } -} -#endif - -static void -get_layout_index (EphyLabel *label, - gint x, - gint y, - gint *index) -{ - gint trailing = 0; - const gchar *cluster; - const gchar *cluster_end; - - *index = 0; - - ephy_label_ensure_layout (label); - - window_to_layout_coords (label, &x, &y); - - x *= PANGO_SCALE; - y *= PANGO_SCALE; - - pango_layout_xy_to_index (label->layout, - x, y, - index, &trailing); - - - cluster = label->text + *index; - cluster_end = cluster; - while (trailing) - { - cluster_end = g_utf8_next_char (cluster_end); - --trailing; - } - - *index += (cluster_end - cluster); -} - -static void -ephy_label_select_word (EphyLabel *label) -{ - gint min, max; - - gint start_index = ephy_label_move_backward_word (label, label->select_info->selection_end); - gint end_index = ephy_label_move_forward_word (label, label->select_info->selection_end); - - min = MIN (label->select_info->selection_anchor, - label->select_info->selection_end); - max = MAX (label->select_info->selection_anchor, - label->select_info->selection_end); - - min = MIN (min, start_index); - max = MAX (max, end_index); - - ephy_label_select_region_index (label, min, max); -} - -static gboolean -ephy_label_button_press (GtkWidget *widget, - GdkEventButton *event) -{ - EphyLabel *label; - gint index = 0; - - label = EPHY_LABEL (widget); - - if (label->select_info == NULL) - return FALSE; - - if (event->button == 1) - { - if (!GTK_WIDGET_HAS_FOCUS (widget)) - gtk_widget_grab_focus (widget); - - if (event->type == GDK_3BUTTON_PRESS) - { - ephy_label_select_region_index (label, 0, strlen (label->text)); - return TRUE; - } - - if (event->type == GDK_2BUTTON_PRESS) - { - ephy_label_select_word (label); - return TRUE; - } - - get_layout_index (label, event->x, event->y, &index); - - if ((label->select_info->selection_anchor != - label->select_info->selection_end) && - (event->state & GDK_SHIFT_MASK)) - { - gint min, max; - - /* extend (same as motion) */ - min = MIN (label->select_info->selection_anchor, - label->select_info->selection_end); - max = MAX (label->select_info->selection_anchor, - label->select_info->selection_end); - - min = MIN (min, index); - max = MAX (max, index); - - /* ensure the anchor is opposite index */ - if (index == min) - { - gint tmp = min; - min = max; - max = tmp; - } - - ephy_label_select_region_index (label, min, max); - } - else - { - if (event->type == GDK_3BUTTON_PRESS) - ephy_label_select_region_index (label, 0, strlen (label->text)); - else if (event->type == GDK_2BUTTON_PRESS) - ephy_label_select_word (label); - else - /* start a replacement */ - ephy_label_select_region_index (label, index, index); - } - - return TRUE; - } - else if (event->button == 3 && event->type == GDK_BUTTON_PRESS) - { - ephy_label_do_popup (label, event); - - return TRUE; - - } - return FALSE; -} - -static gboolean -ephy_label_button_release (GtkWidget *widget, - GdkEventButton *event) - -{ - EphyLabel *label; - - label = EPHY_LABEL (widget); - - if (label->select_info == NULL) - return FALSE; - - if (event->button != 1) - return FALSE; - - /* The goal here is to return TRUE iff we ate the - * button press to start selecting. - */ - - return TRUE; -} - -static gboolean -ephy_label_motion (GtkWidget *widget, - GdkEventMotion *event) -{ - EphyLabel *label; - gint index; - gint x, y; - - label = EPHY_LABEL (widget); - - if (label->select_info == NULL) - return FALSE; - - if ((event->state & GDK_BUTTON1_MASK) == 0) - return FALSE; - - gdk_window_get_pointer (label->select_info->window, - &x, &y, NULL); - - get_layout_index (label, x, y, &index); - - ephy_label_select_region_index (label, - label->select_info->selection_anchor, - index); - - return TRUE; -} - -static void -ephy_label_create_window (EphyLabel *label) -{ - GtkWidget *widget; - GdkWindowAttr attributes; - gint attributes_mask; - - g_assert (label->select_info); - g_assert (GTK_WIDGET_REALIZED (label)); - - if (label->select_info->window) - return; - - widget = GTK_WIDGET (label); - - attributes.x = widget->allocation.x; - attributes.y = widget->allocation.y; - attributes.width = widget->allocation.width; - attributes.height = widget->allocation.height; - attributes.window_type = GDK_WINDOW_TEMP; - attributes.wclass = GDK_INPUT_ONLY; - attributes.override_redirect = TRUE; - attributes.cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget), - GDK_XTERM); - attributes.event_mask = gtk_widget_get_events (widget) | - GDK_BUTTON_PRESS_MASK | - GDK_BUTTON_RELEASE_MASK | - GDK_BUTTON_MOTION_MASK; - - attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_NOREDIR | GDK_WA_CURSOR; - - label->select_info->window = gdk_window_new (widget->window, - &attributes, attributes_mask); - gdk_window_set_user_data (label->select_info->window, widget); - - gdk_cursor_unref (attributes.cursor); -} - -static void -ephy_label_destroy_window (EphyLabel *label) -{ - g_assert (label->select_info); - - if (label->select_info->window == NULL) - return; - - gdk_window_set_user_data (label->select_info->window, NULL); - gdk_window_destroy (label->select_info->window); - label->select_info->window = NULL; -} - -/** - * ephy_label_set_selectable: - * @label: a #EphyLabel - * @setting: %TRUE to allow selecting text in the label - * - * Selectable labels allow the user to select text from the label, for - * copy-and-paste. - * - **/ -void -ephy_label_set_selectable (EphyLabel *label, - gboolean setting) -{ - gboolean old_setting; - - g_return_if_fail (EPHY_IS_LABEL (label)); - - setting = setting != FALSE; - old_setting = label->select_info != NULL; - - if (setting) - { - if (label->select_info == NULL) - { - label->select_info = g_new0 (EphyLabelSelectionInfo, 1); - - GTK_WIDGET_SET_FLAGS (label, GTK_CAN_FOCUS); - - if (GTK_WIDGET_REALIZED (label)) - ephy_label_create_window (label); - - if (GTK_WIDGET_MAPPED (label)) - gdk_window_show (label->select_info->window); - } - } - else - { - if (label->select_info) - { - /* unselect, to give up the selection */ - ephy_label_select_region (label, 0, 0); - - if (label->select_info->window) - { - ephy_label_destroy_window (label); - } - - g_free (label->select_info); - - label->select_info = NULL; - - GTK_WIDGET_UNSET_FLAGS (label, GTK_CAN_FOCUS); - } - } - if (setting != old_setting) - { - g_object_freeze_notify (G_OBJECT (label)); - g_object_notify (G_OBJECT (label), "selectable"); - g_object_notify (G_OBJECT (label), "cursor_position"); - g_object_notify (G_OBJECT (label), "selection_bound"); - g_object_thaw_notify (G_OBJECT (label)); - gtk_widget_queue_draw (GTK_WIDGET (label)); - } -} - -/** - * ephy_label_get_selectable: - * @label: a #EphyLabel - * - * Gets the value set by ephy_label_set_selectable(). - * - * Return value: %TRUE if the user can copy text from the label - **/ -gboolean -ephy_label_get_selectable (EphyLabel *label) -{ - g_return_val_if_fail (EPHY_IS_LABEL (label), FALSE); - - return label->select_info != NULL; -} - -static void -get_text_callback (GtkClipboard *clipboard, - GtkSelectionData *selection_data, - guint info, - gpointer user_data_or_owner) -{ - EphyLabel *label; - - label = EPHY_LABEL (user_data_or_owner); - - if ((label->select_info->selection_anchor != - label->select_info->selection_end) && - label->text) - { - gint start, end; - gint len; - - start = MIN (label->select_info->selection_anchor, - label->select_info->selection_end); - end = MAX (label->select_info->selection_anchor, - label->select_info->selection_end); - - len = strlen (label->text); - - if (end > len) - end = len; - - if (start > len) - start = len; - - gtk_selection_data_set_text (selection_data, - label->text + start, - end - start); - } -} - -static void -clear_text_callback (GtkClipboard *clipboard, - gpointer user_data_or_owner) -{ - EphyLabel *label; - - label = EPHY_LABEL (user_data_or_owner); - - if (label->select_info) - { - label->select_info->selection_anchor = label->select_info->selection_end; - - gtk_widget_queue_draw (GTK_WIDGET (label)); - } -} - -static void -ephy_label_select_region_index (EphyLabel *label, - gint anchor_index, - gint end_index) -{ - static const GtkTargetEntry targets[] = { - { "STRING", 0, 0 }, - { "TEXT", 0, 0 }, - { "COMPOUND_TEXT", 0, 0 }, - { "UTF8_STRING", 0, 0 } - }; - - g_return_if_fail (EPHY_IS_LABEL (label)); - - if (label->select_info) - { - GtkClipboard *clipboard; - - if (label->select_info->selection_anchor == anchor_index && - label->select_info->selection_end == end_index) - return; - - label->select_info->selection_anchor = anchor_index; - label->select_info->selection_end = end_index; - - clipboard = gtk_widget_get_clipboard (GTK_WIDGET (label), - GDK_SELECTION_PRIMARY); - - if (anchor_index != end_index) - { - gtk_clipboard_set_with_owner (clipboard, - targets, - G_N_ELEMENTS (targets), - get_text_callback, - clear_text_callback, - G_OBJECT (label)); - } - else - { - if (gtk_clipboard_get_owner (clipboard) == G_OBJECT (label)) - gtk_clipboard_clear (clipboard); - } - - gtk_widget_queue_draw (GTK_WIDGET (label)); - - g_object_freeze_notify (G_OBJECT (label)); - g_object_notify (G_OBJECT (label), "cursor_position"); - g_object_notify (G_OBJECT (label), "selection_bound"); - g_object_thaw_notify (G_OBJECT (label)); - } -} - -/** - * ephy_label_select_region: - * @label: a #EphyLabel - * @start_offset: start offset (in characters not bytes) - * @end_offset: end offset (in characters not bytes) - * - * Selects a range of characters in the label, if the label is selectable. - * See ephy_label_set_selectable(). If the label is not selectable, - * this function has no effect. If @start_offset or - * @end_offset are -1, then the end of the label will be substituted. - * - **/ -void -ephy_label_select_region (EphyLabel *label, - gint start_offset, - gint end_offset) -{ - g_return_if_fail (EPHY_IS_LABEL (label)); - - if (label->text && label->select_info) - { - if (start_offset < 0) - start_offset = g_utf8_strlen (label->text, -1); - - if (end_offset < 0) - end_offset = g_utf8_strlen (label->text, -1); - - ephy_label_select_region_index (label, - g_utf8_offset_to_pointer (label->text, start_offset) - label->text, - g_utf8_offset_to_pointer (label->text, end_offset) - label->text); - } -} - -/** - * ephy_label_get_selection_bounds: - * @label: a #EphyLabel - * @start: return location for start of selection, as a character offset - * @end: return location for end of selection, as a character offset - * - * Gets the selected range of characters in the label, returning %TRUE - * if there's a selection. - * - * Return value: %TRUE if selection is non-empty - **/ -gboolean -ephy_label_get_selection_bounds (EphyLabel *label, - gint *start, - gint *end) -{ - g_return_val_if_fail (EPHY_IS_LABEL (label), FALSE); - - if (label->select_info == NULL) - { - /* not a selectable label */ - if (start) - *start = 0; - if (end) - *end = 0; - - return FALSE; - } - else - { - gint start_index, end_index; - gint start_offset, end_offset; - gint len; - - start_index = MIN (label->select_info->selection_anchor, - label->select_info->selection_end); - end_index = MAX (label->select_info->selection_anchor, - label->select_info->selection_end); - - len = strlen (label->text); - - if (end_index > len) - end_index = len; - - if (start_index > len) - start_index = len; - - start_offset = g_utf8_strlen (label->text, start_index); - end_offset = g_utf8_strlen (label->text, end_index); - - if (start_offset > end_offset) - { - gint tmp = start_offset; - start_offset = end_offset; - end_offset = tmp; - } - - if (start) - *start = start_offset; - - if (end) - *end = end_offset; - - return start_offset != end_offset; - } -} - - -/** - * ephy_label_get_layout: - * @label: a #EphyLabel - * - * Gets the #PangoLayout used to display the label. - * The layout is useful to e.g. convert text positions to - * pixel positions, in combination with ephy_label_get_layout_offsets(). - * The returned layout is owned by the label so need not be - * freed by the caller. - * - * Return value: the #PangoLayout for this label - **/ -PangoLayout* -ephy_label_get_layout (EphyLabel *label) -{ - g_return_val_if_fail (EPHY_IS_LABEL (label), NULL); - - ephy_label_ensure_layout (label); - - return label->layout; -} - -/** - * ephy_label_get_layout_offsets: - * @label: a #EphyLabel - * @x: location to store X offset of layout, or %NULL - * @y: location to store Y offset of layout, or %NULL - * - * Obtains the coordinates where the label will draw the #PangoLayout - * representing the text in the label; useful to convert mouse events - * into coordinates inside the #PangoLayout, e.g. to take some action - * if some part of the label is clicked. Of course you will need to - * create a #GtkEventBox to receive the events, and pack the label - * inside it, since labels are a #GTK_NO_WINDOW widget. Remember - * when using the #PangoLayout functions you need to convert to - * and from pixels using PANGO_PIXELS() or #PANGO_SCALE. - * - **/ -void -ephy_label_get_layout_offsets (EphyLabel *label, - gint *x, - gint *y) -{ - g_return_if_fail (EPHY_IS_LABEL (label)); - - get_layout_location (label, x, y); -} - -/** - * ephy_label_set_use_markup: - * @label: a #EphyLabel - * @setting: %TRUE if the label's text should be parsed for markup. - * - * Sets whether the text of the label contains markup in Pango's text markup - * language. See ephy_label_set_markup(). - **/ -void -ephy_label_set_use_markup (EphyLabel *label, - gboolean setting) -{ - g_return_if_fail (EPHY_IS_LABEL (label)); - - ephy_label_set_use_markup_internal (label, setting); - ephy_label_recalculate (label); -} - -/** - * ephy_label_get_use_markup: - * @label: a #EphyLabel - * - * Returns whether the label's text is interpreted as marked up with - * the Pango text markup - * language. See ephy_label_set_use_markup (). - * - * Return value: %TRUE if the label's text will be parsed for markup. - **/ -gboolean -ephy_label_get_use_markup (EphyLabel *label) -{ - g_return_val_if_fail (EPHY_IS_LABEL (label), FALSE); - - return label->use_markup; -} - -/** - * ephy_label_set_use_underline: - * @label: a #EphyLabel - * @setting: %TRUE if underlines in the text indicate mnemonics - * - * If true, an underline in the text indicates the next character should be - * used for the mnemonic accelerator key. - */ -void -ephy_label_set_use_underline (EphyLabel *label, - gboolean setting) -{ - g_return_if_fail (EPHY_IS_LABEL (label)); - - ephy_label_set_use_underline_internal (label, setting); - ephy_label_recalculate (label); - if (label->use_underline) - ephy_label_setup_mnemonic (label, label->mnemonic_keyval); -} - -/** - * ephy_label_get_use_underline: - * @label: a #EphyLabel - * - * Returns whether an embedded underline in the label indicates a - * mnemonic. See ephy_label_set_use_underline (). - * - * Return value: %TRUE whether an embedded underline in the label indicates - * the mnemonic accelerator keys. - **/ -gboolean -ephy_label_get_use_underline (EphyLabel *label) -{ - g_return_val_if_fail (EPHY_IS_LABEL (label), FALSE); - - return label->use_underline; -} - -static gboolean -ephy_label_focus (GtkWidget *widget, - GtkDirectionType direction) -{ - EphyLabel *label = EPHY_LABEL (widget); - GdkEvent *current_event; - gboolean is_control_tab = FALSE; - - /* We want to be in the tab chain only if we are selectable - * and Control-[Shift]Tab is pressed - */ - if (label->select_info == NULL) - return FALSE; - - current_event = gtk_get_current_event (); - - if (current_event) - { - if (current_event->type == GDK_KEY_PRESS && - (current_event->key.keyval == GDK_Tab || - current_event->key.keyval == GDK_KP_Tab || - current_event->key.keyval == GDK_ISO_Left_Tab) && - (current_event->key.state & GDK_CONTROL_MASK) != 0) - is_control_tab = TRUE; - - gdk_event_free (current_event); - } - - if (is_control_tab) - return GTK_WIDGET_CLASS (parent_class)->focus (widget, direction); - else - return FALSE; -} - -/* Compute the X position for an offset that corresponds to the "more important - * cursor position for that offset. We use this when trying to guess to which - * end of the selection we should go to when the user hits the left or - * right arrow key. - */ -static void -get_better_cursor (EphyLabel *label, - gint index, - gint *x, - gint *y) -{ - GdkKeymap *keymap = gdk_keymap_get_for_display (gtk_widget_get_display (GTK_WIDGET (label))); - PangoDirection keymap_direction = gdk_keymap_get_direction (keymap); - PangoDirection cursor_direction = get_cursor_direction (label); - gboolean split_cursor; - PangoRectangle strong_pos, weak_pos; - - g_object_get (gtk_widget_get_settings (GTK_WIDGET (label)), - "gtk-split-cursor", &split_cursor, - NULL); - - ephy_label_ensure_layout (label); - - pango_layout_get_cursor_pos (label->layout, index, - &strong_pos, &weak_pos); - - if (split_cursor) - { - *x = strong_pos.x / PANGO_SCALE; - *y = strong_pos.y / PANGO_SCALE; - } - else - { - if (keymap_direction == cursor_direction) - { - *x = strong_pos.x / PANGO_SCALE; - *y = strong_pos.y / PANGO_SCALE; - } - else - { - *x = weak_pos.x / PANGO_SCALE; - *y = weak_pos.y / PANGO_SCALE; - } - } -} - - -static gint -ephy_label_move_logically (EphyLabel *label, - gint start, - gint count) -{ - gint offset = g_utf8_pointer_to_offset (label->text, - label->text + start); - - if (label->text) - { - PangoLogAttr *log_attrs; - gint n_attrs; - gint length; - - ephy_label_ensure_layout (label); - - length = g_utf8_strlen (label->text, -1); - - pango_layout_get_log_attrs (label->layout, &log_attrs, &n_attrs); - - while (count > 0 && offset < length) - { - do - offset++; - while (offset < length && !log_attrs[offset].is_cursor_position); - - count--; - } - while (count < 0 && offset > 0) - { - do - offset--; - while (offset > 0 && !log_attrs[offset].is_cursor_position); - - count++; - } - - g_free (log_attrs); - } - - return g_utf8_offset_to_pointer (label->text, offset) - label->text; -} - -static gint -ephy_label_move_visually (EphyLabel *label, - gint start, - gint count) -{ - gint index; - - index = start; - - while (count != 0) - { - int new_index, new_trailing; - gboolean split_cursor; - gboolean strong; - - ephy_label_ensure_layout (label); - - g_object_get (gtk_widget_get_settings (GTK_WIDGET (label)), - "gtk-split-cursor", &split_cursor, - NULL); - - if (split_cursor) - strong = TRUE; - else - { - GdkKeymap *keymap = gdk_keymap_get_for_display (gtk_widget_get_display (GTK_WIDGET (label))); - PangoDirection keymap_direction = gdk_keymap_get_direction (keymap); - - strong = keymap_direction == get_cursor_direction (label); - } - - if (count > 0) - { - pango_layout_move_cursor_visually (label->layout, strong, index, 0, 1, &new_index, &new_trailing); - count--; - } - else - { - pango_layout_move_cursor_visually (label->layout, strong, index, 0, -1, &new_index, &new_trailing); - count++; - } - - if (new_index < 0 || new_index == G_MAXINT) - break; - - index = new_index; - - while (new_trailing--) - index = g_utf8_next_char (label->text + new_index) - label->text; - } - - return index; -} - -static gint -ephy_label_move_forward_word (EphyLabel *label, - gint start) -{ - gint new_pos = g_utf8_pointer_to_offset (label->text, - label->text + start); - gint length; - - length = g_utf8_strlen (label->text, -1); - if (new_pos < length) - { - PangoLogAttr *log_attrs; - gint n_attrs; - - ephy_label_ensure_layout (label); - - pango_layout_get_log_attrs (label->layout, &log_attrs, &n_attrs); - - /* Find the next word end */ - new_pos++; - while (new_pos < n_attrs && !log_attrs[new_pos].is_word_end) - new_pos++; - - g_free (log_attrs); - } - - return g_utf8_offset_to_pointer (label->text, new_pos) - label->text; -} - - -static gint -ephy_label_move_backward_word (EphyLabel *label, - gint start) -{ - gint new_pos = g_utf8_pointer_to_offset (label->text, - label->text + start); - gint length; - - length = g_utf8_strlen (label->text, -1); - - if (new_pos > 0) - { - PangoLogAttr *log_attrs; - gint n_attrs; - - ephy_label_ensure_layout (label); - - pango_layout_get_log_attrs (label->layout, &log_attrs, &n_attrs); - - new_pos -= 1; - - /* Find the previous word beginning */ - while (new_pos > 0 && !log_attrs[new_pos].is_word_start) - new_pos--; - - g_free (log_attrs); - } - - return g_utf8_offset_to_pointer (label->text, new_pos) - label->text; -} - -static void -ephy_label_move_cursor (EphyLabel *label, - GtkMovementStep step, - gint count, - gboolean extend_selection) -{ - gint new_pos; - - if (label->select_info == NULL) - return; - - new_pos = label->select_info->selection_end; - - if (label->select_info->selection_end != label->select_info->selection_anchor && - !extend_selection) - { - /* If we have a current selection and aren't extending it, move to the - * start/or end of the selection as appropriate - */ - switch (step) - { - case GTK_MOVEMENT_VISUAL_POSITIONS: - { - gint end_x, end_y; - gint anchor_x, anchor_y; - gboolean end_is_left; - - get_better_cursor (label, label->select_info->selection_end, &end_x, &end_y); - get_better_cursor (label, label->select_info->selection_anchor, &anchor_x, &anchor_y); - - end_is_left = (end_y < anchor_y) || (end_y == anchor_y && end_x < anchor_x); - - if (count < 0) - new_pos = end_is_left ? label->select_info->selection_end : label->select_info->selection_anchor; - else - new_pos = !end_is_left ? label->select_info->selection_end : label->select_info->selection_anchor; - - break; - } - case GTK_MOVEMENT_LOGICAL_POSITIONS: - case GTK_MOVEMENT_WORDS: - if (count < 0) - new_pos = MIN (label->select_info->selection_end, label->select_info->selection_anchor); - else - new_pos = MAX (label->select_info->selection_end, label->select_info->selection_anchor); - break; - case GTK_MOVEMENT_DISPLAY_LINE_ENDS: - case GTK_MOVEMENT_PARAGRAPH_ENDS: - case GTK_MOVEMENT_BUFFER_ENDS: - /* FIXME: Can do better here */ - new_pos = count < 0 ? 0 : strlen (label->text); - break; - case GTK_MOVEMENT_DISPLAY_LINES: - case GTK_MOVEMENT_PARAGRAPHS: - case GTK_MOVEMENT_PAGES: - case GTK_MOVEMENT_HORIZONTAL_PAGES: - break; - } - } - else - { - switch (step) - { - case GTK_MOVEMENT_LOGICAL_POSITIONS: - new_pos = ephy_label_move_logically (label, new_pos, count); - break; - case GTK_MOVEMENT_VISUAL_POSITIONS: - new_pos = ephy_label_move_visually (label, new_pos, count); - break; - case GTK_MOVEMENT_WORDS: - while (count > 0) - { - new_pos = ephy_label_move_forward_word (label, new_pos); - count--; - } - while (count < 0) - { - new_pos = ephy_label_move_backward_word (label, new_pos); - count++; - } - break; - case GTK_MOVEMENT_DISPLAY_LINE_ENDS: - case GTK_MOVEMENT_PARAGRAPH_ENDS: - case GTK_MOVEMENT_BUFFER_ENDS: - /* FIXME: Can do better here */ - new_pos = count < 0 ? 0 : strlen (label->text); - break; - case GTK_MOVEMENT_DISPLAY_LINES: - case GTK_MOVEMENT_PARAGRAPHS: - case GTK_MOVEMENT_PAGES: - case GTK_MOVEMENT_HORIZONTAL_PAGES: - break; - } - } - - if (extend_selection) - ephy_label_select_region_index (label, - label->select_info->selection_anchor, - new_pos); - else - ephy_label_select_region_index (label, new_pos, new_pos); -} - -static void -ephy_label_copy_clipboard (EphyLabel *label) -{ - if (label->text && label->select_info) - { - gint start, end; - gint len; - - start = MIN (label->select_info->selection_anchor, - label->select_info->selection_end); - end = MAX (label->select_info->selection_anchor, - label->select_info->selection_end); - - len = strlen (label->text); - - if (end > len) - end = len; - - if (start > len) - start = len; - - if (start != end) - gtk_clipboard_set_text (gtk_widget_get_clipboard (GTK_WIDGET (label), - GDK_SELECTION_CLIPBOARD), - label->text + start, end - start); - } -} - -static void -ephy_label_select_all (EphyLabel *label) -{ - ephy_label_select_region_index (label, 0, strlen (label->text)); -} - -/* Quick hack of a popup menu - */ -static void -activate_cb (GtkWidget *menuitem, - EphyLabel *label) -{ - const gchar *signal = g_object_get_data (G_OBJECT (menuitem), "gtk-signal"); - g_signal_emit_by_name (label, signal); -} - -static void -append_action_signal (EphyLabel *label, - GtkWidget *menu, - const gchar *stock_id, - const gchar *signal, - gboolean sensitive) -{ - GtkWidget *menuitem = gtk_image_menu_item_new_from_stock (stock_id, NULL); - - g_object_set_data (G_OBJECT (menuitem), "gtk-signal", (char *)signal); - g_signal_connect (menuitem, "activate", - G_CALLBACK (activate_cb), label); - - gtk_widget_set_sensitive (menuitem, sensitive); - - gtk_widget_show (menuitem); - gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); -} - -static void -popup_menu_detach (GtkWidget *attach_widget, - GtkMenu *menu) -{ - EphyLabel *label; - label = EPHY_LABEL (attach_widget); - - if (label->select_info) - label->select_info->popup_menu = NULL; -} - -static void -popup_position_func (GtkMenu *menu, - gint *x, - gint *y, - gboolean *push_in, - gpointer user_data) -{ - EphyLabel *label; - GtkWidget *widget; - GtkRequisition req; - GdkScreen *screen; - - label = EPHY_LABEL (user_data); - widget = GTK_WIDGET (label); - - if (label->select_info == NULL) - return; - - g_return_if_fail (GTK_WIDGET_REALIZED (label)); - - screen = gtk_widget_get_screen (widget); - gdk_window_get_origin (widget->window, x, y); - - gtk_widget_size_request (label->select_info->popup_menu, &req); - - *x += widget->allocation.width / 2; - *y += widget->allocation.height; - - *x = CLAMP (*x, 0, MAX (0, gdk_screen_get_width (screen) - req.width)); - *y = CLAMP (*y, 0, MAX (0, gdk_screen_get_height (screen) - req.height)); -} - - -static void -ephy_label_do_popup (EphyLabel *label, - GdkEventButton *event) -{ - GtkWidget *menuitem; - gboolean have_selection; - - if (label->select_info == NULL) - return; - - if (label->select_info->popup_menu) - gtk_widget_destroy (label->select_info->popup_menu); - - label->select_info->popup_menu = gtk_menu_new (); - - gtk_menu_attach_to_widget (GTK_MENU (label->select_info->popup_menu), - GTK_WIDGET (label), - popup_menu_detach); - - have_selection = - label->select_info->selection_anchor != label->select_info->selection_end; - - - append_action_signal (label, label->select_info->popup_menu, GTK_STOCK_CUT, "cut_clipboard", - FALSE); - append_action_signal (label, label->select_info->popup_menu, GTK_STOCK_COPY, "copy_clipboard", - have_selection); - append_action_signal (label, label->select_info->popup_menu, GTK_STOCK_PASTE, "paste_clipboard", - FALSE); - - menuitem = gtk_menu_item_new_with_label (_("Select All")); - g_signal_connect_swapped (menuitem, "activate", - G_CALLBACK (ephy_label_select_all), label); - gtk_widget_show (menuitem); - gtk_menu_shell_append (GTK_MENU_SHELL (label->select_info->popup_menu), menuitem); - - menuitem = gtk_separator_menu_item_new (); - gtk_widget_show (menuitem); - gtk_menu_shell_append (GTK_MENU_SHELL (label->select_info->popup_menu), menuitem); - - menuitem = gtk_menu_item_new_with_label (_("Input Methods")); - gtk_widget_show (menuitem); - gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), gtk_menu_new ()); - gtk_widget_set_sensitive (menuitem, FALSE); - gtk_menu_shell_append (GTK_MENU_SHELL (label->select_info->popup_menu), menuitem); - - g_signal_emit (label, - signals[POPULATE_POPUP], - 0, - label->select_info->popup_menu); - - if (event) - gtk_menu_popup (GTK_MENU (label->select_info->popup_menu), NULL, NULL, - NULL, NULL, - event->button, event->time); - else - gtk_menu_popup (GTK_MENU (label->select_info->popup_menu), NULL, NULL, - popup_position_func, label, - 0, gtk_get_current_event_time ()); -} - -#endif /* !GTK_CHECK_VERSION (2, 5, 1) */ diff --git a/lib/widgets/ephy-label.h b/lib/widgets/ephy-label.h deleted file mode 100644 index 298acfd9a..000000000 --- a/lib/widgets/ephy-label.h +++ /dev/null @@ -1,189 +0,0 @@ -/* GTK - The GIMP Toolkit - * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - -/* - * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS - * file for a list of people on the GTK+ Team. See the ChangeLog - * files for a list of changes. These files are distributed with - * GTK+ at ftp://ftp.gtk.org/pub/gtk/. - */ - -/* Synch'd with gtklabel.h 1.39 */ - -#ifndef __EPHY_LABEL_H__ -#define __EPHY_LABEL_H__ - -#include - -#if GTK_CHECK_VERSION (2, 5, 1) - -#include - -#define ephy_label_new gtk_label_new -#define ephy_label_set_ellipsize gtk_label_set_ellipsize -#define ephy_label_set_text gtk_label_set_text -#define ephy_label_set_selectable gtk_label_set_selectable -#define ephy_label_set_use_markup gtk_label_set_use_markup -#define EPHY_LABEL GTK_LABEL - -#else - -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - - -#define EPHY_TYPE_LABEL (ephy_label_get_type ()) -#define EPHY_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EPHY_TYPE_LABEL, EphyLabel)) -#define EPHY_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EPHY_TYPE_LABEL, EphyLabelClass)) -#define EPHY_IS_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EPHY_TYPE_LABEL)) -#define EPHY_IS_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EPHY_TYPE_LABEL)) -#define EPHY_LABEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EPHY_TYPE_LABEL, EphyLabelClass)) - - -typedef struct _EphyLabel EphyLabel; -typedef struct _EphyLabelClass EphyLabelClass; - -typedef struct _EphyLabelSelectionInfo EphyLabelSelectionInfo; - -struct _EphyLabel -{ - GtkMisc misc; - - /*< private >*/ - gchar *label; - guint jtype : 2; - guint wrap : 1; - guint use_underline : 1; - guint use_markup : 1; - guint ellipsize : 3; - - guint mnemonic_keyval; - - gchar *text; - PangoAttrList *attrs; - PangoAttrList *effective_attrs; - - PangoLayout *layout; - - GtkWidget *mnemonic_widget; - GtkWindow *mnemonic_window; - - EphyLabelSelectionInfo *select_info; -}; - -struct _EphyLabelClass -{ - GtkMiscClass parent_class; - - void (* move_cursor) (EphyLabel *label, - GtkMovementStep step, - gint count, - gboolean extend_selection); - void (* copy_clipboard) (EphyLabel *label); - - /* Hook to customize right-click popup for selectable labels */ - void (* populate_popup) (EphyLabel *label, - GtkMenu *menu); - - /* Padding for future expansion */ - void (*_gtk_reserved1) (void); - void (*_gtk_reserved2) (void); - void (*_gtk_reserved3) (void); - void (*_gtk_reserved4) (void); -}; - -GType ephy_label_get_type (void) G_GNUC_CONST; -GtkWidget* ephy_label_new (const char *str); -GtkWidget* ephy_label_new_with_mnemonic (const char *str); -void ephy_label_set_text (EphyLabel *label, - const char *str); -G_CONST_RETURN gchar* ephy_label_get_text (EphyLabel *label); -void ephy_label_set_attributes (EphyLabel *label, - PangoAttrList *attrs); -PangoAttrList *ephy_label_get_attributes (EphyLabel *label); -void ephy_label_set_label (EphyLabel *label, - const gchar *str); -G_CONST_RETURN gchar *ephy_label_get_label (EphyLabel *label); -void ephy_label_set_markup (EphyLabel *label, - const gchar *str); -void ephy_label_set_use_markup (EphyLabel *label, - gboolean setting); -gboolean ephy_label_get_use_markup (EphyLabel *label); -void ephy_label_set_use_underline (EphyLabel *label, - gboolean setting); -gboolean ephy_label_get_use_underline (EphyLabel *label); - -void ephy_label_set_markup_with_mnemonic (EphyLabel *label, - const gchar *str); -guint ephy_label_get_mnemonic_keyval (EphyLabel *label); -void ephy_label_set_mnemonic_widget (EphyLabel *label, - GtkWidget *widget); -GtkWidget *ephy_label_get_mnemonic_widget (EphyLabel *label); -void ephy_label_set_text_with_mnemonic (EphyLabel *label, - const gchar *str); -void ephy_label_set_justify (EphyLabel *label, - GtkJustification jtype); -GtkJustification ephy_label_get_justify (EphyLabel *label); -void ephy_label_set_ellipsize (EphyLabel *label, - PangoEllipsizeMode mode); -PangoEllipsizeMode ephy_label_get_ellipsize (EphyLabel *label); -void ephy_label_set_pattern (EphyLabel *label, - const gchar *pattern); -void ephy_label_set_line_wrap (EphyLabel *label, - gboolean wrap); -gboolean ephy_label_get_line_wrap (EphyLabel *label); -void ephy_label_set_selectable (EphyLabel *label, - gboolean setting); -gboolean ephy_label_get_selectable (EphyLabel *label); -void ephy_label_select_region (EphyLabel *label, - gint start_offset, - gint end_offset); -gboolean ephy_label_get_selection_bounds (EphyLabel *label, - gint *start, - gint *end); - -PangoLayout *ephy_label_get_layout (EphyLabel *label); -void ephy_label_get_layout_offsets (EphyLabel *label, - gint *x, - gint *y); - - -#define ephy_label_set ephy_label_set_text -void ephy_label_get (EphyLabel *label, - char **str); - -/* Convenience function to set the name and pattern by parsing - * a string with embedded underscores, and return the appropriate - * key symbol for the accelerator. - */ -guint ephy_label_parse_uline (EphyLabel *label, - const gchar *string); - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* GTK_CHECK_VERSION (2, 5, 1) */ - -#endif /* __EPHY_LABEL_H__ */ diff --git a/po/ChangeLog b/po/ChangeLog index a25f51f1a..03a446f59 100644 --- a/po/ChangeLog +++ b/po/ChangeLog @@ -75,6 +75,10 @@ * nn.po: Updated Norwegian Nynorsk translation. +2004-09-05 Christian Persch + + * POTFILES.in: Remove reference to deleted files. + 2004-08-30 Nikos Charonitakis * el.po: Updated Greek translation. diff --git a/po/POTFILES.in b/po/POTFILES.in index 52b235cfa..6bb79094d 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -34,8 +34,6 @@ lib/ephy-node.c lib/ephy-stock-icons.c lib/ephy-string.c lib/ephy-zoom.h -lib/widgets/ephy-cell-renderer-progress.c -lib/widgets/ephy-label.c lib/widgets/ephy-zoom-control.c src/bookmarks/ephy-bookmark-action.c src/bookmarks/ephy-bookmark-properties.c diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index e61bd17c8..360dc8f37 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -594,7 +594,7 @@ import_dialog_response_cb (GtkDialog *dialog, gint response, ephy_file_chooser_add_mime_filter (dialog, _("Epiphany bookmarks"), - "text/rdf", NULL); + "text/rdf", "application/rdf+xml", NULL); filter = ephy_file_chooser_add_pattern_filter (dialog, _("All files"), @@ -1154,8 +1154,6 @@ ephy_bookmarks_editor_dispose (GObject *object) editor = EPHY_BOOKMARKS_EDITOR (object); - g_return_if_fail (editor->priv != NULL); - if (editor->priv->key_view != NULL) { remove_focus_monitor (editor, editor->priv->key_view); diff --git a/src/bookmarks/ephy-topics-selector.c b/src/bookmarks/ephy-topics-selector.c index eabc93985..561fd9799 100644 --- a/src/bookmarks/ephy-topics-selector.c +++ b/src/bookmarks/ephy-topics-selector.c @@ -215,8 +215,7 @@ topic_destroy_cb (EphyNode *node, } static void -node_toggled_cb (EphyTopicsSelector *selector, EphyNode *node, - gboolean checked, gpointer data) +toggle_topic (EphyTopicsSelector *selector, EphyNode *node, gboolean checked) { if (selector->priv->bookmark) { @@ -251,6 +250,13 @@ node_toggled_cb (EphyTopicsSelector *selector, EphyNode *node, } } +static void +node_toggled_cb (EphyTopicsSelector *selector, EphyNode *node, + gboolean checked, gpointer data) +{ + toggle_topic (selector, node, checked); +} + static void ephy_topics_selector_init (EphyTopicsSelector *selector) { @@ -309,6 +315,7 @@ ephy_topics_selector_new_topic (EphyTopicsSelector *selector) node = ephy_bookmarks_add_keyword (selector->priv->bookmarks, _("Type a topic")); + toggle_topic (selector, node, TRUE); ephy_node_view_select_node (EPHY_NODE_VIEW (selector), node); ephy_node_view_edit (EPHY_NODE_VIEW (selector), TRUE); } diff --git a/src/ephy-go-action.c b/src/ephy-go-action.c index bf8ec1d2f..449b85367 100644 --- a/src/ephy-go-action.c +++ b/src/ephy-go-action.c @@ -85,9 +85,12 @@ connect_proxy (GtkAction *action, { GTK_ACTION_CLASS (parent_class)->connect_proxy (action, proxy); - g_signal_connect_object (GTK_BIN (proxy)->child, "clicked", - G_CALLBACK (gtk_action_activate), action, - G_CONNECT_SWAPPED); + if (GTK_IS_TOOL_ITEM (proxy)) + { + g_signal_connect_object (GTK_BIN (proxy)->child, "clicked", + G_CALLBACK (gtk_action_activate), action, + G_CONNECT_SWAPPED); + } } static void diff --git a/src/ephy-location-action.c b/src/ephy-location-action.c index 6e524c9a3..ef7c31eb8 100644 --- a/src/ephy-location-action.c +++ b/src/ephy-location-action.c @@ -226,16 +226,6 @@ add_completion_actions (GtkAction *action, GtkWidget *proxy) G_CALLBACK (action_activated_cb), la); } -static gboolean -create_menu_proxy_cb (GtkToolItem *tool_item, - GtkAction *action) -{ - gtk_tool_item_set_proxy_menu_item - (tool_item, "ephy-location-action-menu-item", NULL); - - return TRUE; -} - static void connect_proxy (GtkAction *action, GtkWidget *proxy) { @@ -271,17 +261,6 @@ connect_proxy (GtkAction *action, GtkWidget *proxy) G_CALLBACK (user_changed_cb), action, 0); } - /* FIXME: when porting to gtk+ 2.6, use "visible-overflown" - * property on GtkAction instead. - * we need to connect to this before chaining up, since gtkaction's - * connect_proxy connects a routine there which uses create_menu_item - * method to generate a menu proxy (and create_menu_item CANNOT return - * NULL. See bug #133446. - */ - g_signal_connect_object (proxy, "create_menu_proxy", - G_CALLBACK (create_menu_proxy_cb), - action, 0); - (* GTK_ACTION_CLASS (parent_class)->connect_proxy) (action, proxy); } diff --git a/src/ephy-main.c b/src/ephy-main.c index ad5e3cb32..e0fedc816 100644 --- a/src/ephy-main.c +++ b/src/ephy-main.c @@ -44,7 +44,6 @@ static gboolean open_in_existing = FALSE; static gboolean open_in_new_tab = FALSE; static gboolean open_fullscreen = FALSE; static gboolean open_as_bookmarks_editor = FALSE; -static gboolean server_mode = FALSE; static const char *session_filename = NULL; static const char *bookmark_url = NULL; @@ -70,9 +69,6 @@ static struct poptOption popt_options[] = { "bookmarks-editor", 'b', POPT_ARG_NONE, &open_as_bookmarks_editor, 0, N_("Launch the bookmarks editor"), NULL }, - { "server", 's', POPT_ARG_NONE, &server_mode, 0, - N_("Used internally by the bonobo interface"), - NULL }, { NULL, 0, 0, NULL, 0, NULL, NULL } }; @@ -154,10 +150,6 @@ main (int argc, char *argv[]) startup_flags |= EPHY_SHELL_STARTUP_ADD_BOOKMARK; string_arg = bookmark_url; } - else if (server_mode) - { - startup_flags |= EPHY_SHELL_STARTUP_SERVER; - } gnome_vfs_init (); glade_gnome_init (); diff --git a/src/ephy-navigation-action.c b/src/ephy-navigation-action.c index 97987cd61..b186d3caa 100644 --- a/src/ephy-navigation-action.c +++ b/src/ephy-navigation-action.c @@ -23,21 +23,22 @@ #endif #include "ephy-navigation-action.h" -#include "ephy-arrow-toolbutton.h" #include "ephy-window.h" #include "ephy-string.h" #include "ephy-favicon-cache.h" #include "ephy-history.h" #include "ephy-embed-shell.h" +#include "eggdropdowntoolbutton.h" #include "ephy-debug.h" #include +#include #include +#include +#include -static void ephy_navigation_action_init (EphyNavigationAction *action); -static void ephy_navigation_action_class_init (EphyNavigationActionClass *class); - -static GObjectClass *parent_class = NULL; +#define NTH_DATA_KEY "GoNTh" +#define URL_DATA_KEY "GoURL" #define EPHY_NAVIGATION_ACTION_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_NAVIGATION_ACTION, EphyNavigationActionPrivate)) @@ -54,6 +55,11 @@ enum PROP_WINDOW }; +static void ephy_navigation_action_init (EphyNavigationAction *action); +static void ephy_navigation_action_class_init (EphyNavigationActionClass *class); + +static GObjectClass *parent_class = NULL; + GType ephy_navigation_action_get_type (void) { @@ -88,44 +94,44 @@ static GtkWidget * new_history_menu_item (const char *origtext, const char *address) { + EphyFaviconCache *cache; + EphyHistory *history; GtkWidget *item, *image; GdkPixbuf *icon = NULL; + const char *icon_address; char *short_text; - if (address != NULL) - { - EphyFaviconCache *cache; - EphyHistory *history; - const char *icon_address; - - history = EPHY_HISTORY - (ephy_embed_shell_get_global_history (embed_shell)); - icon_address = ephy_history_get_icon (history, address); - - cache = EPHY_FAVICON_CACHE - (ephy_embed_shell_get_favicon_cache (embed_shell)); - icon = ephy_favicon_cache_get (cache, icon_address); - } + g_return_val_if_fail (address != NULL, NULL); + /* FIXME: use ellipsisation in the menu item instead */ short_text = ephy_string_shorten (origtext, MAX_LENGTH); item = gtk_image_menu_item_new_with_label (short_text); g_free (short_text); - image = gtk_image_new_from_pixbuf (icon); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image); - gtk_widget_show (image); - gtk_widget_show (item); + history = EPHY_HISTORY + (ephy_embed_shell_get_global_history (embed_shell)); + icon_address = ephy_history_get_icon (history, address); + + cache = EPHY_FAVICON_CACHE + (ephy_embed_shell_get_favicon_cache (embed_shell)); + icon = ephy_favicon_cache_get (cache, icon_address); if (icon != NULL) { + image = gtk_image_new_from_pixbuf (icon); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image); + gtk_widget_show (image); g_object_unref (icon); } + gtk_widget_show (item); + return item; } static void -activate_back_or_forward_menu_item_cb (GtkWidget *menu, EphyWindow *window) +activate_back_or_forward_menu_item_cb (GtkWidget *menuitem, + EphyWindow *window) { EphyEmbed *embed; int go_nth; @@ -133,52 +139,45 @@ activate_back_or_forward_menu_item_cb (GtkWidget *menu, EphyWindow *window) embed = ephy_window_get_active_embed (window); g_return_if_fail (embed != NULL); - go_nth = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(menu), "go_nth")); + go_nth = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (menuitem), NTH_DATA_KEY)); ephy_embed_shistory_go_nth (embed, go_nth); } static void -activate_up_menu_item_cb (GtkWidget *menu, EphyWindow *window) +activate_up_menu_item_cb (GtkWidget *menuitem, + EphyWindow *window) { EphyEmbed *embed; - int go_nth; - GSList *l; - gchar *url; + char *url; embed = ephy_window_get_active_embed (window); g_return_if_fail (embed != NULL); - go_nth = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(menu), "go_nth")); - - l = ephy_embed_get_go_up_list (embed); - - url = g_slist_nth_data (l, go_nth); - if (url) - { - ephy_window_load_url (window, url); - } + url = g_object_get_data (G_OBJECT (menuitem), URL_DATA_KEY); + g_return_if_fail (url != NULL); - g_slist_foreach (l, (GFunc) g_free, NULL); - g_slist_free (l); + ephy_window_load_url (window, url); } -static void -setup_back_or_forward_menu (EphyWindow *window, GtkMenuShell *ms, EphyNavigationDirection dir) +static GtkMenuShell * +build_back_or_forward_menu (EphyNavigationAction *action) { - int pos, count; + EphyWindow *window = action->priv->window; + GtkMenuShell *menu; EphyEmbed *embed; + int pos, count; int start, end; embed = ephy_window_get_active_embed (window); - g_return_if_fail (embed != NULL); + g_return_val_if_fail (embed != NULL, NULL); pos = ephy_embed_shistory_get_pos (embed); count = ephy_embed_shistory_n_items (embed); - if (count == 0) return; + if (count == 0) return NULL; - if (dir == EPHY_NAVIGATION_DIRECTION_BACK) + if (action->priv->direction == EPHY_NAVIGATION_DIRECTION_BACK) { start = pos - 1; end = -1; @@ -189,16 +188,26 @@ setup_back_or_forward_menu (EphyWindow *window, GtkMenuShell *ms, EphyNavigation end = count; } + menu = GTK_MENU_SHELL (gtk_menu_new ()); + while (start != end) { - char *title, *url; GtkWidget *item; + char *title = NULL, *url = NULL; + ephy_embed_shistory_get_nth (embed, start, FALSE, &url, &title); + + if (url == NULL) continue; + item = new_history_menu_item (title ? title : url, url); - gtk_menu_shell_append (ms, item); - g_object_set_data (G_OBJECT (item), "go_nth", GINT_TO_POINTER (start)); + + g_object_set_data (G_OBJECT (item), NTH_DATA_KEY, + GINT_TO_POINTER (start)); g_signal_connect (item, "activate", - G_CALLBACK (activate_back_or_forward_menu_item_cb), window); + G_CALLBACK (activate_back_or_forward_menu_item_cb), + window); + + gtk_menu_shell_append (menu, item); gtk_widget_show_all (item); g_free (url); @@ -213,70 +222,73 @@ setup_back_or_forward_menu (EphyWindow *window, GtkMenuShell *ms, EphyNavigation start--; } } + + return menu; } -static void -setup_up_menu (EphyWindow *window, GtkMenuShell *ms) +static GtkMenuShell * +build_up_menu (EphyNavigationAction *action) { + EphyWindow *window = action->priv->window; EphyEmbed *embed; - GSList *l; - GSList *li; - int count = 0; + GtkMenuShell *menu; + GtkWidget *item; + GSList *list, *l; + char *url; embed = ephy_window_get_active_embed (window); - g_return_if_fail (embed != NULL); + g_return_val_if_fail (embed != NULL, NULL); - l = ephy_embed_get_go_up_list (embed); + menu = GTK_MENU_SHELL (gtk_menu_new ()); - for (li = l; li; li = li->next) + list = ephy_embed_get_go_up_list (embed); + + for (l = list; l != NULL; l = l->next) { - char *url = li->data; - GtkWidget *item; + url = l->data; + + if (url == NULL) continue; item = new_history_menu_item (url, url); - gtk_menu_shell_append (ms, item); - g_object_set_data (G_OBJECT(item), "go_nth", GINT_TO_POINTER (count)); + + g_object_set_data_full (G_OBJECT (item), URL_DATA_KEY, url, + (GDestroyNotify) g_free); g_signal_connect (item, "activate", - G_CALLBACK (activate_up_menu_item_cb), window); - gtk_widget_show_all (item); - count ++; + G_CALLBACK (activate_up_menu_item_cb), window); + + gtk_menu_shell_append (menu, item); + gtk_widget_show (item); } - g_slist_foreach (l, (GFunc) g_free, NULL); - g_slist_free (l); + /* the list data has been consumed */ + g_slist_free (list); + + return menu; } static void -menu_activated_cb (EphyArrowToolButton *w, EphyNavigationAction *b) +menu_activated_cb (EggDropdownToolButton *button, + EphyNavigationAction *action) { - EphyNavigationActionPrivate *p = b->priv; - GtkMenuShell *ms = ephy_arrow_toolbutton_get_menu (w); - EphyWindow *win = b->priv->window; - GList *children; - GList *li; + GtkMenuShell *menu = NULL; - LOG ("Show navigation menu") + LOG ("menu_activated_cb dir %d", action->priv->direction) - children = gtk_container_get_children (GTK_CONTAINER (ms)); - for (li = children; li; li = li->next) + switch (action->priv->direction) { - gtk_container_remove (GTK_CONTAINER (ms), li->data); + case EPHY_NAVIGATION_DIRECTION_UP: + menu = build_up_menu (action); + break; + case EPHY_NAVIGATION_DIRECTION_FORWARD: + case EPHY_NAVIGATION_DIRECTION_BACK: + menu = build_back_or_forward_menu (action); + break; + default: + g_assert_not_reached (); + break; } - g_list_free (children); - switch (p->direction) - { - case EPHY_NAVIGATION_DIRECTION_UP: - setup_up_menu (win, ms); - break; - case EPHY_NAVIGATION_DIRECTION_FORWARD: - case EPHY_NAVIGATION_DIRECTION_BACK: - setup_back_or_forward_menu (win, ms, p->direction); - break; - default: - g_assert_not_reached (); - break; - } + egg_dropdown_tool_button_set_menu (button, menu); } static void @@ -284,17 +296,26 @@ connect_proxy (GtkAction *action, GtkWidget *proxy) { LOG ("Connect navigation action proxy") - g_signal_connect (proxy, "menu-activated", - G_CALLBACK (menu_activated_cb), action); + if (EGG_IS_DROPDOWN_TOOL_BUTTON (proxy)) + { + g_signal_connect (proxy, "menu-activated", + G_CALLBACK (menu_activated_cb), action); + } + + GTK_ACTION_CLASS (parent_class)->connect_proxy (action, proxy); +} - (* GTK_ACTION_CLASS (parent_class)->connect_proxy) (action, proxy); +static void +ephy_navigation_action_init (EphyNavigationAction *action) +{ + action->priv = EPHY_NAVIGATION_ACTION_GET_PRIVATE (action); } static void ephy_navigation_action_set_property (GObject *object, - guint prop_id, - const GValue *value, - GParamSpec *pspec) + guint prop_id, + const GValue *value, + GParamSpec *pspec) { EphyNavigationAction *nav; @@ -313,9 +334,9 @@ ephy_navigation_action_set_property (GObject *object, static void ephy_navigation_action_get_property (GObject *object, - guint prop_id, - GValue *value, - GParamSpec *pspec) + guint prop_id, + GValue *value, + GParamSpec *pspec) { EphyNavigationAction *nav; @@ -343,33 +364,25 @@ ephy_navigation_action_class_init (EphyNavigationActionClass *class) parent_class = g_type_class_peek_parent (class); - action_class->toolbar_item_type = EPHY_TYPE_ARROW_TOOLBUTTON; + action_class->toolbar_item_type = EGG_TYPE_DROPDOWN_TOOL_BUTTON; action_class->connect_proxy = connect_proxy; g_object_class_install_property (object_class, - PROP_DIRECTION, - g_param_spec_int ("direction", - "Direction", - "Direction", - 0, + PROP_DIRECTION, + g_param_spec_int ("direction", + "Direction", + "Direction", + 0, G_MAXINT, 0, - G_PARAM_READWRITE)); + G_PARAM_READWRITE)); g_object_class_install_property (object_class, - PROP_WINDOW, - g_param_spec_object ("window", - "Window", - "The navigation window", - G_TYPE_OBJECT, - G_PARAM_READWRITE)); - - g_type_class_add_private (object_class, sizeof(EphyNavigationActionPrivate)); + PROP_WINDOW, + g_param_spec_object ("window", + "Window", + "The navigation window", + G_TYPE_OBJECT, + G_PARAM_READWRITE)); + + g_type_class_add_private (object_class, sizeof (EphyNavigationActionPrivate)); } - -static void -ephy_navigation_action_init (EphyNavigationAction *action) -{ - action->priv = EPHY_NAVIGATION_ACTION_GET_PRIVATE (action); -} - - diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c index 5651b2e98..0c4919bc4 100644 --- a/src/ephy-notebook.c +++ b/src/ephy-notebook.c @@ -25,6 +25,7 @@ #endif #include "ephy-notebook.h" +#include "ephy-stock-icons.h" #include "eel-gconf-extensions.h" #include "ephy-prefs.h" #include "ephy-marshal.h" @@ -35,7 +36,6 @@ #include "ephy-shell.h" #include "ephy-debug.h" #include "ephy-favicon-cache.h" -#include "ephy-label.h" #include "ephy-spinner.h" #include "ephy-string.h" @@ -793,7 +793,7 @@ sync_label (EphyTab *tab, GParamSpec *pspec, GtkWidget *proxy) if (title) { - ephy_label_set_text (EPHY_LABEL (label), title); + gtk_label_set_text (GTK_LABEL (label), title); gtk_tooltips_set_tip (tips, ebox, title, NULL); } } @@ -844,12 +844,10 @@ build_tab_label (EphyNotebook *nb, EphyTab *tab) { GtkWidget *window, *hbox, *label_hbox, *label_ebox; GtkWidget *label, *close_button, *image, *spinner, *icon; - int h = -1, w = -1; + GtkIconSize close_icon_size; window = gtk_widget_get_toplevel (GTK_WIDGET (nb)); - gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &w, &h); - /* set hbox spacing and label padding (see below) so that there's an * equal amount of space around the label */ hbox = gtk_hbox_new (FALSE, 4); @@ -865,9 +863,8 @@ build_tab_label (EphyNotebook *nb, EphyTab *tab) close_button = gtk_button_new (); gtk_button_set_relief (GTK_BUTTON (close_button), GTK_RELIEF_NONE); - image = gtk_image_new_from_stock (GTK_STOCK_CLOSE, - GTK_ICON_SIZE_MENU); - gtk_widget_set_size_request (close_button, w, h); + close_icon_size = gtk_icon_size_from_name (EPHY_ICON_SIZE_TAB_BUTTON); + image = gtk_image_new_from_stock (EPHY_STOCK_CLOSE_TAB, close_icon_size); gtk_container_add (GTK_CONTAINER (close_button), image); gtk_box_pack_start (GTK_BOX (hbox), close_button, FALSE, FALSE, 0); @@ -885,8 +882,8 @@ build_tab_label (EphyNotebook *nb, EphyTab *tab) gtk_box_pack_start (GTK_BOX (label_hbox), icon, FALSE, FALSE, 0); /* setup label */ - label = ephy_label_new (""); - ephy_label_set_ellipsize (EPHY_LABEL (label), PANGO_ELLIPSIZE_END); + label = gtk_label_new (""); + gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_misc_set_padding (GTK_MISC (label), 0, 0); gtk_box_pack_start (GTK_BOX (label_hbox), label, TRUE, TRUE, 0); diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 2718ea538..792099ddd 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -56,7 +56,6 @@ #include #define AUTOMATION_IID "OAFIID:GNOME_Epiphany_Automation" -#define SERVER_TIMEOUT 60000 #define EPHY_SHELL_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_SHELL, EphyShellPrivate)) @@ -74,7 +73,6 @@ struct EphyShellPrivate GObject *prefs_dialog; GObject *print_setup_dialog; GList *del_on_exit; - guint server_timeout; }; EphyShell *ephy_shell = NULL; @@ -186,7 +184,6 @@ ephy_shell_init (EphyShell *shell) shell->priv->toolbars_model = NULL; shell->priv->fs_toolbars_model = NULL; shell->priv->extensions_manager = NULL; - shell->priv->server_timeout = 0; /* globally accessible singleton */ g_assert (ephy_shell == NULL); @@ -245,14 +242,6 @@ open_urls (GNOME_EphyAutomation automation, } } -static gboolean -server_timeout (EphyShell *shell) -{ - g_object_unref (shell); - - return FALSE; -} - static gboolean save_yourself_cb (GnomeClient *client, gint phase, @@ -263,7 +252,7 @@ save_yourself_cb (GnomeClient *client, EphyShell *shell) { char *argv[] = { "epiphany", "--load-session", NULL }; - char *discard_argv[] = { "rm", "-r", NULL }; + char *discard_argv[] = { "rm", "-f", NULL }; EphySession *session; char *tmp, *save_to; @@ -359,13 +348,7 @@ ephy_shell_startup (EphyShell *shell, g_assert_not_reached (); } - if (flags & EPHY_SHELL_STARTUP_SERVER) - { - g_object_ref (shell); - shell->priv->server_timeout = g_timeout_add - (SERVER_TIMEOUT, (GSourceFunc)server_timeout, shell); - } - else if (result == Bonobo_ACTIVATION_REG_SUCCESS || + if (result == Bonobo_ACTIVATION_REG_SUCCESS || result == Bonobo_ACTIVATION_REG_ALREADY_ACTIVE) { automation = bonobo_activation_activate_from_id (AUTOMATION_IID, @@ -428,11 +411,6 @@ ephy_shell_finalize (GObject *object) g_assert (ephy_shell == NULL); - if (shell->priv->server_timeout > 0) - { - g_source_remove (shell->priv->server_timeout); - } - /* this will unload the extensions */ LOG ("Unref extension manager") g_object_unref (shell->priv->extensions_manager); diff --git a/src/ephy-shell.h b/src/ephy-shell.h index a2dbc338f..cac87a89e 100644 --- a/src/ephy-shell.h +++ b/src/ephy-shell.h @@ -62,8 +62,7 @@ typedef enum EPHY_SHELL_STARTUP_BOOKMARKS_EDITOR = 1 << 4, EPHY_SHELL_STARTUP_SESSION = 1 << 5, EPHY_SHELL_STARTUP_IMPORT_BOOKMARKS = 1 << 6, - EPHY_SHELL_STARTUP_ADD_BOOKMARK = 1 << 7, - EPHY_SHELL_STARTUP_SERVER = 1 << 8 + EPHY_SHELL_STARTUP_ADD_BOOKMARK = 1 << 7 } EphyShellStartupFlags; typedef enum @@ -109,8 +108,6 @@ gboolean ephy_shell_startup (EphyShell *shell, const char *string_arg, GError **error); -EphyWindow *ephy_shell_get_active_window (EphyShell *shell); - EphyTab *ephy_shell_new_tab (EphyShell *shell, EphyWindow *parent_window, EphyTab *previous_tab, diff --git a/src/ephy-statusbar.c b/src/ephy-statusbar.c index 8e2e8c475..697af416d 100755 --- a/src/ephy-statusbar.c +++ b/src/ephy-statusbar.c @@ -236,22 +236,18 @@ ephy_statusbar_new (void) /** * ephy_statusbar_set_security_state: * @statusbar: an #EphyStatusbar - * @secure: whether to set the icon to show secure or insecure + * @stock_id: stock-id of the icon showing the security state * @tooltip: a string detailing the security state * * Sets the statusbar's security icon and its tooltip. **/ void ephy_statusbar_set_security_state (EphyStatusbar *statusbar, - gboolean secure, + const char *stock_id, const char *tooltip) { - const char *stock; - - stock = secure ? EPHY_STOCK_SECURE : EPHY_STOCK_UNSECURE; - - gtk_image_set_from_stock (GTK_IMAGE (statusbar->priv->security_icon), stock, - GTK_ICON_SIZE_MENU); + gtk_image_set_from_stock (GTK_IMAGE (statusbar->priv->security_icon), + stock_id, GTK_ICON_SIZE_MENU); gtk_tooltips_set_tip (statusbar->tooltips, statusbar->priv->security_evbox, tooltip, NULL); diff --git a/src/ephy-statusbar.h b/src/ephy-statusbar.h index 8ca1b5af4..f7472ee82 100644 --- a/src/ephy-statusbar.h +++ b/src/ephy-statusbar.h @@ -62,7 +62,7 @@ GType ephy_statusbar_get_type (void); GtkWidget *ephy_statusbar_new (void); void ephy_statusbar_set_security_state (EphyStatusbar *statusbar, - gboolean secure, + const char *stock_id, const char *tooltip); void ephy_statusbar_set_popups_state (EphyStatusbar *statusbar, diff --git a/src/ephy-tab.c b/src/ephy-tab.c index ac498ed7f..1d0e083ca 100644 --- a/src/ephy-tab.c +++ b/src/ephy-tab.c @@ -1397,7 +1397,7 @@ save_property_url (EphyEmbed *embed, location = g_value_get_string (value); persist = EPHY_EMBED_PERSIST - (ephy_embed_factory_new_object ("EphyEmbedPersist")); + (ephy_embed_factory_new_object (EPHY_TYPE_EMBED_PERSIST)); ephy_embed_persist_set_embed (persist, embed); ephy_embed_persist_set_flags (persist, 0); @@ -1556,7 +1556,7 @@ ephy_tab_init (EphyTab *tab) tab->priv->setting_zoom = FALSE; tab->priv->address_expire = TAB_ADDRESS_EXPIRE_NOW; - embed = ephy_embed_factory_new_object ("EphyEmbed"); + embed = ephy_embed_factory_new_object (EPHY_TYPE_EMBED); g_assert (embed != NULL); gtk_container_add (GTK_CONTAINER (tab), GTK_WIDGET (embed)); @@ -1744,8 +1744,7 @@ ephy_tab_get_status_message (EphyTab *tab) static void ephy_tab_set_title (EphyTab *tab, EphyEmbed *embed, const char *new_title) { - char *title_short, *title_tmp; - char *title = NULL; + char *title_tmp, *title = NULL; g_return_if_fail (EPHY_IS_TAB (tab)); @@ -1793,18 +1792,12 @@ ephy_tab_set_title (EphyTab *tab, EphyEmbed *embed, const char *new_title) tab->priv->title = title; - title_short = ephy_string_shorten (title, MAX_LABEL_LENGTH); - title_tmp = ephy_string_double_underscores (title_short); + title_tmp = ephy_string_double_underscores (title); - /* - * FIXME: instead of shortening the title here, use an egg action - * which creates menu items with ellipsizing labels - */ g_object_set (G_OBJECT (tab->priv->action), "label", title_tmp, NULL); - g_free (title_short); g_free (title_tmp); g_object_notify (G_OBJECT (tab), "title"); diff --git a/src/ephy-tabs-menu.c b/src/ephy-tabs-menu.c index 1ab5d1c1a..c780144ea 100644 --- a/src/ephy-tabs-menu.c +++ b/src/ephy-tabs-menu.c @@ -1,5 +1,6 @@ /* * Copyright (C) 2003 David Bordoley + * Copyright (C) 2003-2004 Christian Persch * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,6 +29,8 @@ #include "ephy-shell.h" #include "ephy-debug.h" +#include +#include #include #include #include @@ -122,6 +125,19 @@ tabs_reordered_cb (EphyNotebook *notebook, EphyTabsMenu *menu) ephy_tabs_menu_update (menu); } +static void +connect_proxy_cb (GtkActionGroup *action_group, + GtkAction *action, + GtkWidget *proxy, + gpointer dummy) +{ + if (GTK_IS_MENU_ITEM (proxy)) + { + gtk_label_set_ellipsize (GTK_LABEL (GTK_BIN (proxy)->child), + PANGO_ELLIPSIZE_END); + } +} + static void ephy_tabs_menu_set_window (EphyTabsMenu *menu, EphyWindow *window) { @@ -132,9 +148,12 @@ ephy_tabs_menu_set_window (EphyTabsMenu *menu, EphyWindow *window) merge = GTK_UI_MANAGER (window->ui_merge); menu->priv->action_group = gtk_action_group_new ("TabsActions"); - gtk_ui_manager_insert_action_group (merge, menu->priv->action_group, 0); + gtk_ui_manager_insert_action_group (merge, menu->priv->action_group, -1); g_object_unref (menu->priv->action_group); + g_signal_connect (menu->priv->action_group, "connect-proxy", + G_CALLBACK (connect_proxy_cb), NULL); + notebook = ephy_window_get_notebook (window); g_signal_connect_object (notebook, "tab_added", G_CALLBACK (tab_added_cb), menu, 0); @@ -187,8 +206,8 @@ ephy_tabs_menu_class_init (EphyTabsMenuClass *klass) g_object_class_install_property (object_class, PROP_WINDOW, - g_param_spec_object ("EphyWindow", - "EphyWindow", + g_param_spec_object ("window", + "Window", "Parent window", EPHY_TYPE_WINDOW, G_PARAM_READWRITE | @@ -224,7 +243,7 @@ EphyTabsMenu * ephy_tabs_menu_new (EphyWindow *window) { return EPHY_TABS_MENU (g_object_new (EPHY_TYPE_TABS_MENU, - "EphyWindow", window, + "window", window, NULL)); } diff --git a/src/ephy-window.c b/src/ephy-window.c index 9f5d1c2bb..acc0f8db5 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -302,6 +302,12 @@ static GtkActionEntry ephy_popups_entries [] = { { "CopyLinkAddress", NULL, N_("_Copy Link Address"), NULL, NULL, G_CALLBACK (popup_cmd_copy_link_address) }, + /* Email links */ + { "SendEmail", GTK_STOCK_OPEN, N_("_Send Email..."), + NULL, NULL, G_CALLBACK (popup_cmd_open_link) }, + { "CopyEmailAddress", NULL, N_("_Copy Email Address"), NULL, + NULL, G_CALLBACK (popup_cmd_copy_link_address) }, + /* Images */ { "OpenImage", GTK_STOCK_OPEN, N_("Open _Image"), NULL, NULL, G_CALLBACK (popup_cmd_open_image) }, @@ -720,10 +726,24 @@ ephy_window_key_press_event (GtkWidget *widget, { EphyWindow *window = EPHY_WINDOW (widget); GtkWidget *menubar; - guint modifiers = gtk_accelerator_get_default_mod_mask (); + guint keyval = GDK_F10; + guint modifier = 0; + guint mask = gtk_accelerator_get_default_mod_mask (); + char *accel = NULL; + + g_object_get (gtk_widget_get_settings (widget), + "gtk-menu-bar-accel", &accel, + NULL); + + if (accel != NULL) + { + gtk_accelerator_parse (accel, &keyval, &modifier); + + g_free (accel); + } - /* Show and activate the menubar on F10, if it isn't visible */ - if (event->keyval == GDK_F10 && (event->state & modifiers) == 0) + /* Show and activate the menubar, if it isn't visible */ + if (event->keyval == keyval && (event->state & mask) == (modifier & mask)) { menubar = gtk_ui_manager_get_widget (GTK_UI_MANAGER (window->ui_merge), "/menubar"); @@ -1279,8 +1299,8 @@ sync_tab_security (EphyTab *tab, GParamSpec *pspec, EphyWindow *window) EmbedSecurityLevel level; char *description = NULL; char *state = NULL; - gboolean secure; char *tooltip; + const char *stock_id = STOCK_LOCK_INSECURE; if (window->priv->closing) return; @@ -1288,14 +1308,6 @@ sync_tab_security (EphyTab *tab, GParamSpec *pspec, EphyWindow *window) ephy_embed_get_security_level (embed, &level, &description); - if (level != ephy_tab_get_security_level (tab)) - { - /* something is VERY wrong here! */ - level = STATE_IS_UNKNOWN; - description = NULL; - } - - secure = FALSE; switch (level) { case STATE_IS_UNKNOWN: @@ -1306,18 +1318,19 @@ sync_tab_security (EphyTab *tab, GParamSpec *pspec, EphyWindow *window) break; case STATE_IS_BROKEN: state = _("Broken"); + stock_id = STOCK_LOCK_BROKEN; break; case STATE_IS_SECURE_MED: state = _("Medium"); - secure = TRUE; + stock_id = STOCK_LOCK_SECURE; break; case STATE_IS_SECURE_LOW: state = _("Low"); - secure = TRUE; + stock_id = STOCK_LOCK_SECURE; break; case STATE_IS_SECURE_HIGH: state = _("High"); - secure = TRUE; + stock_id = STOCK_LOCK_SECURE; break; default: g_assert_not_reached (); @@ -1337,7 +1350,7 @@ sync_tab_security (EphyTab *tab, GParamSpec *pspec, EphyWindow *window) } ephy_statusbar_set_security_state (EPHY_STATUSBAR (window->priv->statusbar), - secure, tooltip); + stock_id, tooltip); g_free (tooltip); } @@ -1569,8 +1582,18 @@ show_embed_popup (EphyWindow *window, EphyTab *tab, EphyEmbedEvent *event) LOG ("show_embed_popup context %x", context) - if ((context & EMBED_CONTEXT_LINK) && + if ((context & EMBED_CONTEXT_EMAIL_LINK) && (context & EMBED_CONTEXT_IMAGE)) + { + popup = "/EphyImageEmailLinkPopup"; + } + else if (context & EMBED_CONTEXT_EMAIL_LINK) + { + popup = "/EphyEmailLinkPopup"; + update_edit_actions_sensitivity (window, TRUE); + } + else if ((context & EMBED_CONTEXT_LINK) && + (context & EMBED_CONTEXT_IMAGE)) { popup = "/EphyImageLinkPopup"; } diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c index 68f054479..80169e311 100755 --- a/src/pdm-dialog.c +++ b/src/pdm-dialog.c @@ -30,7 +30,6 @@ #include "ephy-file-helpers.h" #include "ephy-password-manager.h" #include "ephy-gui.h" -#include "ephy-label.h" #include "ephy-debug.h" #include "ephy-state.h" @@ -923,16 +922,16 @@ show_cookies_properties (PdmDialog *dialog, gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_FILL, GTK_FILL, 0, 0); - label = ephy_label_new (info->value); - ephy_label_set_selectable (EPHY_LABEL (label), TRUE); + label = gtk_label_new (info->value); + gtk_label_set_selectable (GTK_LABEL (label), TRUE); gtk_misc_set_alignment (GTK_MISC (label), 0, 0); gtk_widget_show (label); gtk_table_attach_defaults (GTK_TABLE (table), label, 1, 2, 0, 1); str = g_strconcat ("", _("Path:"), "", NULL); - label = ephy_label_new (str); + label = gtk_label_new (str); g_free (str); - ephy_label_set_use_markup (EPHY_LABEL (label), TRUE); + gtk_label_set_use_markup (GTK_LABEL (label), TRUE); gtk_misc_set_alignment (GTK_MISC (label), 0, 0); gtk_widget_show (label); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, diff --git a/src/popup-commands.c b/src/popup-commands.c index 34dafdfc8..5b6467e83 100644 --- a/src/popup-commands.c +++ b/src/popup-commands.c @@ -203,7 +203,7 @@ save_property_url (GtkAction *action, location = g_value_get_string (value); persist = EPHY_EMBED_PERSIST - (ephy_embed_factory_new_object ("EphyEmbedPersist")); + (ephy_embed_factory_new_object (EPHY_TYPE_EMBED_PERSIST)); ephy_embed_persist_set_embed (persist, embed); ephy_embed_persist_set_fc_title (persist, title); @@ -303,7 +303,7 @@ popup_cmd_set_image_as_background (GtkAction *action, location = g_value_get_string (value); persist = EPHY_EMBED_PERSIST - (ephy_embed_factory_new_object ("EphyEmbedPersist")); + (ephy_embed_factory_new_object (EPHY_TYPE_EMBED_PERSIST)); base = g_path_get_basename (location); base_converted = g_filename_from_utf8 (base, -1, NULL, NULL, NULL); diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 560989675..35155f4e9 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -37,7 +37,6 @@ #include "ephy-langs.h" #include "ephy-encodings.h" #include "ephy-debug.h" -#include "ephy-label.h" #include "ephy-file-chooser.h" #include "ephy-file-helpers.h" #include "ephy-tree-model-node.h" @@ -1134,8 +1133,8 @@ create_download_path_label (EphyDialog *dialog) button = ephy_dialog_get_control (dialog, properties[DOWNLOAD_PATH_BUTTON_PROP].id); dir = get_download_button_label (); - label = ephy_label_new (dir); - ephy_label_set_ellipsize (EPHY_LABEL (label), PANGO_ELLIPSIZE_START); + label = gtk_label_new (dir); + gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_START); gtk_container_add (GTK_CONTAINER (button), label); g_free (dir); gtk_widget_show (label); @@ -1296,7 +1295,7 @@ download_path_response_cb (GtkDialog *fc, gint response, EphyDialog *dialog) button = ephy_dialog_get_control (dialog, properties[DOWNLOAD_PATH_BUTTON_PROP].id); label = get_download_button_label (); - ephy_label_set_text (EPHY_LABEL (GTK_BIN (button)->child), label); + gtk_label_set_text (GTK_LABEL (GTK_BIN (button)->child), label); g_free (dir); g_free (label); diff --git a/src/toolbar.c b/src/toolbar.c index 55e9b3dfb..142b92806 100755 --- a/src/toolbar.c +++ b/src/toolbar.c @@ -51,9 +51,9 @@ static void toolbar_set_window (Toolbar *t, EphyWindow *window); static GtkTargetEntry drag_targets[] = { - { EGG_TOOLBAR_ITEM_TYPE, 0, 0 }, - { EPHY_DND_TOPIC_TYPE, 0, 1 }, - { EPHY_DND_URL_TYPE, 0, 2 } + { EGG_TOOLBAR_ITEM_TYPE, GTK_TARGET_SAME_APP, 0 }, + { EPHY_DND_TOPIC_TYPE, 0, 1 }, + { EPHY_DND_URL_TYPE, 0, 2 } }; static int n_drag_targets = G_N_ELEMENTS (drag_targets); @@ -338,6 +338,7 @@ toolbar_setup_actions (Toolbar *t) "label", _("Address Entry"), "stock_id", EPHY_STOCK_ENTRY, "tooltip", _("Enter a web address to open, or a phrase to search for on the web"), + "visible-overflown", FALSE, NULL); g_signal_connect (action, "go_location", G_CALLBACK (go_location_cb), t->priv->window); @@ -363,6 +364,7 @@ toolbar_setup_actions (Toolbar *t) "name", "Favicon", "label", _("Favicon"), "window", t->priv->window, + "visible-overflown", FALSE, NULL); gtk_action_group_add_action (t->priv->action_group, action); g_object_unref (action); diff --git a/src/window-commands.c b/src/window-commands.c index aac37cfe9..9b87e0a0d 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -417,7 +417,7 @@ window_cmd_file_save_as (GtkAction *action, g_return_if_fail (embed != NULL); persist = EPHY_EMBED_PERSIST - (ephy_embed_factory_new_object ("EphyEmbedPersist")); + (ephy_embed_factory_new_object (EPHY_TYPE_EMBED_PERSIST)); ephy_embed_persist_set_embed (persist, embed); ephy_embed_persist_set_fc_title (persist, _("Save As")); @@ -758,7 +758,7 @@ save_temp_source (EphyEmbed *embed) } persist = EPHY_EMBED_PERSIST - (ephy_embed_factory_new_object ("EphyEmbedPersist")); + (ephy_embed_factory_new_object (EPHY_TYPE_EMBED_PERSIST)); ephy_embed_persist_set_embed (persist, embed); ephy_embed_persist_set_flags (persist, EMBED_PERSIST_COPY_PAGE | -- cgit v1.2.3