Updated Spanish translation
[gnome-utils.git] / logview / logview-findbar.h
blob792d065fa227fc4c1662b96bbdab48610f42f6a4
1 /* logview-findbar.h - find toolbar for logview
3 * Copyright (C) 2004 Vincent Noel <vnoel@cox.net>
4 * Copyright (C) 2008 Cosimo Cecchi <cosimoc@gnome.org>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef __LOGVIEW_FINDBAR_H__
22 #define __LOGVIEW_FINDBAR_H__
24 #include <gtk/gtk.h>
25 #include <glib-object.h>
27 G_BEGIN_DECLS
29 #define LOGVIEW_TYPE_FINDBAR \
30 (logview_findbar_get_type ())
31 #define LOGVIEW_FINDBAR(obj) \
32 (G_TYPE_CHECK_INSTANCE_CAST ((obj), LOGVIEW_TYPE_FINDBAR, LogviewFindbar))
33 #define LOGVIEW_FINDBAR_CLASS(klass) \
34 (G_TYPE_CHECK_CLASS_CAST ((klass), LOGVIEW_TYPE_FINDBAR, LogviewFindbarClass))
35 #define LOGVIEW_IS_FINDBAR(obj) \
36 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LOGVIEW_TYPE_FINDBAR))
37 #define LOGVIEW_IS_FINDBAR_CLASS(klass) \
38 (G_TYPE_CHECK_CLASS_TYPE ((obj), LOGVIEW_TYPE_FINDBAR))
39 #define LOGVIEW_FINDBAR_GET_CLASS(obj) \
40 (G_TYPE_INSTANCE_GET_CLASS ((obj), LOGVIEW_TYPE_FINDBAR, LogviewFindbarClass))
42 typedef struct _LogviewFindbar LogviewFindbar;
43 typedef struct _LogviewFindbarClass LogviewFindbarClass;
44 typedef struct _LogviewFindbarPrivate LogviewFindbarPrivate;
46 struct _LogviewFindbar {
47 GtkToolbar parent_instance;
48 LogviewFindbarPrivate *priv;
51 struct _LogviewFindbarClass {
52 GtkToolbarClass parent_class;
54 /* signals */
55 void (* previous) (LogviewFindbar *findbar);
56 void (* next) (LogviewFindbar *findbar);
57 void (* close) (LogviewFindbar *findbar);
58 void (* text_changed) (LogviewFindbar *findbar);
61 GType logview_findbar_get_type (void);
63 /* public methods */
64 GtkWidget * logview_findbar_new (void);
65 void logview_findbar_open (LogviewFindbar *findbar);
66 const char * logview_findbar_get_text (LogviewFindbar *findbar);
67 void logview_findbar_set_message (LogviewFindbar *findbar,
68 const char *message);
70 G_END_DECLS
72 #endif /* __LOGVIEW_FINDBAR_H__ */