aboutsummaryrefslogtreecommitdiffstats
path: root/embed/find-dialog.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-06-15 17:35:48 +0800
committerChristian Persch <chpe@src.gnome.org>2003-06-15 17:35:48 +0800
commit94a825c3865eacb771b64dd93ea7b0dff3c9db49 (patch)
tree87b012c17af788ad3aac39769ecc95f665e74095 /embed/find-dialog.h
parent53471bc2f89c2844c7bb81b41575ee253c1f6516 (diff)
downloadgsoc2013-epiphany-94a825c3865eacb771b64dd93ea7b0dff3c9db49.tar
gsoc2013-epiphany-94a825c3865eacb771b64dd93ea7b0dff3c9db49.tar.gz
gsoc2013-epiphany-94a825c3865eacb771b64dd93ea7b0dff3c9db49.tar.bz2
gsoc2013-epiphany-94a825c3865eacb771b64dd93ea7b0dff3c9db49.tar.lz
gsoc2013-epiphany-94a825c3865eacb771b64dd93ea7b0dff3c9db49.tar.xz
gsoc2013-epiphany-94a825c3865eacb771b64dd93ea7b0dff3c9db49.tar.zst
gsoc2013-epiphany-94a825c3865eacb771b64dd93ea7b0dff3c9db49.zip
Make prev/next navigation capability an object property, and sync on embed
2003-06-15 Christian Persch <chpe@cvs.gnome.org> * embed/find-dialog.h: * embed/find-dialog.c: (set_navigation_flags), (ephy_find_dialog_get_property), (find_dialog_class_init), (sync_embed), (find_get_info), (impl_show), (find_dialog_finalize), (find_dialog_go_next), (find_dialog_go_prev), (find_entry_changed_cb), (find_check_toggled_cb), (find_dialog_get_navigation_flags): Make prev/next navigation capability an object property, and sync on embed changes. * embed/find-dialog.c: (find_dialog_new_with_parent): * embed/ephy-embed-dialog.c: (ephy_embed_dialog_class_init), (ephy_embed_dialog_new), (ephy_embed_dialog_new_with_parent), (ephy_embed_dialog_set_embed): * embed/print-dialog.c: (print_dialog_new), (print_dialog_new_with_parent): s/EphyEmbed/embed/ for the object property name. * src/ephy-window.h: * src/ephy-window.c: (sync_find_dialog), (update_find_control), (ephy_window_switch_page_cb), (find_dialog_search_cb), (ephy_window_get_find_dialog): * src/window-commands.c: (window_cmd_edit_find_next), (window_cmd_edit_find_prev): Sync on the find dialog on nav capability and embed changes instead of explicit updating.
Diffstat (limited to 'embed/find-dialog.h')
-rw-r--r--embed/find-dialog.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/embed/find-dialog.h b/embed/find-dialog.h
index 325f8a7b7..c93a78303 100644
--- a/embed/find-dialog.h
+++ b/embed/find-dialog.h
@@ -37,6 +37,12 @@ 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;
@@ -50,23 +56,20 @@ struct FindDialogClass
void (* search) (FindDialog *dialog);
};
-GType find_dialog_get_type (void);
-
-EphyDialog *find_dialog_new (EphyEmbed *embed);
-
-EphyDialog *find_dialog_new_with_parent (GtkWidget *window,
- EphyEmbed *embed);
+GType find_dialog_get_type (void);
+EphyDialog* find_dialog_new (EphyEmbed *embed);
-gboolean find_dialog_can_go_next (FindDialog *dialog);
+EphyDialog * find_dialog_new_with_parent (GtkWidget *window,
+ EphyEmbed *embed);
-gboolean find_dialog_can_go_prev (FindDialog *dialog);
+void find_dialog_go_next (FindDialog *dialog,
+ gboolean interactive);
-void find_dialog_go_next (FindDialog *dialog,
- gboolean interactive);
+void find_dialog_go_prev (FindDialog *dialog,
+ gboolean interactive);
-void find_dialog_go_prev (FindDialog *dialog,
- gboolean interactive);
+FindNavigationFlags find_dialog_get_navigation_flags (FindDialog *dialog);
G_END_DECLS