File: bonobo-ui-sync-keys.h

package info (click to toggle)
bonobo 1.0.22-2.2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 13,412 kB
  • ctags: 5,445
  • sloc: ansic: 51,714; sh: 7,733; makefile: 1,425; yacc: 318; xml: 266; sed: 16
file content (48 lines) | stat: -rw-r--r-- 1,456 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * bonobo-ui-sync-keys.h: The Bonobo UI/XML sync engine for keys bindings
 *
 * Author:
 *	Michael Meeks (michael@helixcode.com)
 *
 * Copyright 2000 Helix Code, Inc.
 */

#ifndef _BONOBO_UI_SYNC_KEYS_H_
#define _BONOBO_UI_SYNC_KEYS_H_

#include <gtk/gtkstatusbar.h>

#include <bonobo/bonobo-ui-sync.h>

BEGIN_GNOME_DECLS

#define BONOBO_TYPE_UI_SYNC_KEYS            (bonobo_ui_sync_keys_get_type ())
#define BONOBO_UI_SYNC_KEYS(obj)            (GTK_CHECK_CAST ((obj), BONOBO_TYPE_UI_SYNC_KEYS, BonoboUISyncKeys))
#define BONOBO_UI_SYNC_KEYS_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), BONOBO_TYPE_UI_SYNC_KEYS, BonoboUISyncKeysClass))
#define BONOBO_IS_UI_SYNC_KEYS(obj)         (GTK_CHECK_TYPE ((obj), BONOBO_TYPE_UI_SYNC_KEYS))
#define BONOBO_IS_UI_SYNC_KEYS_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), BONOBO_TYPE_UI_SYNC_KEYS))

typedef struct _BonoboUISyncKeysPrivate BonoboUISyncKeysPrivate;

typedef struct {
	BonoboUISync parent;

	GHashTable   *keybindings;

	BonoboUISyncKeysPrivate *priv;
} BonoboUISyncKeys;

typedef struct {
	BonoboUISyncClass parent_class;
} BonoboUISyncKeysClass;

BonoboUISync *bonobo_ui_sync_keys_new            (BonoboUIEngine   *engine);

gint          bonobo_ui_sync_keys_binding_handle (GtkWidget        *widget,
						  GdkEventKey      *event,
						  BonoboUISyncKeys *msync);

END_GNOME_DECLS

#endif /* _BONOBO_UI_SYNC_KEYS_H_ */