1 /* Copyright (C) 2004 Red Hat, Inc.
3 This library is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Library General Public License as
5 published by the Free Software Foundation; either version 2 of the
6 License, or (at your option) any later version.
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
13 You should have received a copy of the GNU Library General Public
14 License along with the Gnome Library; see the file COPYING.LIB. If not,
15 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16 Boston, MA 02111-1307, USA.
19 #ifndef __EGG_FIND_BAR_H__
20 #define __EGG_FIND_BAR_H__
22 #include <gtk/gtktoolbar.h>
26 #define EGG_TYPE_FIND_BAR (egg_find_bar_get_type ())
27 #define EGG_FIND_BAR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), EGG_TYPE_FIND_BAR, EggFindBar))
28 #define EGG_FIND_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_FIND_BAR, EggFindBarClass))
29 #define EGG_IS_FIND_BAR(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), EGG_TYPE_FIND_BAR))
30 #define EGG_IS_FIND_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_FIND_BAR))
31 #define EGG_FIND_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_FIND_BAR, EggFindBarClass))
33 typedef struct _EggFindBar EggFindBar;
34 typedef struct _EggFindBarClass EggFindBarClass;
35 typedef struct _EggFindBarPrivate EggFindBarPrivate;
42 EggFindBarPrivate *priv;
45 struct _EggFindBarClass
47 GtkToolbarClass parent_class;
49 void (* next) (EggFindBar *find_bar);
50 void (* previous) (EggFindBar *find_bar);
51 void (* close) (EggFindBar *find_bar);
52 void (* scroll) (EggFindBar *find_bar, GtkScrollType* scroll);
54 /* Padding for future expansion */
55 void (*_gtk_reserved1) (void);
56 void (*_gtk_reserved2) (void);
57 void (*_gtk_reserved3) (void);
58 void (*_gtk_reserved4) (void);
61 GType egg_find_bar_get_type (void) G_GNUC_CONST;
62 GtkWidget *egg_find_bar_new (void);
64 void egg_find_bar_set_search_string (EggFindBar *find_bar,
65 const char *search_string);
66 const char* egg_find_bar_get_search_string (EggFindBar *find_bar);
67 void egg_find_bar_set_case_sensitive (EggFindBar *find_bar,
68 gboolean case_sensitive);
69 gboolean egg_find_bar_get_case_sensitive (EggFindBar *find_bar);
70 void egg_find_bar_get_all_matches_color (EggFindBar *find_bar,
72 void egg_find_bar_get_current_match_color (EggFindBar *find_bar,
74 void egg_find_bar_set_status_text (EggFindBar *find_bar,
79 #endif /* __EGG_FIND_BAR_H__ */