libdbusmenu-gtk Reference Manual | ||||
---|---|---|---|---|
Top | Description |
gboolean dbusmenu_menuitem_property_set_image (DbusmenuMenuitem *menuitem
,const gchar *property
,const GdkPixbuf *data
); GdkPixbuf * dbusmenu_menuitem_property_get_image (DbusmenuMenuitem *menuitem
,const gchar *property
);
gboolean dbusmenu_menuitem_property_set_image (DbusmenuMenuitem *menuitem
,const gchar *property
,const GdkPixbuf *data
);
This function takes the pixbuf that is stored in data
and
turns it into a base64 encoded PNG so that it can be placed
onto a standard DbusmenuMenuitem property.
|
The DbusmenuMenuitem to set the property on. |
|
Name of the property to set. |
|
The image to place on the property. |
Returns : |
Whether the function was able to set the property or not. |
GdkPixbuf * dbusmenu_menuitem_property_get_image (DbusmenuMenuitem *menuitem
,const gchar *property
);
This function looks on the menu item for a property by the
name of property
. If one exists it tries to turn it into
a GdkPixbuf. It assumes that the property is a base64 encoded
PNG file like the one created by dbusmenu_menuite_property_set_image.
|
The DbusmenuMenuite to look for the property on |
|
The name of the property to look for. |
Returns : |
A pixbuf or NULL to signal error. |