2 * This file is part of GtkHotkey.
3 * Copyright Mikkel Kamstrup Erlandsen, March, 2008
5 * GtkHotkey is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * GtkHotkey is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with GtkHotkey. If not, see <http://www.gnu.org/licenses/>.
19 #if !defined (__GTK_HOTKEY_H__) && !defined (GTK_HOTKEY_COMPILATION)
20 #error "Only <gtkhotkey.h> can be included directly."
23 #ifndef __GTK_HOTKEY_ERROR_H__
24 #define __GTK_HOTKEY_ERROR_H__
31 * GTK_HOTKEY_LISTENER_ERROR:
33 * Error domain for #GtkHotkeyListener.
35 #define GTK_HOTKEY_LISTENER_ERROR gtk_hotkey_listener_error_quark()
36 GQuark
gtk_hotkey_listener_error_quark (void);
39 * GTK_HOTKEY_REGISTRY_ERROR:
41 * Error domain for #GtkHotkeyRegistry.
43 #define GTK_HOTKEY_REGISTRY_ERROR gtk_hotkey_registry_error_quark()
44 GQuark
gtk_hotkey_registry_error_quark (void);
47 * GtkHotkeyListenerError:
48 * @GTK_HOTKEY_LISTENER_ERROR_BIND: An error occurred when binding a hotkey with
50 * @GTK_HOTKEY_LISTENER_ERROR_UNBIND: An error occurred when unbinding a hotkey
53 * Error codes for #GError<!-- -->s related to #GtkHotkeyListener<!-- -->s
57 GTK_HOTKEY_LISTENER_ERROR_BIND
,
58 GTK_HOTKEY_LISTENER_ERROR_UNBIND
,
59 } GtkHotkeyListenerError
;
62 * GtkHotkeyRegistryError:
63 * @GTK_HOTKEY_REGISTRY_ERROR_UNKNOWN_APP: The application which is the involved
64 * in the transaction has not registered
66 * @GTK_HOTKEY_REGISTRY_ERROR_UNKNOWN_KEY: The hotkey key-id (the identifier that
67 * identifies the hotkey among those
68 * belonging to an application) is not
70 * @GTK_HOTKEY_REGISTRY_ERROR_MALFORMED_MEDIUM: The medium from which to read
71 * or write is in an unrecoverable
72 * state. For example a file
73 * containing syntax errors
74 * @GTK_HOTKEY_REGISTRY_ERROR_IO: There was some problem with the actual io
75 * operation. Missing file permissions, disk full,
77 * @GTK_HOTKEY_REGISTRY_ERROR_UNKNOWN: Unexpected and uncharacterized error
78 * @GTK_HOTKEY_REGISTRY_ERROR_BAD_SIGNATURE: The hotkey signature is not valid.
79 * See #GtkHotkeyInfo:signature.
80 * @GTK_HOTKEY_REGISTRY_ERROR_MISSING_APP: A #GtkHotkeyInfo is referring an
81 * application via its #GtkHotkeyInfo:app-info
82 * property, but the application can not
85 * Error codes for #GError<!-- -->s related to #GtkHotkeyRegistry<!-- -->s
89 GTK_HOTKEY_REGISTRY_ERROR_UNKNOWN_APP
,
90 GTK_HOTKEY_REGISTRY_ERROR_UNKNOWN_KEY
,
91 GTK_HOTKEY_REGISTRY_ERROR_MALFORMED_MEDIUM
,
92 GTK_HOTKEY_REGISTRY_ERROR_IO
,
93 GTK_HOTKEY_REGISTRY_ERROR_UNKNOWN
,
94 GTK_HOTKEY_REGISTRY_ERROR_BAD_SIGNATURE
,
95 GTK_HOTKEY_REGISTRY_ERROR_MISSING_APP
,
96 } GtkHotkeyRegistryError
;
100 #endif /* __GTK_HOTKEY_ERROR_H__ */