aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/ephy-node-view.c
Commit message (Collapse)AuthorAgeFilesLines
* Make select-by-key support unsorted lists. Fuzzy matching is gone though.Xan Lopez2004-03-191-1/+1
| | | | | | | | * 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)
* merging pre-gnome-2-8 branchMarco Pesenti Gritti2004-03-171-0/+4
|
* Copy and modify gnome_vfs_uri_list_parse() so that we get a list of stringChristian Persch2004-03-041-3/+56
| | | | | | | | | | | | | | | 2004-03-03 Christian Persch <chpe@cvs.gnome.org> * 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.
* Fix mem leak.Christian Persch2004-01-261-0/+5
| | | | | | | | 2004-01-25 Christian Persch <chpe@cvs.gnome.org> * lib/widgets/ephy-node-view.c: (ephy_node_view_finalize): Fix mem leak.
* Do not unselect all on single selection mode, to not generate useless nodeMarco Pesenti Gritti2003-10-061-1/+5
| | | | | | | | | | | | | | 2003-10-06 Marco Pesenti Gritti <marco@gnome.org> * 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.
* Implement a way to choose visible column in a menu. Not finished I need toMarco Pesenti Gritti2003-09-211-3/+0
| | | | | | | | | | | | 2003-09-21 Marco Pesenti Gritti <marco@gnome.org> * data/ui/epiphany-bookmark-editor-ui.xml: * lib/widgets/ephy-node-view.c: (ephy_node_view_add_column): * src/bookmarks/ephy-bookmarks-editor.c: (cmd_view_columns), (ephy_bookmarks_editor_construct): Implement a way to choose visible column in a menu. Not finished I need to persist state in a gconf key.
* *** empty log message ***Marco Pesenti Gritti2003-09-041-3/+2
|
* Use x,y only on drop, otherwise they are invalid. Damn that api suck.Marco Pesenti Gritti2003-09-041-10/+13
| | | | | | | | | 2003-09-04 Marco Pesenti Gritti <marco@gnome.org> * lib/widgets/ephy-node-view.c: (drag_data_received_cb): Use x,y only on drop, otherwise they are invalid. Damn that api suck.
* Check if the target type match before highlighting the row and returnMarco Pesenti Gritti2003-09-041-1/+3
| | | | | | | | | 2003-09-04 Marco Pesenti Gritti <marco@gnome.org> * lib/widgets/ephy-node-view.c: (drag_motion_cb): Check if the target type match before highlighting the row and return success status.
* Mega-patch, changelog too long to paste here.Christian Persch2003-09-021-11/+8
|
* Fix problems with EphyNodeView, bookmarks and history dialogs and updateMarco Pesenti Gritti2003-09-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 2003-08-31 Marco Pesenti Gritti <marco@gnome.org> * data/ui/epiphany-history-window-ui.xml.in: * data/ui/epiphany-ui.xml.in: * lib/widgets/ephy-node-view.c: (get_selection): * src/bookmarks/ephy-bookmarks-editor.c: (add_widget), (ephy_bookmarks_editor_construct): * src/bookmarks/ephy-bookmarks-menu.c: (add_bookmarks_menu), (ephy_bookmarks_menu_rebuild): * src/ephy-encoding-menu.c: (build_group), (build_encoding), (ephy_encoding_menu_rebuild): * src/ephy-favorites-menu.c: (ephy_favorites_menu_rebuild): * src/ephy-history-window.c: (add_widget), (ephy_history_window_construct): * src/ephy-tabs-menu.c: (ephy_tabs_menu_clean), (ephy_tabs_menu_update): * src/ephy-window.c: (setup_window), (ephy_window_init): Fix problems with EphyNodeView, bookmarks and history dialogs and update dynamic menus to the new xml format.
* Part of gtk 2.3 port, changelog too long to paste itMarco Pesenti Gritti2003-08-301-27/+19
|
* Convert erroneous g_return_if_fail into a simple conditional return.Christian Persch2003-08-241-1/+2
| | | | | | | | 2003-08-24 Christian Persch <chpe@cvs.gnome.org> * lib/widgets/ephy-node-view.c: (ephy_node_view_remove): Convert erroneous g_return_if_fail into a simple conditional return.
* Make it NULL safeMarco Pesenti Gritti2003-08-221-8/+34
| | | | | | | | | | | | | | | | | 2003-08-22 Marco Pesenti Gritti <marco@gnome.org> * lib/widgets/ephy-node-view.c: (compare_string_values), (ephy_node_view_sort_func): * src/bookmarks/ephy-bookmarks-menu.c: (sort_topics), (sort_bookmarks): * src/bookmarks/ephy-topic-action.c: (sort_bookmarks), (sort_topics): Make it NULL safe * src/ephy-toolbars-model.c: (impl_get_item_id): When creating bookmark, if the title is unknown, use untitled.
* Fix function signature, it's void instead of gboolean. Fix a logic error.Christian Persch2003-08-211-5/+3
| | | | | | | | | 2003-08-21 Christian Persch <chpe@cvs.gnome.org> * lib/widgets/ephy-node-view.c: (drag_data_received_cb): Fix function signature, it's void instead of gboolean. Fix a logic error.
* Fix drag dest implementation getting some code from nautilus.Marco Pesenti Gritti2003-08-211-51/+233
| | | | | | | | | | | | | 2003-08-20 Marco Pesenti Gritti <marco@gnome.org> * lib/widgets/ephy-node-view.c: (get_node_from_path), (gtk_tree_view_vertical_autoscroll), (scroll_timeout), (remove_scroll_timeout), (set_drag_dest_row), (clear_drag_dest_row), (get_drag_data), (free_drag_data), (drag_motion_cb), (drag_leave_cb), (drag_data_received_cb), (drag_drop_cb), (ephy_node_view_enable_drag_dest): Fix drag dest implementation getting some code from nautilus.
* Stop signals only when necessary on drag dest custom implementation. MakeMarco Pesenti Gritti2003-08-201-12/+42
| | | | | | | | | | | | | | 2003-08-19 Marco Pesenti Gritti <marco@gnome.org> * lib/widgets/ephy-node-view.c: (drag_motion_cb), (drag_drop_cb), (drag_data_received_cb), (button_event_modifies_selection), (did_not_drag), (button_release_cb), (motion_notify_cb), (ephy_node_view_button_press_cb): Stop signals only when necessary on drag dest custom implementation. Make click on multiple selection deselect all but the clicked element.
* Fix multiple rows dnd problems stealing some Nautilus code.Marco Pesenti Gritti2003-08-111-16/+199
| | | | | | | | | | | | | | 2003-08-11 Marco Pesenti Gritti <marco@it.gnome.org> * lib/widgets/ephy-node-view.c: (ephy_node_view_finalize), (ephy_node_view_enable_drag_dest), (selection_foreach), (get_selection_refs), (ref_list_free), (stop_drag_check), (drag_data_get_cb), (button_release_cb), (motion_notify_cb), (button_event_modifies_selection), (ephy_node_view_button_press_cb), (ephy_node_view_init), (ephy_node_view_enable_drag_source): Fix multiple rows dnd problems stealing some Nautilus code.
* Fix mem leak.Christian Persch2003-08-091-0/+2
| | | | | | | | 2003-08-08 Christian Persch <chp@cvs.gnome.org> * lib/widgets/ephy-node-view.c: (cell_renderer_edited): Fix mem leak.
* 2003-07-27 Marco Pesenti Gritti <marco@it.gnome.org>Marco Pesenti Gritti2003-07-271-33/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * data/ui/epiphany-toolbar.xml.in: * lib/egg/egg-editable-toolbar.c: (drag_data_received_cb): * lib/egg/egg-editable-toolbar.h: * lib/egg/egg-toolbar-editor.c: (parse_item_list): * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_to_xml), (safe_save_xml), (egg_toolbars_model_save), (toolbars_item_new), (free_item_node), (egg_toolbars_model_add_separator), (egg_toolbars_model_add_item), (parse_item_list), (impl_get_item_id), (impl_get_item_name), (impl_get_item_type), (egg_toolbars_model_class_init), (egg_toolbars_model_item_nth), (egg_toolbars_model_toolbar_nth), (egg_toolbars_model_get_item_id), (egg_toolbars_model_get_item_name), (egg_toolbars_model_get_item_type): * lib/egg/egg-toolbars-model.h: * lib/egg/eggtoolbar.c: (egg_toolbar_finalize): * lib/ephy-dnd.c: (add_one_topic), (ephy_dnd_drag_data_get): * lib/ephy-dnd.h: * lib/widgets/ephy-node-view.c: (drag_data_received_cb), (ephy_node_view_select_node_by_key), (ephy_node_view_construct), (ephy_node_view_add_data_column), (ephy_node_view_enable_drag_source): * lib/widgets/ephy-node-view.h: * lib/widgets/ephy-tree-model-sort.c: (ephy_tree_model_sort_class_init), (ephy_tree_model_sort_init), (ephy_tree_model_sort_multi_row_draggable), (ephy_tree_model_sort_set_column_id), (each_property_get_data_binder), (ephy_tree_model_sort_multi_drag_data_get): * lib/widgets/ephy-tree-model-sort.h: * 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), (node_dropped_cb), (provide_keyword_uri), (ephy_bookmarks_editor_construct): * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init_defaults), (ephy_bookmarks_remove_keyword), (ephy_bookmarks_get_topic_uri), (ephy_bookmarks_find_keyword): * src/bookmarks/ephy-bookmarks.h: * src/ephy-history-window.c: (ephy_history_window_construct): * src/ephy-toolbars-model.c: (ephy_toolbars_model_get_action_name), (ephy_toolbars_model_get_node), (bookmark_destroy_cb), (impl_get_item_name), (impl_get_item_id), (impl_get_item_type), (connect_item), (ephy_toolbars_model_set_bookmarks), (ephy_toolbars_model_class_init), (save_changes), (item_added), (item_removed), (toolbar_added), (toolbar_removed), (ephy_toolbars_model_init), (ephy_toolbars_model_finalize), (ephy_toolbars_model_remove_bookmark),
* Fix mem leak.Christian Persch2003-07-271-5/+10
| | | | | | | | | | | | | | 2003-07-27 Christian Persch <chpe@cvs.gnome.org> * lib/widgets/ephy-node-view.c: (ephy_node_view_remove): Fix mem leak. * lib/widgets/ephy-node-view.c: (ephy_node_view_remove): * src/pdm-dialog.c: (pdm_cmd_delete_selection): If we've just deleted every row in the tree view, the row ref contains an empty path. Check for that; possibly fixing bug #118398.
* Yet another try to get context menu and selection beahviors right.Marco Pesenti Gritti2003-07-231-68/+24
| | | | | | | | | | | | | 2003-07-23 Marco Pesenti Gritti <marco@it.gnome.org> * lib/widgets/ephy-node-view.c: (ephy_node_view_selection_changed_cb), (ephy_node_view_button_press_cb), (ephy_node_view_init), (ephy_node_view_get_selection), (ephy_node_view_is_target), (ephy_node_view_has_selection): Yet another try to get context menu and selection beahviors right.
* We use g_list_prepend to create selections now (inXan Lopez2003-07-141-1/+1
| | | | | | | We use g_list_prepend to create selections now (in ephy_node_view_get_selection() and inside pdm_cmd_delete_selection), so the last element selected is the first in the list and we need to use g_list_first instead of _last to make intelligent selection after removal work on multiple selections.
* Don't use event->string, is deprecated (#117346). Also improve intelligentXan Lopez2003-07-141-7/+20
| | | | | | | | | | | | | | | | * lib/widgets/ephy-node-view.c: (ephy_node_view_select_node_by_key), (ephy_node_view_remove): Don't use event->string, is deprecated (#117346). Also improve intelligent selection. * src/pdm-dialog.c: (pdm_dialog_remove_button_clicked_cb), (pdm_cmd_delete_selection), (pdm_key_pressed_cb), (setup_action): Connect del keys to delete action, also implement intelligent selection after deletion (I want to be known as Mr. Intelligent Selection from now, spread the word).
* Fix mem leaks.Christian Persch2003-07-141-0/+3
| | | | | | | | | 2003-07-13 Christian Persch <chpe@cvs.gnome.org> * lib/widgets/ephy-node-view.c: (drag_motion_cb), (drag_data_received_cb): Fix mem leaks.
* A "fast search" implementation for all node views. Pressing any validXan Lopez2003-07-131-3/+66
| | | | | | | A "fast search" implementation for all node views. Pressing any valid unicode character will make ephy select the first entry begining with that key, or the nearest match (with previous or posterior letters). Fixes bug #116744 (http://bugzilla.gnome.org/show_bug.cgi?id=116744).
* Fix mem leaks and a conditional.Christian Persch2003-07-061-2/+4
| | | | | | | | | | | 2003-07-06 Christian Persch <chpe@cvs.gnome.org> * lib/widgets/ephy-node-view.c: (ephy_node_view_button_press_cb), (ephy_node_view_sort_func): * src/bookmarks/ephy-topics-selector.c: (topic_clicked), (topic_key_pressed): Fix mem leaks and a conditional.
* disable treeview interactive searchMarco Pesenti Gritti2003-06-171-0/+2
| | | | | | | | 2003-06-16 Marco Pesenti Gritti <marco@it.gnome.org> * lib/widgets/ephy-node-view.c: (ephy_node_view_init): disable treeview interactive search
* Fix warning.Xan Lopez2003-06-121-1/+2
| | | | Fix warning.
* Use gtk_tree_selection_select_iter to make selection, fixes #114965.Xan Lopez2003-06-121-5/+1
| | | | Use gtk_tree_selection_select_iter to make selection, fixes #114965.
* Remove unused gtk_tree_view_get_selection.Xan Lopez2003-06-121-4/+0
| | | | Remove unused gtk_tree_view_get_selection.
* Try to fix dereferencing type-punned warning.Xan Lopez2003-05-281-1/+1
| | | | Try to fix dereferencing type-punned warning.
* 2003-05-19 Marco Pesenti Gritti <marco@it.gnome.org>Marco Pesenti Gritti2003-05-201-16/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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/+0
|
* Remove add_icon_column func and add the functionality to the normalMarco Pesenti Gritti2003-04-291-24/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-04-29 Marco Pesenti Gritti <marco@it.gnome.org> * lib/widgets/ephy-node-view.c: (ephy_node_view_add_column): * lib/widgets/ephy-node-view.h: Remove add_icon_column func and add the functionality to the normal add_column. The icon will be packed in the same column. * src/bookmarks/ephy-bookmarks-editor.c: (entry_selection_changed_cb), (add_entry_monitor), (add_text_renderer_monitor), (cmd_add_topic), (cmd_rename), (build_search_box), (ephy_bookmarks_editor_construct), (toolbar_items_changed_cb), (ephy_bookmarks_editor_init): Fix for api change. Deal with 2 more sensitivity cases: bookmarks added by dnd to the toolbar and treeview text renderers. Remove hints until we have more columns. * src/ephy-history-window.c: (ephy_history_window_construct): Fix for new api * src/ephy-toolbars-model.c: (impl_add_item): Dont check if normal items are already in the toolbar: fix warnings.
* Fix bookmarks editing and warnings when openining the dialog.Marco Pesenti Gritti2003-04-191-15/+10
| | | | | | | | | | | | | 2003-04-19 Marco Pesenti Gritti <marco@it.gnome.org> * lib/widgets/ephy-node-view.c: (ephy_node_view_add_column), (ephy_node_view_remove), (ephy_node_view_edit): Fix bookmarks editing and warnings when openining the dialog. * lib/widgets/ephy-node-view.h: Remove unused api.
* Do not install two copies of epiphany.pngMarco Pesenti Gritti2003-04-181-45/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-04-18 Marco Pesenti Gritti <marco@it.gnome.org> * data/art/Makefile.am: Do not install two copies of epiphany.png * embed/ephy-history.c: (ephy_history_save), (ephy_history_set_page_title): Use host name as title for sites, not the real title. * lib/ephy-state.c: (ephy_state_add_window), (paned_size_allocate_cb), (ephy_state_add_paned): * lib/ephy-state.h: Add a way to persist paned. * lib/widgets/ephy-node-view.h: * lib/widgets/ephy-node-view.c: (ephy_node_view_sort_func), (provide_text_weight), (ephy_node_view_add_column), (ephy_node_view_has_selection): Improve add_column api a bit to support both auto sorting and user sorting. * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_construct): Updates for changed api. * src/ephy-history-window.c: (ephy_history_window_construct): Set a max size for title/location. Not very good, but the best we can do with current treeview api prolly. Persist the paned size. Make columns user sortable.
* New abstracted implementations. Nicer and will be useful for historyMarco Pesenti Gritti2003-04-171-0/+1099
2003-04-17 Marco Pesenti Gritti <marco@it.gnome.org> * lib/widgets/Makefile.am: * lib/widgets/ephy-node-view.c: * lib/widgets/ephy-node-view.h: * lib/widgets/ephy-tree-model-node.c: * lib/widgets/ephy-tree-model-node.h: New abstracted implementations. Nicer and will be useful for history dialog interface rehash to make it more consistent with bookmarks (this was the hard part of the work). * src/bookmarks/Makefile.am: * src/bookmarks/ephy-bookmarks-editor.c: Use them. * src/history-dialog.c: Temp hack to keep the thing building until I actually rewrite history dialog. 2