source: trunk/third/bonobo/bonobo/bonobo-selector.h @ 15509

Revision 15509, 2.0 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15508, which included commits to RCS files with non-trunk default branches.
Line 
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
23BEGIN_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
29typedef struct _BonoboSelectorPrivate BonoboSelectorPrivate;
30
31typedef struct {
32        GnomeDialog dialog;
33
34        BonoboSelectorPrivate *priv;
35} BonoboSelector;
36
37typedef struct {
38        GnomeDialogClass parent_class;
39       
40        void (* ok)     (BonoboSelector *sel);
41        void (* cancel) (BonoboSelector *sel);
42} BonoboSelectorClass;
43
44GtkType    bonobo_selector_get_type        (void);
45
46GtkWidget *bonobo_selector_construct       (BonoboSelector       *sel,
47                                            const gchar          *title,
48                                            BonoboSelectorWidget *selector);
49
50GtkWidget *bonobo_selector_new             (const gchar *title,
51                                            const gchar **interfaces_required);
52
53
54gchar     *bonobo_selector_get_selected_id          (BonoboSelector *sel);
55gchar     *bonobo_selector_get_selected_name        (BonoboSelector *sel);
56gchar     *bonobo_selector_get_selected_description (BonoboSelector *sel);
57
58gchar     *bonobo_selector_select_id       (const gchar *title,
59                                            const gchar **interfaces_required);
60
61END_GNOME_DECLS
62
63#endif /* __BONOBO_SELECTOR_H__ */
64
Note: See TracBrowser for help on using the repository browser.