client.h   client.h 
skipping to change at line 113 skipping to change at line 113
object set of #DbusmenuMenuitem objects. object set of #DbusmenuMenuitem objects.
*/ */
typedef struct _DbusmenuClient DbusmenuClient; typedef struct _DbusmenuClient DbusmenuClient;
struct _DbusmenuClient { struct _DbusmenuClient {
GObject parent; GObject parent;
/*< Private >*/ /*< Private >*/
DbusmenuClientPrivate * priv; DbusmenuClientPrivate * priv;
}; };
typedef gboolean (*DbusmenuClientTypeHandler) (DbusmenuMenuitem * newitem, /**
DbusmenuMenuitem * parent, DbusmenuClient * client); DbusmenuClientTypeHandler:
@newitem: The #DbusmenuMenuitem that was created
@parent: The parent of @newitem or #NULL if none
@client: A pointer to the #DbusmenuClient
@user_data: The data you gave us
The type handler is called when a dbusmenu item is created
with a matching type as setup in #dbusmenu_client_add_type_handler
*/
typedef gboolean (*DbusmenuClientTypeHandler) (DbusmenuMenuitem * newitem,
DbusmenuMenuitem * parent, DbusmenuClient * client, gpointer user_data);
/**
DbusmenuClientTypeDestroyHandler:
@client: A pointer to the #DbusmenuClient
@type: The type that this handler was registered with
@user_data: The data you gave us
This handler is called when the type becomes unregistered by the
client. This is usally caused by the #DbusmenuClient being destroye
d
and should free memory or unref objects in @user_data.
*/
typedef void (*DbusmenuClientTypeDestroyHandler) (DbusmenuClient * client,
const gchar * type, gpointer user_data);
GType dbusmenu_client_get_type (void); GType dbusmenu_client_get_type (void);
DbusmenuClient * dbusmenu_client_new (const gchar * name, DbusmenuClient * dbusmenu_client_new (const gchar * name,
const gchar * objec t); const gchar * objec t);
DbusmenuMenuitem * dbusmenu_client_get_root (DbusmenuClient * cl ient); DbusmenuMenuitem * dbusmenu_client_get_root (DbusmenuClient * cl ient);
gboolean dbusmenu_client_add_type_handler (DbusmenuClient * cl ient, gboolean dbusmenu_client_add_type_handler (DbusmenuClient * cl ient,
const gchar * type, const gchar * type,
DbusmenuClientTypeH andler newfunc); DbusmenuClientTypeH andler newfunc);
gboolean dbusmenu_client_add_type_handler_full (DbusmenuClient
* client,
const gchar * type,
DbusmenuClientTypeH
andler newfunc,
gpointer user_data,
DbusmenuClientTypeD
estroyHandler destory_func);
void dbusmenu_client_send_event (DbusmenuClient * cl ient, void dbusmenu_client_send_event (DbusmenuClient * cl ient,
gint id, gint id,
const gchar * name, const gchar * name,
GVariant * variant, GVariant * variant,
guint timestamp); guint timestamp);
void dbusmenu_client_send_about_to_show(DbusmenuClient * cl ient, void dbusmenu_client_send_about_to_show(DbusmenuClient * cl ient,
gint id, gint id,
void (*cb) (gpointe r user_data), void (*cb) (gpointe r user_data),
gpointer cb_data); gpointer cb_data);
 End of changes. 2 change blocks. 
2 lines changed or deleted 34 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/