Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
squeekboard
Commits
d09ca881
Commit
d09ca881
authored
Feb 18, 2011
by
Daiki Ueno
Browse files
Export class definitions to eekboard-keyboard.h
parent
453429f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
eekboard/eekboard-keyboard.c
View file @
d09ca881
...
...
@@ -29,14 +29,6 @@ enum {
static
guint
signals
[
LAST_SIGNAL
]
=
{
0
,
};
struct
_EekboardKeyboard
{
GDBusProxy
parent
;
};
struct
_EekboardKeyboardClass
{
GDBusProxyClass
parent_class
;
};
G_DEFINE_TYPE
(
EekboardKeyboard
,
eekboard_keyboard
,
G_TYPE_DBUS_PROXY
);
static
void
...
...
@@ -102,6 +94,15 @@ eekboard_keyboard_init (EekboardKeyboard *keyboard)
{
}
/**
* eekboard_keyboard_new:
* @path: object path in DBus
* @connection: #GDBusConnection
* @cancellable: #GCancellable
* @error: a pointer of #GError
*
* Create a new #EekboardKeyboard.
*/
EekboardKeyboard
*
eekboard_keyboard_new
(
const
gchar
*
path
,
GDBusConnection
*
connection
,
...
...
@@ -151,7 +152,7 @@ eekboard_keyboard_set_description (EekboardKeyboard *keyboard,
{
GVariant
*
variant
;
variant
=
eek_serializable_serialize
(
description
);
variant
=
eek_serializable_serialize
(
EEK_SERIALIZABLE
(
description
)
)
;
g_dbus_proxy_call
(
G_DBUS_PROXY
(
keyboard
),
"SetDescription"
,
g_variant_new
(
"(v)"
,
variant
),
...
...
eekboard/eekboard-keyboard.h
View file @
d09ca881
...
...
@@ -33,6 +33,15 @@ G_BEGIN_DECLS
typedef
struct
_EekboardKeyboard
EekboardKeyboard
;
typedef
struct
_EekboardKeyboardClass
EekboardKeyboardClass
;
struct
_EekboardKeyboard
{
GDBusProxy
parent
;
};
struct
_EekboardKeyboardClass
{
GDBusProxyClass
parent_class
;
};
GType
eekboard_keyboard_get_type
(
void
)
G_GNUC_CONST
;
EekboardKeyboard
*
eekboard_keyboard_new
(
const
gchar
*
path
,
GDBusConnection
*
connection
,
GCancellable
*
cancellable
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment