source: globalnotifier.h @ b2ea16b

release-1.10release-1.7release-1.8release-1.9
Last change on this file since b2ea16b was b2ea16b, checked in by David Benjamin <davidben@mit.edu>, 14 years ago
Add a view-changed signal to the notifier and export This really wants to live on owl_view and owl_mainwin, but whatever.
  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[f3a9d4d]1#ifndef __BARNOWL_GLOBAL_NOTIFIER_H__
2#define __BARNOWL_GLOBAL_NOTIFIER_H__
3
4#include <glib-object.h>
5#include "owl.h"
6
7G_BEGIN_DECLS
8
9#define OWL_TYPE_GLOBAL_NOTIFIER owl_global_notifier_get_type()
10
11#define OWL_GLOBAL_NOTIFIER(obj) \
12    (G_TYPE_CHECK_INSTANCE_CAST ((obj), OWL_TYPE_GLOBAL_NOTIFIER, OwlGlobalNotifier))
13
14#define OWL_GLOBAL_NOTIFIER_CLASS(klass) \
15    (G_TYPE_CHECK_CLASS_CAST ((klass), OWL_TYPE_GLOBAL_NOTIFIER, OwlGlobalNotifierClass))
16
17#define OWL_IS_GLOBAL_NOTIFIER(obj) \
18    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), OWL_TYPE_GLOBAL_NOTIFIER))
19
20#define OWL_IS_GLOBAL_NOTIFIER_CLASS(klass) \
21    (G_TYPE_CHECK_CLASS_TYPE ((klass), OWL_TYPE_GLOBAL_NOTIFIER))
22
23#define OWL_GLOBAL_NOTIFIER_GET_CLASS(obj) \
24    (G_TYPE_INSTANCE_GET_CLASS ((obj), OWL_TYPE_GLOBAL_NOTIFIER, OwlGlobalNotifierClass))
25
26typedef struct _OwlGlobalNotifierClass OwlGlobalNotifierClass;
27
28struct _OwlGlobalNotifier {
29    GObject parent;
30    owl_global *g;
31};
32
33struct _OwlGlobalNotifierClass {
34    GObjectClass parent_class;
35};
36
37GType owl_global_notifier_get_type (void);
38
39OwlGlobalNotifier* owl_global_notifier_new(owl_global *g);
40
[b2ea16b]41void owl_global_notifier_emit_view_changed(OwlGlobalNotifier *gn);
42
[f3a9d4d]43G_END_DECLS
44
45#endif /* __BARNOWL_GLOBAL_NOTIFIER_H__ */
Note: See TracBrowser for help on using the repository browser.