1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /** |
---|
3 | * bonobo-selector-widget.h: Bonobo Component Selector |
---|
4 | * |
---|
5 | * Author: |
---|
6 | * Michael Meeks (michael@helixcode.com) |
---|
7 | * |
---|
8 | * Copyright 2000 Helix Code, Inc. |
---|
9 | */ |
---|
10 | #ifndef BONOBO_SELECTOR_WIDGET_H |
---|
11 | #define BONOBO_SELECTOR_WIDGET_H |
---|
12 | |
---|
13 | #include <gtk/gtk.h> |
---|
14 | |
---|
15 | BEGIN_GNOME_DECLS |
---|
16 | |
---|
17 | #define BONOBO_SELECTOR_WIDGET(obj) GTK_CHECK_CAST(obj, bonobo_selector_widget_get_type (), BonoboSelectorWidget) |
---|
18 | #define BONOBO_SELECTOR_WIDGET_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, bonobo_selector_widget_get_type (), BonoboSelectorWidgetClass) |
---|
19 | #define BONOBO_IS_SELECTOR_WIDGET(obj) GTK_CHECK_TYPE (obj, bonobo_selector_widget_get_type ()) |
---|
20 | |
---|
21 | typedef struct _BonoboSelectorWidgetPrivate BonoboSelectorWidgetPrivate; |
---|
22 | |
---|
23 | typedef struct { |
---|
24 | GtkVBox parent; |
---|
25 | |
---|
26 | BonoboSelectorWidgetPrivate *priv; |
---|
27 | } BonoboSelectorWidget; |
---|
28 | |
---|
29 | typedef struct { |
---|
30 | GtkVBoxClass parent_class; |
---|
31 | |
---|
32 | /* Virtual methods */ |
---|
33 | gchar *(* get_id) (BonoboSelectorWidget *sel); |
---|
34 | gchar *(* get_name) (BonoboSelectorWidget *sel); |
---|
35 | gchar *(* get_description) (BonoboSelectorWidget *sel); |
---|
36 | void (* set_interfaces) (BonoboSelectorWidget *sel, |
---|
37 | const gchar **interfaces); |
---|
38 | |
---|
39 | /* User select */ |
---|
40 | void (* final_select) (BonoboSelectorWidget *sel); |
---|
41 | } BonoboSelectorWidgetClass; |
---|
42 | |
---|
43 | GtkType bonobo_selector_widget_get_type (void); |
---|
44 | |
---|
45 | GtkWidget *bonobo_selector_widget_new (void); |
---|
46 | |
---|
47 | void bonobo_selector_widget_set_interfaces (BonoboSelectorWidget *sel, |
---|
48 | const gchar **interfaces_required); |
---|
49 | |
---|
50 | gchar *bonobo_selector_widget_get_id (BonoboSelectorWidget *sel); |
---|
51 | gchar *bonobo_selector_widget_get_name (BonoboSelectorWidget *sel); |
---|
52 | gchar *bonobo_selector_widget_get_description (BonoboSelectorWidget *sel); |
---|
53 | |
---|
54 | |
---|
55 | END_GNOME_DECLS |
---|
56 | |
---|
57 | #endif /* BONOBO_SELECTOR_H */ |
---|
58 | |
---|