From 370874c6ca4c695eeba57ec7f7d059830287e637 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 20 Jul 2003 11:05:16 +0000 Subject: Rework find implementation to integrate better with type ahead and to 2003-07-20 Marco Pesenti Gritti * embed/ephy-embed.c: (ephy_embed_find_set_properties), (ephy_embed_find_next): * embed/ephy-embed.h: * embed/find-dialog.c: (update_navigation_controls), (impl_show), (find_dialog_class_init), (set_properties), (sync_page_change), (sync_embed), (find_dialog_init), (find_dialog_finalize), (find_dialog_go_next), (find_dialog_go_prev), (find_close_button_clicked_cb), (find_next_button_clicked_cb), (find_prev_button_clicked_cb), (find_entry_changed_cb), (find_check_toggled_cb): * embed/find-dialog.h: * embed/mozilla/EphyWrapper.cpp: * embed/mozilla/EphyWrapper.h: * embed/mozilla/Makefile.am: * embed/mozilla/mozilla-embed.cpp: * lib/ephy-dialog.h: * src/ephy-window.c: (ephy_window_find): * src/ephy-window.h: * src/window-commands.c: (window_cmd_edit_find), (window_cmd_edit_find_next), (window_cmd_edit_find_prev): Rework find implementation to integrate better with type ahead and to simplify the code. Do not try to set menus sensitivity because mozilla doesnt provide an api for it and it breaks with type ahead. * lib/ephy-dialog.c: (ephy_dialog_class_init), (ephy_dialog_finalize), (dialog_destroy_cb), (impl_construct), (ephy_dialog_construct): Remove no more used destruct crap. --- embed/find-dialog.h | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'embed/find-dialog.h') diff --git a/embed/find-dialog.h b/embed/find-dialog.h index c93a78303..b4c106f92 100644 --- a/embed/find-dialog.h +++ b/embed/find-dialog.h @@ -21,9 +21,6 @@ #include "ephy-embed-dialog.h" -#include -#include - G_BEGIN_DECLS typedef struct FindDialog FindDialog; @@ -37,12 +34,6 @@ typedef struct FindDialogClass FindDialogClass; typedef struct FindDialogPrivate FindDialogPrivate; -typedef enum -{ - FIND_CAN_GO_PREV = 1 << 0, - FIND_CAN_GO_NEXT = 1 << 1 -} FindNavigationFlags; - struct FindDialog { EphyEmbedDialog parent; @@ -52,8 +43,6 @@ struct FindDialog struct FindDialogClass { EphyEmbedDialogClass parent_class; - - void (* search) (FindDialog *dialog); }; GType find_dialog_get_type (void); @@ -63,14 +52,6 @@ EphyDialog* find_dialog_new (EphyEmbed *embed); EphyDialog * find_dialog_new_with_parent (GtkWidget *window, EphyEmbed *embed); -void find_dialog_go_next (FindDialog *dialog, - gboolean interactive); - -void find_dialog_go_prev (FindDialog *dialog, - gboolean interactive); - -FindNavigationFlags find_dialog_get_navigation_flags (FindDialog *dialog); - G_END_DECLS #endif -- cgit v1.2.3