It seems to me that the hildon 'platform' uses dbus and if we have some widgets that are designed to interact with the platform environment (like notifiers or session) then, when built for that platform, they can depend on platform specific things.
so yes, I thing showMessage should use dbus for WS_HILDON David Antonio Aloisio wrote: > 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 <i...@inz.fi> wrote: > 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. > _______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers > -- > Isaac Asimov - "I do not fear computers. I fear the lack of them." -- "Don't worry, you'll be fine; I saw it work in a cartoon once..." _______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers