Hi, IMHO using the Qt D-Bus API to rewrite some parts of libosso is more easy that resolve the symobls, load and use libosso in Qt. Kimmo said adding D-Bus dependencies in the widget is ugly, I agree with him.. but... is this also true for the QStatusBar?
In Qt we have a statusBar that manages and displays messages. Currently this status bar is hidden just because we don't have it in Hildon. I don't compiled out in order to preserve the compatibility with the Qt Desktop application. Adding D-Bus into the status bar, we can display messages using hildon passive notification dialogs just calling void QStatusBar::showMessage ( const QString & message, int timeout = 0 ). Is it cool? Any comment is welcome. Cheers, Antonio On Wed, Mar 25, 2009 at 9:12 PM, Santtu Lakkala <[email protected]> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > David Greaves wrote: > > I meant gtk apps need to use osso-initialize() or they just don't work. > > Since libosso uses glib, I expect that's not really right for Qt apps. > > > > In particular I think osso-init.c calls glib setups that seem to hook into > > the > > glib context and I think the glib main loop - not used in Qt apps. > > > > eg line 503 in osso-init.c calls dbus_connection_setup_with_g_main() > > which: > > "Sets the watch and timeout functions of a DBusConnection to integrate the > > connection with the GLib main loop. " > > see: > > http://dbus.freedesktop.org/doc/api/html/group__DBusGLib.html#ga754eed235cc2b8153bd8f824b687d9e > > > > > > so libosso, as it stands, isn't suitable for Qt apps .... unless I'm > > confused :) > > > Actually Qt has supported GLib context stuff since 4.2 (IIRC), so > libosso is suitable. That doesn't say that it's practical or nice, but > it should work. > > - -- > Santtu > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAknKghEACgkQX9Rc0+po4p3zUQCgmZLaGy3jTDm3YuCbkuh7OZE4 > 2J4An3avfLa5Elu8eo94IbW1srViA8aw > =ozXP > -----END PGP SIGNATURE----- > _______________________________________________ > maemo-developers mailing list > [email protected] > https://lists.maemo.org/mailman/listinfo/maemo-developers -- Isaac Asimov - "I do not fear computers. I fear the lack of them." _______________________________________________ maemo-developers mailing list [email protected] https://lists.maemo.org/mailman/listinfo/maemo-developers
