udapted vi.po
[rhythmbox.git] / widgets / rb-search-entry.h
blobe7cccc9365e61a4843b6fe3fa4296cce0d73afca
1 /*
2 * arch-tag: Header for search entry widget
4 * Copyright (C) 2002 Jorn Baayen <jorn@nl.linux.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (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
14 * GNU 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef __RB_SEARCH_ENTRY_H
23 #define __RB_SEARCH_ENTRY_H
25 #include <gtk/gtkhbox.h>
27 G_BEGIN_DECLS
29 #define RB_TYPE_SEARCH_ENTRY (rb_search_entry_get_type ())
30 #define RB_SEARCH_ENTRY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_SEARCH_ENTRY, RBSearchEntry))
31 #define RB_SEARCH_ENTRY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_SEARCH_ENTRY, RBSearchEntryClass))
32 #define RB_IS_SEARCH_ENTRY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_SEARCH_ENTRY))
33 #define RB_IS_SEARCH_ENTRY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_SEARCH_ENTRY))
34 #define RB_SEARCH_ENTRY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_SEARCH_ENTRY, RBSearchEntryClass))
36 typedef struct RBSearchEntryPrivate RBSearchEntryPrivate;
38 typedef struct
40 GtkHBox parent;
42 RBSearchEntryPrivate *priv;
43 } RBSearchEntry;
45 typedef struct
47 GtkHBoxClass parent;
49 void (*search) (RBSearchEntry *view, const char *text);
50 void (*activate) (RBSearchEntry *entry);
51 } RBSearchEntryClass;
53 GType rb_search_entry_get_type (void);
55 RBSearchEntry * rb_search_entry_new (void);
57 void rb_search_entry_clear (RBSearchEntry *entry);
59 void rb_search_entry_set_text (RBSearchEntry *entry, const char *text);
61 gboolean rb_search_entry_searching(RBSearchEntry *entry);
63 void rb_search_entry_grab_focus (RBSearchEntry *entry);
65 G_END_DECLS
67 #endif /* __RB_SEARCH_ENTRY_H */