diff options
author | Ted Gould <ted@canonical.com> | 2009-08-27 09:42:59 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-08-27 09:42:59 -0500 |
commit | 01b023c84f8762d501716d15b3aceec047466627 (patch) | |
tree | eb3c3c8d427f1d8d804046290c58d7f79d410566 /libdbusmenu-glib/menuitem.c | |
parent | f5c8526e3bb73345242ea37c337562182351020b (diff) | |
parent | 9e5b9b3ce66ff01c8395ea28bc227bb34cb50f8e (diff) | |
download | libdbusmenu-01b023c84f8762d501716d15b3aceec047466627.tar.gz libdbusmenu-01b023c84f8762d501716d15b3aceec047466627.tar.bz2 libdbusmenu-01b023c84f8762d501716d15b3aceec047466627.zip |
Merging in the branch to add a simple type system to dbusmenu and use it to make a better GTK library, including showing and hiding items.
Diffstat (limited to 'libdbusmenu-glib/menuitem.c')
-rw-r--r-- | libdbusmenu-glib/menuitem.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c index aba1f64..41c48e2 100644 --- a/libdbusmenu-glib/menuitem.c +++ b/libdbusmenu-glib/menuitem.c @@ -61,6 +61,7 @@ enum { CHILD_ADDED, CHILD_REMOVED, CHILD_MOVED, + REALIZED, LAST_SIGNAL }; @@ -178,6 +179,22 @@ dbusmenu_menuitem_class_init (DbusmenuMenuitemClass *klass) NULL, NULL, _dbusmenu_menuitem_marshal_VOID__OBJECT_UINT_UINT, G_TYPE_NONE, 3, G_TYPE_OBJECT, G_TYPE_UINT, G_TYPE_UINT); + /** + DbusmenuMenuitem::realized: + @arg0: The #DbusmenuMenuitem object. + + Emitted when the initial request for properties + is complete on the item. If there is a type + handler configured for the "type" parameter + that will be executed before this is signaled. + */ + signals[REALIZED] = g_signal_new(DBUSMENU_MENUITEM_SIGNAL_REALIZED, + G_TYPE_FROM_CLASS(klass), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(DbusmenuMenuitemClass, realized), + NULL, NULL, + _dbusmenu_menuitem_marshal_VOID__VOID, + G_TYPE_NONE, 0, G_TYPE_NONE); g_object_class_install_property (object_class, PROP_ID, g_param_spec_uint("id", "ID for the menu item", |