hildon-banner without full GTK app?
Hi, how can I make one of the nice yellow hildon notification banners pop up, without needing a full GTK app - I mean like the low-battery notification isn't coming from a GTK app so I'm assuming there's a way to do it, even though the reference:
static Banner* Hildon::Banner::show_information ( Gtk::Widget & widget, const Glib::ustring & text ) says otherwise. DBUS? PyMaemo? Anyone? |
Re: hildon-banner without full GTK app?
Quote:
|
Re: hildon-banner without full GTK app?
What about from the console? How does the system generate this? I'm thinking of creating a very simple Growl GNTP listener that passes the messages received to hildon-banner. I don't need a GUI app at all for this, just a console app and hildon-banner!
|
Re: hildon-banner without full GTK app?
Quote:
HERE |
Re: hildon-banner without full GTK app?
No, no it's not.
dbus-send-notification doesn't exist on my N900. The longer DBUS command creates a *modal* notification in the middle of the screen, which is not what I want Interestingly, the python script in http://ubuntuforums.org/showpost.php...53&postcount=1 creates a notification which looks similar to the new SMS popup. Still not the 'top bar' notification. |
Re: hildon-banner without full GTK app?
Quote:
But, to answer your question: run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Message goes here." |
Re: hildon-banner without full GTK app?
Thanks. I just generated this:
Nokia-N900-42-11:/home/user/MyDocs/src# python mdbus.py -s org.freedesktop.Notifications /org/freedesktop/Notifications [METHOD] org.freedesktop.Notifications.CloseNotification( u:id ) [METHOD] org.freedesktop.Notifications.GetCapabilities() [METHOD] org.freedesktop.Notifications.GetServerInformation () [METHOD] org.freedesktop.Notifications.Notify( s:app_name, u:id, s:icon, s:summary, s:body, as:actions, a{sv}:hints, i:timeout ) [METHOD] org.freedesktop.Notifications.SystemNoteDialog( s:message, u:type, s:label ) [METHOD] org.freedesktop.Notifications.SystemNoteInfoprint( s:message ) [METHOD] org.freedesktop.DBus.Introspectable.Introspect() [METHOD] org.freedesktop.DBus.Properties.Get( s:interface, s:propname ) [METHOD] org.freedesktop.DBus.Properties.GetAll( s:interface ) [METHOD] org.freedesktop.DBus.Properties.Set( s:interface, s:propname, v:value ) |
Re: hildon-banner without full GTK app?
How did you find this method originally, I needed to use the amazing mdbus introspection to find it - was it documented somewhere that I didn't look?
|
Re: hildon-banner without full GTK app?
http://github.com/voltagex/projects/...tifications.py for anyone who's interested, work in progress.
|
All times are GMT. The time now is 17:37. |
vBulletin® Version 3.8.8