|
2009-02-22
, 09:59
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#2
|
/* exit the gtk main loop & osso_deinitalize*/
osso_context_t* context = NULL;
context = osso_initialize ("com.transmissionbt.Transmission", VERSION, FALSE, NULL);
osso_deinitialize(context);
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
|
2009-02-22
, 15:46
|
|
Posts: 903 |
Thanked: 632 times |
Joined on Apr 2008
|
#3
|
Osso context refers to registering the app from DBUS, I don't know how it works for python but for transmission, I did things like:
(I had previously initialized it with:
osso_initialize ("com.transmissionbt.Transmission", VERSION, FALSE, NULL);
)
In python, it's something like:
import osso
osso.Context('com.whatever.whatever','<version>', False)
(Last param is always false - true is depreciated)
osso_context = osso.Context('com.quickclip.Quickclip','.21', False)
Sorry if this has confused you even more, I'm only familiar with C and I can't even code in C.
The Following User Says Thank You to BrentDC For This Useful Post: | ||
The problem is that I'm unsure what exactly needs to be done to initialize the help system because all the documentation is in C, and I'm not familiar with C at all (hate it).
This is the documentation I've found:
http://maemo.org/api_refs/4.1/libhil...og-help-enable
http://maemo.org/maemo_release_docum...00000000000000
This is my not-yet-working example:
Problem is, I don't even know what a valid osso.Context arguement is. If I put None there, the dialog will open, but clicking the "?" does nothing.
Any help greatly appreciated.