1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /** |
---|
3 | * bonobo-selector.h: Bonobo Component Selector |
---|
4 | * |
---|
5 | * Authors: |
---|
6 | * Richard Hestilow (hestgray@ionet.net) |
---|
7 | * Miguel de Icaza (miguel@kernel.org) |
---|
8 | * Martin Baulig (martin@ |
---|
9 | * Anders Carlsson (andersca@gnu.org) |
---|
10 | * Havoc Pennington (hp@redhat.com) |
---|
11 | * Dietmar Maurer (dietmar@maurer-it.com) |
---|
12 | * |
---|
13 | * Copyright 1999, 2000 Richard Hestilow, Helix Code, Inc, |
---|
14 | * Martin Baulig, Anders Carlsson, |
---|
15 | * Havoc Pennigton, Dietmar Maurer |
---|
16 | */ |
---|
17 | #ifndef __BONOBO_SELECTOR_H__ |
---|
18 | #define __BONOBO_SELECTOR_H__ |
---|
19 | |
---|
20 | #include <libgnomeui/gnome-dialog.h> |
---|
21 | #include <bonobo/bonobo-selector-widget.h> |
---|
22 | |
---|
23 | BEGIN_GNOME_DECLS |
---|
24 | |
---|
25 | #define BONOBO_SELECTOR(obj) GTK_CHECK_CAST(obj, bonobo_selector_get_type (), BonoboSelector) |
---|
26 | #define BONOBO_SELECTOR_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, bonobo_selector_get_type (), BonoboSelectorClass) |
---|
27 | #define BONOBO_IS_SELECTOR(obj) GTK_CHECK_TYPE (obj, bonobo_selector_get_type ()) |
---|
28 | |
---|
29 | typedef struct _BonoboSelectorPrivate BonoboSelectorPrivate; |
---|
30 | |
---|
31 | typedef struct { |
---|
32 | GnomeDialog dialog; |
---|
33 | |
---|
34 | BonoboSelectorPrivate *priv; |
---|
35 | } BonoboSelector; |
---|
36 | |
---|
37 | typedef struct { |
---|
38 | GnomeDialogClass parent_class; |
---|
39 | |
---|
40 | void (* ok) (BonoboSelector *sel); |
---|
41 | void (* cancel) (BonoboSelector *sel); |
---|
42 | } BonoboSelectorClass; |
---|
43 | |
---|
44 | GtkType bonobo_selector_get_type (void); |
---|
45 | |
---|
46 | GtkWidget *bonobo_selector_construct (BonoboSelector *sel, |
---|
47 | const gchar *title, |
---|
48 | BonoboSelectorWidget *selector); |
---|
49 | |
---|
50 | GtkWidget *bonobo_selector_new (const gchar *title, |
---|
51 | const gchar **interfaces_required); |
---|
52 | |
---|
53 | |
---|
54 | gchar *bonobo_selector_get_selected_id (BonoboSelector *sel); |
---|
55 | gchar *bonobo_selector_get_selected_name (BonoboSelector *sel); |
---|
56 | gchar *bonobo_selector_get_selected_description (BonoboSelector *sel); |
---|
57 | |
---|
58 | gchar *bonobo_selector_select_id (const gchar *title, |
---|
59 | const gchar **interfaces_required); |
---|
60 | |
---|
61 | END_GNOME_DECLS |
---|
62 | |
---|
63 | #endif /* __BONOBO_SELECTOR_H__ */ |
---|
64 | |
---|