aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-node.c
Commit message (Collapse)AuthorAgeFilesLines
* Pass the property id to the changed signal.Marco Pesenti Gritti2004-02-111-4/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-11 Marco Pesenti Gritti <marco@gnome.org> * 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.
* Added disable_bookmark_editing key.Chris Lahey2004-01-101-5/+21
| | | | | | | | | | | | | | | | | | | | | | * 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.
* *** empty log message ***Marco Pesenti Gritti2003-12-171-247/+0
|
* Port node db saving and RDF export to xml writer api.Christian Persch2003-11-081-67/+81
| | | | | | | | | | | | | | | | | | | | | | 2003-11-08 Christian Persch <chpe@cvs.gnome.org> * 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.
* Use new glib gi18n.h instead of bonobo's bonobo-i18n.h.Christian Persch2003-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-05 Christian Persch <chpe@cvs.gnome.org> * 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.
* Fix mem leaks.Christian Persch2003-07-131-2/+2
| | | | | | | | 2003-07-13 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-node.c: (ephy_node_finalize): Fix mem leaks.
* 2003-07-13 Marco Pesenti Gritti <marco@it.gnome.org>Marco Pesenti Gritti2003-07-131-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am: * configure.in: * embed/Makefile.am: * embed/ephy-embed-shell.c: (ephy_embed_shell_get_favicon_cache), (impl_get_downloader_view): * embed/ephy-embed-shell.h: * embed/ephy-embed-single.c: * embed/ephy-embed-single.h: * embed/mozilla/ProgressListener.cpp: * embed/mozilla/mozilla-embed.cpp: * lib/Makefile.am: * lib/ephy-langs.h: * lib/ephy-node.c: (unref_signal_objects), (ephy_node_signal_connect_object): * plugins/Makefile.am: * plugins/sample/Makefile.am: * plugins/sample/sample.c: (bmk_added), (bmk_removed), (bmk_changed), (switch_page_cb), (window_focus_in_cb), (location_changed_cb), (tab_added_cb), (new_window_cb), (plugin_init): * src/Makefile.am: * src/bookmarks/Makefile.am: * src/bookmarks/ephy-bookmark-action.c: (ephy_bookmark_action_sync_icon): * src/bookmarks/ephy-bookmark-properties.c: (set_window_icon), (ephy_bookmark_properties_init): * src/bookmarks/ephy-bookmarks-editor.c: (provide_favicon), (ephy_bookmarks_editor_init): * src/bookmarks/ephy-bookmarks.c: (update_favorites_menus): * src/bookmarks/ephy-topic-action.c: (build_bookmarks_menu): * src/ephy-automation.c: (impl_ephy_automation_loadurl), (impl_ephy_automation_quit), (impl_ephy_automation_load_session): * src/ephy-favicon-action.c: (ephy_favicon_action_init): * src/ephy-history-window.c: (confirmation_dialog_response_cb), (provide_favicon): * src/ephy-location-action.c: (connect_proxy): * src/ephy-notebook.c: (sync_icon): * src/ephy-shell.c: (ephy_shell_get_active_window), (ephy_shell_get_session), (ephy_shell_get_autocompletion), (ephy_shell_get_toolbars_model): * src/ephy-shell.h: * src/ephy-tab.c: (ephy_tab_net_state_cb), (ephy_tab_init), (ephy_tab_get_action): * src/ephy-tab.h: * src/ephy-tabs-menu.c: (ephy_tabs_menu_update): * src/ephy-window.c: (ephy_window_fullscreen), (ephy_window_unfullscreen), (sync_tab_icon), (ephy_window_init), (remove_from_session), (ephy_window_get_active_tab):
* Fix mem leak.Christian Persch2003-07-061-8/+11
| | | | | | | | | | | | | 2003-07-06 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-node.c: (ephy_node_finalize): Fix mem leak. * lib/ephy-node.c: (ephy_node_save_to_xml), (ephy_node_new_from_xml): Use locale-independent functions g_ascii_strtod and g_ascii_dtostr when reading/writing float and double values.
* Use G_VA_COPY macro from glib instead of va_copy, (hopefully) fixing theChristian Persch2003-07-051-1/+4
| | | | | | | | | 2003-07-04 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-node.c: (callback): Use G_VA_COPY macro from glib instead of va_copy, (hopefully) fixing the va_ problem for good.
* Must use va_copy when assigning valist on arches where varargs areJeremy Katz2003-07-041-1/+3
| | | | | | | | 2003-07-03 Jeremy Katz <katzj@redhat.com> * lib/ephy-node.c (callback): Must use va_copy when assigning valist on arches where varargs are implemented as an array type (such as AMD64)
* Don't try to assign va_list to a gpointer var. Fixes bug #116131.Christian Persch2003-07-031-12/+19
| | | | | | | | 2003-07-03 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-node.c: (callback), (ephy_node_emit_signal): Don't try to assign va_list to a gpointer var. Fixes bug #116131.
* Use va_copy for the valist instead of directly accessing it. va_list isJeremy Katz2003-06-091-1/+3
| | | | | | | | 2003-06-09 Jeremy Katz <katzj@redhat.com> * lib/ephy-node.c (callback): Use va_copy for the valist instead of directly accessing it. va_list is implemented as an array on some platforms (eg, AMD64).
* More of the same.Xan Lopez2003-05-271-0/+6
| | | | More of the same.
* Lots of safety checks on node functions.Xan Lopez2003-05-271-2/+49
| | | | Lots of safety checks on node functions.
* s/DESTROYED/DESTROY which is more useulfMarco Pesenti Gritti2003-05-271-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-26 Marco Pesenti Gritti <marco@it.gnome.org> * lib/ephy-node.c: (callback), (ephy_node_dispose): * lib/ephy-node.h: s/DESTROYED/DESTROY which is more useulf * lib/widgets/ephy-tree-model-node.c: (ephy_tree_model_node_set_property), (root_destroy_cb): * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_update_menu): * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init_defaults), (ephy_bookmarks_set_toolbars_model), (ephy_bookmarks_set_property), (ephy_bookmarks_get_property), (ephy_bookmarks_class_init), (bookmarks_removed_cb), (topics_removed_cb), (ephy_bookmarks_init), (ephy_bookmarks_finalize): * src/ephy-shell.c: (ephy_shell_get_toolbars_model): * src/ephy-toolbars-model.c: (impl_add_item), (ephy_toolbars_model_set_bookmarks), (ephy_toolbars_model_set_property), (ephy_toolbars_model_get_property), (ephy_toolbars_model_class_init), (ephy_toolbars_model_init), (ephy_toolbars_model_finalize), (ephy_toolbars_model_new): * src/ephy-toolbars-model.h: * src/toolbar.c: (topic_destroy_cb), (bookmark_destroy_cb), (toolbar_ensure_action), (toolbar_init): Better way to remove unrefed bookmarks from the toolbar. Ref bookmarks in toolbars model and weak reaf toolbars model in bookmarks. So setting defaults really works.
* Unlink the node from the childs only after the remove from parent signalMarco Pesenti Gritti2003-05-261-5/+5
| | | | | | | | | 2003-05-25 Marco Pesenti Gritti <marco@it.gnome.org> * lib/ephy-node.c: (ephy_node_dispose): Unlink the node from the childs only after the remove from parent signal has been emitted.
* Try to fix node removal problems. I cant repro crashes ... but they areMarco Pesenti Gritti2003-05-261-21/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-25 Marco Pesenti Gritti <marco@it.gnome.org> * configure.in: * embed/ephy-favicon-cache.c: (ephy_favicon_cache_save): * embed/ephy-history.c: (ephy_history_save), (hosts_removed_cb), (pages_removed_cb), (unref_empty_host), (page_removed_from_host_cb), (connect_page_removed_from_host), (ephy_history_init), (ephy_history_add_host): * lib/ephy-file-helpers.c: (ephy_file_save_xml): * lib/ephy-file-helpers.h: * lib/ephy-node.c: (callback), (ephy_node_emit_signal), (real_remove_child), (ephy_node_dispose): * lib/ephy-node.h: * lib/ephy-state.c: (ephy_states_save): * lib/widgets/ephy-tree-model-node.c: (root_child_removed_cb): * src/bookmarks/ephy-bookmarks-export.c: (ephy_bookmarks_export_rdf): * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_save), (bookmarks_removed_cb), (topics_removed_cb): Try to fix node removal problems. I cant repro crashes ... but they are quite hard to reproduce. Use a save_xml helper that is low disk safe. * src/ephy-automation.c: (impl_ephy_automation_loadurl): Use OPEN_PAGE when an url is passed
* Revert latest node changes. Parents nodes need to be saved first and it'sMarco Pesenti Gritti2003-05-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 2003-05-25 Marco Pesenti Gritti <marco@it.gnome.org> * embed/ephy-favicon-cache.c: (ephy_favicon_cache_load), (ephy_favicon_cache_save), (ephy_favicon_cache_init), (ephy_favicon_cache_finalize): * embed/ephy-history.c: (ephy_history_load), (ephy_history_save), (ephy_history_init): * lib/ephy-node-db.c: (ephy_node_db_get_property), (ephy_node_db_set_property), (ephy_node_db_class_init), (ephy_node_db_init), (ephy_node_db_finalize), (ephy_node_db_new), (_ephy_node_db_remove_id): * lib/ephy-node-db.h: * lib/ephy-node.c: (ephy_node_save_to_xml): * lib/ephy-node.h: * lib/ephy-state.c: (ephy_states_load), (ephy_states_save), (ensure_states): * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_load), (ephy_bookmarks_save), (ephy_bookmarks_init): Revert latest node changes. Parents nodes need to be saved first and it's easier to do that in a not generic way :/
* Implement generic way to save/load db and make it low disk safe.Marco Pesenti Gritti2003-05-241-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-23 Marco Pesenti Gritti <marco@it.gnome.org> * embed/ephy-favicon-cache.c: (ephy_favicon_cache_load), (ephy_favicon_cache_save), (ephy_favicon_cache_init), (ephy_favicon_cache_finalize): * embed/ephy-history.c: (ephy_history_load), (ephy_history_save), (ephy_history_init): * lib/ephy-node-db.c: (ephy_node_db_set_version), (ephy_node_db_get_property), (ephy_node_db_set_property), (ephy_node_db_class_init), (ephy_node_db_init), (ephy_node_db_finalize), (ephy_node_db_new), (_ephy_node_db_remove_id), (ephy_node_db_load_from_xml), (ephy_node_db_save_to_xml): * lib/ephy-node-db.h: * lib/ephy-node.c: (ephy_node_to_xml): * lib/ephy-node.h: * lib/ephy-state.c: (ephy_states_load), (ephy_states_save), (ensure_states): * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_load), (ephy_bookmarks_save), (ephy_bookmarks_init), (ephy_bookmarks_finalize): Implement generic way to save/load db and make it low disk safe.
* Fix nodes drag and drop. Make double click select the whole address inMarco Pesenti Gritti2003-05-211-0/+6
| | | | | | | | | | | | | | | | | | | 2003-05-20 Marco Pesenti Gritti <marco@it.gnome.org> * lib/ephy-dnd.c: (ephy_dnd_drag_data_get), (ephy_dnd_node_list_extract_nodes): * lib/ephy-node-db.c: (ephy_node_db_set_name), (node_from_id_real), (ephy_node_db_get_name): * lib/ephy-node-db.h: * lib/ephy-node.c: (ephy_node_get_db): * lib/ephy-node.h: * lib/widgets/ephy-location-entry.c: (ephy_location_entry_button_press_event_cb), (ephy_location_entry_build): * lib/widgets/ephy-tree-model-sort.c: (each_node_get_data_binder): Fix nodes drag and drop. Make double click select the whole address in toolbar entry.
* 2003-05-19 Marco Pesenti Gritti <marco@it.gnome.org>Marco Pesenti Gritti2003-05-201-745/+436
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/Makefile.am: * lib/ephy-dnd.c: (ephy_dnd_node_list_extract_nodes): * lib/ephy-node.c: (write_lock_to_read_lock), (read_lock_to_write_lock), (lock_gdk), (unlock_gdk), (callback), (ephy_node_emit_signal), (ephy_node_finalize), (real_remove_child), (remove_child), (signal_object_weak_notify), (unref_signal_objects), (ephy_node_dispose), (ephy_node_new), (ephy_node_new_with_id), (ephy_node_get_id), (ephy_node_ref), (ephy_node_unref), (ephy_node_freeze), (ephy_node_thaw), (child_changed), (real_set_property), (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), (save_parent), (ephy_node_save_to_xml), (real_add_child), (ephy_node_new_from_xml), (ephy_node_add_child), (ephy_node_remove_child), (ephy_node_has_child), (ephy_node_real_get_child_index), (ephy_node_sort_children), (ephy_node_reorder_children), (ephy_node_get_children), (ephy_node_get_n_children), (ephy_node_get_nth_child), (get_child_index_real), (ephy_node_get_child_index), (ephy_node_get_next_child), (ephy_node_get_previous_child), (ephy_node_signal_connect_object), (ephy_node_signal_disconnect): * lib/ephy-node.h: * lib/ephy-state.c: (ephy_states_load), (ensure_states), (ephy_state_add_window), (ephy_state_add_paned), (ephy_state_save): * lib/widgets/ephy-node-view.c: (ephy_node_view_class_init), (ephy_node_view_selection_changed_cb), (ephy_node_view_set_property), (ephy_node_view_get_property), (ephy_node_view_remove): * lib/widgets/ephy-tree-model-node.c: (ephy_tree_model_node_class_init), (ephy_tree_model_node_set_property), (ephy_tree_model_node_get_property), (ephy_tree_model_node_get_value), (ephy_tree_model_node_get_path), (ephy_tree_model_node_iter_next), (ephy_tree_model_node_node_from_iter): * src/bookmarks/ephy-bookmark-action.c: (ephy_bookmark_action_init), (ephy_bookmark_action_new): * src/bookmarks/ephy-bookmark-properties.c: (ephy_bookmark_properties_class_init), (ephy_bookmark_properties_set_property): * src/bookmarks/ephy-bookmarks-editor.c: (cmd_show_in_bookmarks_bar), (cmd_open_bookmarks_in_tabs), (cmd_open_bookmarks_in_browser), (cmd_delete), (cmd_bookmark_properties), (cmd_copy), (ephy_bookmarks_editor_node_activated_cb), (ephy_bookmarks_editor_update_menu),
* Fixed many issues mentioned in #112781.Christian Neumair2003-05-171-1/+1
|
* Add ephy_node_sort_children, unused but kept for future reference inXan Lopez2003-05-111-8/+73
| | | | | | Add ephy_node_sort_children, unused but kept for future reference in jorn's s3kr3t project (and it's cool to be the state of the art implementation of node stuff anyway).
* Emit removed signal after the node is actually removed. This could causeMarco Pesenti Gritti2003-04-281-8/+9
| | | | | | | | | | | | | | 2003-04-27 Marco Pesenti Gritti <marco@it.gnome.org> * lib/ephy-node.c: (real_remove_child): Emit removed signal after the node is actually removed. This could cause bugs, test test test ;) * src/bookmarks/ephy-bookmarks.c: (topics_removed_cb): Update topics list and uncategorized folder on topics removal.
* Implement ephy_node_reorder_children (from Rhythmbox).Xan Lopez2003-04-261-0/+53
| | | | Implement ephy_node_reorder_children (from Rhythmbox).
* Use home:, have titles.Marco Pesenti Gritti2003-04-151-2/+0
| | | | | | | | | | | | | | | | | 2003-04-14 Marco Pesenti Gritti <marco@it.gnome.org> * data/epiphany.schemas.in: * data/starthere/index.xml.in: * data/starthere/section.xsl: * data/starthere/smartbookmarks.xml.in: * embed/mozilla/StartHereProtocolHandler.cpp: * embed/mozilla/StartHereProtocolHandler.h: Use home:, have titles. * lib/ephy-node.c: (ephy_node_get_from_id): Do not assert on 0 id. It's valid.
* Use google feel like for keywordsMarco Pesenti Gritti2003-04-131-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-04-13 Marco Pesenti Gritti <marco@it.gnome.org> * embed/mozilla/default-prefs.js: Use google feel like for keywords * lib/ephy-node.c: (ephy_node_new_with_id), (ephy_node_system_init): * lib/ephy-node.h: Pass the reserved ids num * lib/ephy-types.h: * src/ephy-shell.c: (ephy_shell_init): Increase reserved ids to 100. * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init_defaults), (ephy_bookmarks_load), (ephy_bookmarks_init): Default keywords and bookmarks (only google smb). Keywords are probably quite sucky, well it's a start ;) Adding more bookmarks could be a i18n pain. We should be ready for 0.5.0 now. Apologies to translators for the added string, but this was really necessary for the bookmarks system to make sense :/
* Fix evil bug in id factory.Marco Pesenti Gritti2003-01-231-1/+4
| | | | | | | | | 2003-01-23 Marco Pesenti Gritti <marco@it.gnome.org> * TODO: * lib/ephy-node.c: (id_factory_set_to): Fix evil bug in id factory.
* Extend ephy node to allow some reversed ids. Use it for baseMarco Pesenti Gritti2003-01-091-2/+20
| | | | | | | | | | | | | | | | | 2003-01-09 Marco Pesenti Gritti <marco@it.gnome.org> * TODO: * embed/ephy-history.c: (ephy_history_init): * embed/mozilla/FilePicker.cpp: * lib/ephy-node.c: (ephy_node_new_with_id), (ephy_node_system_init): * lib/ephy-node.h: * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init): Extend ephy node to allow some reversed ids. Use it for base bookmarks/history elements, should fix bookmarks lossage. Fix filepicker initialization.
* Initial revisionMarco Pesenti Gritti2002-12-311-0/+1439