diff options
author | Ted Gould <ted@gould.cx> | 2010-06-14 16:10:54 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-06-14 16:10:54 -0500 |
commit | b2be41cd5085e821f5557303592c11a064eef104 (patch) | |
tree | 1e8f9e3141e9275916352beab4b2ddb1f854d9cc /libdbusmenu-gtk/client.c | |
parent | 2525166d72f421e045b21910aa7df2523135d1c9 (diff) | |
download | libdbusmenu-b2be41cd5085e821f5557303592c11a064eef104.tar.gz libdbusmenu-b2be41cd5085e821f5557303592c11a064eef104.tar.bz2 libdbusmenu-b2be41cd5085e821f5557303592c11a064eef104.zip |
Add two functions for setting and getting the accelerator group.
Diffstat (limited to 'libdbusmenu-gtk/client.c')
-rw-r--r-- | libdbusmenu-gtk/client.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c index 3bd0af6..64f6a6d 100644 --- a/libdbusmenu-gtk/client.c +++ b/libdbusmenu-gtk/client.c @@ -99,6 +99,40 @@ dbusmenu_gtkclient_finalize (GObject *object) return; } +/** + dbusmenu_gtkclient_set_accel_group: + @client: To set the group on + @agroup: The new acceleration group + + Sets the acceleration group for the menu items with accelerators + on this client. +*/ +void +dbusmenu_gtkclient_set_accel_group (DbusmenuGtkClient * client, GtkAccelGroup * agroup) +{ + g_return_if_fail(DBUSMENU_IS_GTKCLIENT(client)); + g_return_if_fail(GTK_IS_ACCEL_GROUP(agroup)); + + return; +} + +/** + dbusmenu_gtkclient_get_accel_group: + @client: Client to query for an accelerator group + + Gets the accel group for this client. + + Return value: Either a valid group or #NULL on error or + none set. +*/ +GtkAccelGroup * +dbusmenu_gtkclient_get_accel_group (DbusmenuGtkClient * client) +{ + g_return_val_if_fail(DBUSMENU_IS_GTKCLIENT(client), NULL); + + return NULL; +} + /* Internal Functions */ static const gchar * data_menuitem = "dbusmenugtk-data-gtkmenuitem"; |