aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-find-toolbar.c
Commit message (Collapse)AuthorAgeFilesLines
* Display the find bar for "Find Next" and "Find Previous" if it wasn'tWouter Bolsterlee2006-05-111-3/+10
| | | | | | | | | | | | 2006-05-11 Wouter Bolsterlee <uws+gnome@xs4all.nl> * src/ephy-find-toolbar.c: (ephy_find_toolbar_find_next), (ephy_find_toolbar_find_previous), (ephy_find_toolbar_open): Display the find bar for "Find Next" and "Find Previous" if it wasn't visible already. Entry focus is handlded with care so that use cases like incremental search work as expected. Fixes bug #333020.
* Remove HAVE_TYPEAHEADFIND ifdefs, since we now always have that. Fixes theChristian Persch2006-05-111-10/+0
| | | | | | | | | | 2006-05-11 Christian Persch <chpe@cvs.gnome.org> * src/ephy-find-toolbar.c: (entry_changed_cb), (ephy_find_toolbar_set_embed): Remove HAVE_TYPEAHEADFIND ifdefs, since we now always have that. Fixes the find bar after the drop of gecko 1.7/non-toolkit.
* Don't set find next/prev insensitive since that's redundant with theChristian Persch2006-04-111-32/+2
| | | | | | | | | 2006-04-10 Christian Persch <chpe@cvs.gnome.org> * src/ephy-find-toolbar.c: Don't set find next/prev insensitive since that's redundant with the status indication, and breaks find while the document is loading.
* Release the finder on dispose not finalize.Christian Persch2006-01-301-3/+4
| | | | | | | | | 2006-01-30 Christian Persch <chpe@cvs.gnome.org> * src/ephy-find-toolbar.c: (ephy_find_toolbar_dispose), (ephy_find_toolbar_class_init): Release the finder on dispose not finalize.
* Change toolbar label if searching for links or text.Peter Anthony Harvey2006-01-101-6/+6
| | | | Removed some GtkLabels that were created but never used.
* Fix warning when Ctrl-F while the find toolbar is already shown. FixChristian Persch2006-01-041-15/+4
| | | | | | | | | | | | | | | | 2006-01-04 Christian Persch <chpe@cvs.gnome.org> * src/ephy-find-toolbar.c: (entry_changed_cb), (set_focus_cb), (ephy_find_toolbar_grab_focus), (ephy_find_toolbar_find_next), (ephy_find_toolbar_find_previous), (ephy_find_toolbar_open), (ephy_find_toolbar_close): Fix warning when Ctrl-F while the find toolbar is already shown. Fix next/prev button sensitivity when find wrapped around. * src/ephy-window.c: Add more XF86XK key codes.
* Minor code cleanup.Christian Persch2005-12-081-2/+4
| | | | | | | | | | | | | | | | | 2005-12-07 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyFind.cpp: Minor code cleanup. * src/ephy-find-toolbar.c: (entry_key_press_event_cb), (ephy_find_toolbar_close): Also check for GDK_ISO_Enter. * src/ephy-window.c: (sync_tab_address): Close the find toolbar when loading a new page.
* Forward up/down/page up/page down from the findbar entry to the embed.Crispin Flowerday2005-12-071-3/+28
| | | | | | | | | | | | | | | 2005-12-06 Crispin Flowerday <gnome@flowerday.cx> * embed/ephy-embed.c: (ephy_embed_scroll), (ephy_embed_page_scroll): * embed/ephy-embed.h: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/mozilla-embed.cpp: * src/ephy-find-toolbar.c: (entry_key_press_event_cb): Forward up/down/page up/page down from the findbar entry to the embed.
* Fix a compile warning, and don't bother requesting a close if the find barCrispin Flowerday2005-12-061-1/+6
| | | | | | | | | | 2005-12-05 Crispin Flowerday <gnome@flowerday.cx> * src/ephy-find-toolbar.c: (entry_changed_cb), (ephy_find_toolbar_request_close): Fix a compile warning, and don't bother requesting a close if the find bar is already closed
* While in find mode, set the selection colour to "attention".Christian Persch2005-12-051-156/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-12-04 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-find.c: (ephy_embed_find_set_selection): * embed/ephy-embed-find.h: * embed/mozilla/EphyFind.cpp: * embed/mozilla/EphyFind.h: * embed/mozilla/mozilla-embed-find.cpp: While in find mode, set the selection colour to "attention". * src/ephy-find-toolbar.c: (set_status), (clear_status), (tab_search_key_press_cb), (entry_key_press_event_cb), (entry_activate_cb), (set_focus_cb), (ephy_find_toolbar_set_window), (ephy_find_toolbar_init), (ephy_find_toolbar_class_init), (ephy_find_toolbar_set_embed), (ephy_find_toolbar_open), (ephy_find_toolbar_close), (ephy_find_toolbar_request_close): * src/ephy-find-toolbar.h: * src/ephy-window.c: (sync_tab_document_type), (find_toolbar_close_cb), (ephy_window_set_print_preview), (ephy_window_get_find_toolbar), (ephy_window_get_context_event): Refactor find toolbar closing not to crash with auto-closing popups. Unset the selection colour on close. Remove dead #ifdef FIND_WHILE_TYPING_IN_EMBED code.
* More static strings.Christian Persch2005-11-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-08 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-single.c: (ephy_embed_single_iface_init): * lib/egg/eggstatusicon.c: (egg_status_icon_class_init): * lib/egg/eggtrayicon.c: (egg_tray_icon_class_init): * lib/widgets/ephy-location-entry.c: (ephy_location_entry_class_init): * src/bookmarks/ephy-bookmark-action.c: (ephy_bookmark_action_class_init): * src/bookmarks/ephy-topic-action.c: (ephy_topic_action_class_init): * src/ephy-find-toolbar.c: (ephy_find_toolbar_class_init): * src/ephy-fullscreen-popup.c: (ephy_fullscreen_popup_class_init): * src/ephy-location-action.c: (ephy_location_action_class_init): * src/ephy-python-extension.c: (ephy_python_extension_class_init): * src/ephy-session.c: (ephy_session_class_init): * src/ephy-tab.c: (ephy_tab_class_init): * src/ephy-toolbar-editor.c: (ephy_toolbar_editor_class_init): * src/ephy-toolbar.c: (ephy_toolbar_class_init): * src/ppview-toolbar.c: (ppview_toolbar_class_init): More static strings.
* More detailed result code from find backend.Christian Persch2005-11-031-13/+77
| | | | | | | | | | | | | | | | | | | | 2005-11-03 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-find.c: * embed/ephy-embed-find.h: * embed/mozilla/EphyFind.cpp: * embed/mozilla/EphyFind.h: * embed/mozilla/mozilla-embed-find.cpp: More detailed result code from find backend. * src/ephy-find-toolbar.c: (set_status), (clear_status), (entry_changed_cb), (ephy_find_toolbar_init), (ephy_find_toolbar_find_next), (ephy_find_toolbar_find_previous), (ephy_find_toolbar_open): Add status text to the find toolbar. Reverse Next/Previous button order.
* Reset the IM context before activating the entry.Christian Persch2005-10-011-1/+2
| | | | | | | | | | | | | 2005-10-01 Christian Persch <chpe@cvs.gnome.org> * lib/widgets/ephy-location-entry.c: (entry_key_press_cb): Reset the IM context before activating the entry. * lib/widgets/ephy-node-view.c: (ephy_node_view_key_press_cb): * src/ephy-find-toolbar.c: (tab_search_key_press_cb): Add GDK_ISO_Enter to recognised keyvals.
* Don't empty find entry on Ctrl-F.Christian Persch2005-08-211-1/+1
| | | | | | | | 2005-08-21 Christian Persch <chpe@cvs.gnome.org> * src/ephy-find-toolbar.c: (ephy_find_toolbar_open): Don't empty find entry on Ctrl-F.
* Only activate link in typeahead mode, not in Ctrl-F find mode.Christian Persch2005-08-161-2/+19
| | | | | | | | | 2005-08-16 Christian Persch <chpe@cvs.gnome.org> * src/ephy-find-toolbar.c: (entry_activate_cb), (ephy_find_toolbar_open): Only activate link in typeahead mode, not in Ctrl-F find mode.
* Return TRUE if the event was consumed.Christian Persch2005-08-161-0/+4
| | | | | | | | | | | | 2005-08-16 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyFind.cpp: Return TRUE if the event was consumed. * embed/mozilla/mozilla-embed-single.cpp: More redundant code.
* Activate the found link with a faked keypress event.Christian Persch2005-08-161-10/+28
| | | | | | | | | | | | | | | | | | | | | | | 2005-08-16 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-find.c: (ephy_embed_find_activate_link): * embed/ephy-embed-find.h: * embed/mozilla/EphyFind.cpp: * embed/mozilla/EphyFind.h: * embed/mozilla/mozilla-embed-find.cpp: Activate the found link with a faked keypress event. * src/ephy-find-toolbar.c: (tab_search_key_press_cb), (entry_key_press_event_cb), (entry_activate_cb), (ephy_find_toolbar_set_embed), (ephy_find_toolbar_open), (ephy_find_toolbar_close): On enter, activate the found link instead of finding the next occurrence. Always really give focus to the find bar, instead of faking keypresses in the find bar entry while focusing the embed. Fixes bug #307216, bug #311985, bug #312419.
* When opening the find bar with Ctrl+F, search for the item, and select theCrispin Flowerday2005-08-101-0/+10
| | | | | | | | | 2005-08-09 Crispin Flowerday <gnome@flowerday.cx> * src/ephy-find-toolbar.c (ephy_find_toolbar_open): When opening the find bar with Ctrl+F, search for the item, and select the text.
* Replace ephy_embed_activate with gtk_widget_grab_focusCrispin Flowerday2005-07-301-3/+3
| | | | | | | | | | | | | | | | 2005-07-29 Crispin Flowerday <gnome@flowerday.cx> * src/ephy-find-toolbar.c: (ephy_find_toolbar_grab_focus), (ephy_find_toolbar_open), (ephy_find_toolbar_close): * src/ephy-shell.c: (ephy_shell_new_tab_full): * src/ephy-tab.c: (ephy_tab_grab_focus): * src/ephy-window.c: (ephy_window_key_press_event), (ephy_window_open_link): * src/window-commands.c: (window_cmd_go_back), (window_cmd_go_up), (window_cmd_go_forward), (window_cmd_view_stop), (window_cmd_view_reload): Replace ephy_embed_activate with gtk_widget_grab_focus
* If the string includes uppercase letters, search case-sensitively.Christian Persch2005-07-101-3/+11
| | | | | | | | 2005-07-09 Christian Persch <chpe@cvs.gnome.org> * src/ephy-find-toolbar.c: (entry_changed_cb): If the string includes uppercase letters, search case-sensitively.
* Don't focus the embed on close on !typeaheadfind, since it's a crash.Christian Persch2005-07-091-1/+6
| | | | | | | | | 2005-07-09 Christian Persch <chpe@cvs.gnome.org> * src/ephy-find-toolbar.c: (ephy_find_toolbar_close): Don't focus the embed on close on !typeaheadfind, since it's a crash. Fixes bug #307675.
* Close find bar on mouse click in the embed.Christian Persch2005-06-051-0/+18
| | | | | | | | | 2005-06-04 Christian Persch <chpe@cvs.gnome.org> * src/ephy-find-toolbar.c: (tab_dom_mouse_click_cb), (ephy_find_toolbar_set_embed): Close find bar on mouse click in the embed.
* Don't open search toolbar on / or ' over formfields:Christian Persch2005-06-031-27/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-06-03 Christian Persch <chpe@cvs.gnome.org> Don't open search toolbar on / or ' over formfields: * embed/ephy-embed.c: (ephy_embed_base_init): * embed/ephy-embed.h: New signal for searchable key presses. * embed/mozilla/EventContext.cpp: * embed/mozilla/EventContext.h: Add static function to check if a keypress should be forwarded to the search toolbar. * embed/mozilla/mozilla-embed.cpp: Emit the signal here. * lib/ephy-marshal.list: * src/ephy-find-toolbar.c: (tab_search_key_press_cb), (ephy_find_toolbar_set_embed): Use the new signal instead of dom-key-press.
* Don't erase the search term when opening the find bar with Ctrl-F.Christian Persch2005-05-301-4/+8
| | | | | | | | | | | 2005-05-30 Christian Persch <chpe@cvs.gnome.org> * src/ephy-find-toolbar.c: (tab_dom_key_press_cb), (ephy_find_toolbar_open): * src/ephy-find-toolbar.h: * src/ephy-window.c: (ephy_window_find): Don't erase the search term when opening the find bar with Ctrl-F.
* Don't special-case ' and / if the find bar is already active.Christian Persch2005-05-301-10/+13
| | | | | | | | 2005-05-29 Christian Persch <chpe@cvs.gnome.org> * src/ephy-find-toolbar.c: (tab_dom_key_press_cb): Don't special-case ' and / if the find bar is already active.
* Deactivate typeaheadfind in print preview mode.Christian Persch2005-05-301-6/+75
| | | | | | | | | | | | | | | | | 2005-05-29 Christian Persch <chpe@cvs.gnome.org> * src/ephy-find-toolbar.c: (tab_dom_key_press_cb), (entry_activate_cb), (sync_print_preview_mode), (ephy_find_toolbar_set_window), (ephy_find_toolbar_get_property), (ephy_find_toolbar_set_property), (ephy_find_toolbar_class_init), (ephy_find_toolbar_new): * src/ephy-find-toolbar.h: * src/ephy-window.c: (ephy_window_init), (ephy_window_set_print_preview), (ephy_window_get_is_popup), (ephy_window_get_is_print_preview): * src/ephy-window.h: Deactivate typeaheadfind in print preview mode.
* Only enable typeahead if we actually can do typeaheadfind.Christian Persch2005-05-291-0/+8
| | | | | | | | | 2005-05-29 Christian Persch <chpe@cvs.gnome.org> * src/ephy-find-toolbar.c: (ephy_find_toolbar_set_embed), (ephy_find_toolbar_open): Only enable typeahead if we actually can do typeaheadfind.
* Disable mozilla's typeaheadfind.Christian Persch2005-05-291-38/+182
| | | | | | | | | | | | | | | | | | | | | | | | 2005-05-29 Christian Persch <chpe@cvs.gnome.org> * data/default-prefs-common.js: * data/default-prefs-toolkit.js: Disable mozilla's typeaheadfind. * src/ephy-find-toolbar.c: (get_find), (send_focus_change), (tab_dom_key_press_cb), (entry_changed_cb), (entry_preedit_changed_cb), (entry_key_press_event_cb), (entry_activate_cb), (set_focus_cb), (ephy_find_toolbar_grab_focus), (ephy_find_toolbar_init), (ephy_find_toolbar_class_init), (ephy_find_toolbar_set_embed), (ephy_find_toolbar_find_previous), (ephy_find_toolbar_open), (ephy_find_toolbar_close): * src/ephy-find-toolbar.h: * src/ephy-window.c: (sync_tab_document_type), (ephy_window_init), (ephy_window_set_print_preview), (ephy_window_find): Forward key events from the embed to the find toolbar. That way we can typeaheadfind without losing focus.
* Check for toolkit nsITypeAheadFind.Christian Persch2005-05-291-50/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-05-28 Christian Persch <chpe@cvs.gnome.org> * configure.ac: Check for toolkit nsITypeAheadFind. * embed/Makefile.am: * embed/ephy-embed-factory.c: (ephy_embed_factory_new_object): * embed/ephy-embed-find.c: (ephy_embed_find_set_embed), (ephy_embed_find_set_properties), (ephy_embed_find_find), (ephy_embed_find_find_again), (ephy_embed_find_get_type): * embed/ephy-embed-find.h: * embed/ephy-embed.c: * embed/ephy-embed.h: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/EphyFind.cpp: * embed/mozilla/EphyFind.h: * embed/mozilla/Makefile.am: * embed/mozilla/mozilla-embed-find.cpp: * embed/mozilla/mozilla-embed-find.h: * embed/mozilla/mozilla-embed.cpp: * src/bookmarks/ephy-bookmarks-import.c: (gul_general_read_line_from_file): * src/ephy-find-toolbar.c: (get_find), (set_controls), (tab_content_changed_cb), (entry_changed_cb), (ephy_find_toolbar_init), (ephy_find_toolbar_finalize), (ephy_find_toolbar_class_init), (ephy_find_toolbar_new), (ephy_find_toolbar_get_text), (ephy_find_toolbar_set_embed), (ephy_find_toolbar_find_next), (ephy_find_toolbar_find_previous): * src/ephy-find-toolbar.h: * src/ephy-window.c: (ephy_window_set_active_tab), (ephy_window_init), (ephy_window_get_find_toolbar), (ephy_window_notebook_switch_page_cb): * src/ephy-window.h: * src/window-commands.c: (window_cmd_edit_find_next), (window_cmd_edit_find_prev): Implement typeaheadfind for the find toolbar.
* A src/ephy-find-toolbar.c: A src/ephy-find-toolbar.h:Christian Persch2005-05-261-0/+386
2005-05-25 Christian Persch <chpe@cvs.gnome.org> * embed/Makefile.am: * embed/find-dialog.c: * embed/find-dialog.h: A src/ephy-find-toolbar.c: A src/ephy-find-toolbar.h: * src/ephy-window.c: (sync_tab_document_type), (tab_content_changed_cb), (ephy_window_set_active_tab), (ephy_window_dispose), (sync_find_toolbar_text_cb), (find_toolbar_find_next_cb), (find_toolbar_find_previous_cb), (find_toolbar_close_cb), (ephy_window_init), (ephy_window_notebook_switch_page_cb), (ephy_window_find): Replace the find dialogue with a find toolbar. Work in progress; no typeaheadfind yet.