[maemo-developers] HDShortcuts

From: Timo Pelkonen peltsip at gmail.com
Date: Fri Apr 16 14:38:32 EEST 2010
Works perfectly, thanks a lot!

Ossipena / TimoP

2010/4/16 Timo Pelkonen <peltsip at gmail.com>

> Thanks for the info!
>
> I'll test that soon.
>
>
> Ossipena / TimoP
>
> 2010/4/16 Faheem Pervez <trippin1 at gmail.com>
>
> Hello,
>>
>> On Fri, Apr 16, 2010 at 11:05 AM, Timo Pelkonen <peltsip at gmail.com>
>> wrote:
>> > Now I've tried setting string (whatever it really is, luckily don't have
>> to
>> > stress so much with those when using python :) ) 'icon' to:
>> >
>> > a) full path to png file (/home/user/.bookmarks.....)
>> > b) path that exists (~/.bookmarks/home-thumbnails/...)
>> > c) created the path documented and copied the same file there
>> > (~/.bookmarks/shortcut-thumbnails/...)
>> > d) plain file name (file lies in root of
>> ~/.bookmarks/shortcut-thumbnails/)
>> >
>> >
>> > So now I need to know what I am doing wrong.
>>
>> hd_shortcuts_add_bookmark_shortcut () copies the icon from another
>> place to ~/.bookmarks/home-thumbnails. I created a 160x96 PNG called
>> "asd.png" and saved it in "/" (copying to the 32GB ATM...).
>>
>> I then ran the following:
>>
>> import gobject #AFAIK, GType is inited. when importing gobject. AFAIK,
>> anyway.
>> import ctypes
>>
>> hd = ctypes.CDLL("libhildondesktop-1.so.0")
>> hd.hd_shortcuts_add_bookmark_shortcut ("asdadsgfdsa", "afddfsf",
>> "/asd.png")
>>
>> The shortcut then appeared on my desktop, with the icon.
>>
>> Best Regards,
>> Faheem
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100416/8b3791f1/attachment.htm>
More information about the maemo-developers mailing list