HDShortcuts

HDShortcuts — Utils for Home shortcuts.

Synopsis


#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);

Object Hierarchy

  GObject
   +----HDShortcuts

Properties

  "gconf-key"                gchar*                : Read / Write / Construct Only
  "shortcut-type"            GType*                : Read / Write / Construct Only

Description

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.

Details

HDShortcuts

typedef struct _HDShortcuts HDShortcuts;


hd_shortcuts_new ()

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.

hd_shortcuts_add_bookmark_shortcut ()

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

Property Details

The "gconf-key" property

  "gconf-key"                gchar*                : Read / Write / Construct Only

The GConf key containing the list of shortcuts.

Default value: NULL


The "shortcut-type" property

  "shortcut-type"            GType*                : Read / Write / Construct Only

The GType of shortcut widgets.