libhildondesktop Reference Manual | ||||
---|---|---|---|---|
#include <libhildondesktop/libhildondesktop.h> HDShortcuts; HDShortcuts* hd_shortcuts_new (const gchar *gconf_key, GType shortcut_type); void hd_shortcuts_add_bookmark_shortcut (const gchar *url, const gchar *label, const gchar *icon);
"gconf-key" gchar* : Read / Write / Construct Only "shortcut-type" GType* : Read / Write / Construct Only
Home shortcuts are a special kind of Home applets HDShortcuts can be used to create such shortcuts based on a GConf key.
hd_shortcuts_add_bookmark_shortcut()
can be used to create a bookmark shortcut.
HDShortcuts* hd_shortcuts_new (const gchar *gconf_key, GType shortcut_type);
Creates a HDShortcuts instance which handles the creation of instances
of a subclass shortcut_type
of HDHomePluginItem based on a GConf key gconf_key
.
gconf_key : |
the GConf key where the shortcuts are stored |
shortcut_type : |
the GType of the shortcut instances |
Returns : | a new HDShortcuts instance. |
void hd_shortcuts_add_bookmark_shortcut (const gchar *url, const gchar *label, const gchar *icon);
Creates a new bookmark shortcut with url
, label
and
optional icon
.
icon
should be the path to a 160x96 sized image file in
~/.bookmarks/shortcut-thumbnails.
url : |
the URL of the bookmark |
label : |
the title of the bookmark |
icon : |
the optional icon of the bookmark |