[maemo-developers] GtkWidget* handler from QWidget
From: timur at sch.bme.hu timur at sch.bme.huDate: Fri Jun 8 09:00:23 EEST 2012
- Previous message: GtkWidget* handler from QWidget
- Next message: GtkWidget* handler from QWidget
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello Naikel, There are two things that come to my mind: - I implemented a Qt-based api for that stuff a long time ago - It's not possible to attach them to your window, but it's possible to add an entry to a config file, and then it will attach the notification to your window - Led/vibration notifications are possible by setting a notification hint, regardless of whether or not it's attached to your window. If you wish, I can point you to the right direction. :) Timur Sent from my Nokia N950 On 2012.06.08. 7:34 Naikel Aparicio wrote: Not really. Those are the banners and notes, as you can see in screenshots in http://doc.qt.nokia.com/qt-maemo-4.6/maemo5-informationbox.html What I want is the notification bubble. Sadly anyway I just found libhildon-plugins-notify-sv.so didn’t implement correctly the org.freedesktop.Notifications notifications. Maemo will only attach the notifications depending on the hint category to a predefined program, that is Modest for email, Conversations for IM/chat, etc. It’s not customizable. If you don’t set a category hint in your notification the daemon simply ignores everything and shows a notification that is totally useless with no sound, no LED alert, no vibration, no attachment to another widget and most importantly: it never updates itself. That means if you write your own email client, you can’t create notifications that are attached to it; if you set the category “email-message” it will always be attached to modest. When I say “attach” is that the notification belongs to the same widget and it doesn’t appear as a new window, it appears as if it were the same window than the application that generated it. Naikel From: timop.harkonen at gmail.com Sent: Friday, June 08, 2012 12:24 AM To: maemo-developers at maemo.org ; Naikel Aparicio Subject: Re: GtkWidget* handler from QWidget The maemo5 module has the notification stuff. Check if it does what you need http://doc.qt.nokia.com/qt-maemo/qtmaemo5.html Timo Naikel Aparicio kirjoitti 8.6.2012 3:27: Question to my fellow developers: I want to attach a Maemo native notification (those orange bubbles) to a QWidget. Using GLIB, it’s easy; you call notify_notification_attach_to_widget or add a hint with “attach-widget”. The thing is in order to do that you need the GtkWidget* handler of the window, and all I got is a QWidget. Is there a way do it? Thanks in advance, Naikel Aparicio Scorpius @ tmo -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20120608/d830fe22/attachment.htm>
- Previous message: GtkWidget* handler from QWidget
- Next message: GtkWidget* handler from QWidget
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]