<html><head></head><body bgcolor="#FFFFFF"><div>Hi,</div><div><br></div><div>The predefined config file can be edited (thanks to thp for his "example" - he did it in gpodder)</div><div><br></div><div>Anyway, you need to add something like this to your debian/postinst</div><div><br></div><span class="Apple-style-span" style="font-family: 'Courier New'; font-size: 11px; -webkit-text-size-adjust: none; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><div># Add Sociality to the notification bubble settings</div><div>NOTIFICATIONS_CONF="/etc/hildon-desktop/notification-groups.conf"</div><div>NOTIFICATIONS_KEY="sociality-new-notifications"</div><div><br></div><div><br></div><div>if ! grep -q "$NOTIFICATIONS_KEY" "$NOTIFICATIONS_CONF"; then</div><div> echo -n "Updating $NOTIFICATIONS_CONF..."</div><div> cat >>$NOTIFICATIONS_CONF << EOF</div><div><br></div><div>### BEGIN Added by sociality postinst ###</div><div><br></div><div>[sociality-new-notifications]</div><div>Destination=Sociality</div><div>Icon=general_facebook</div><div>LED-Pattern=PatternCommonNotification</div><div><br></div><div>### END Added by sociality postinst ###</div><div><br></div><div>EOF</div><div> echo "done."</div><div>fi</div></span><div><br></div><div>Change all values to whatever you need, then use the key you defined in your app's code.</div><div>The user might need to restart parts of hildon or just reboot, but it works :)</div><div><br></div><div>--<div>Regards,</div><div>Mohammad Abu-Garbeyyeh</div></div><div><br>On Jun 8, 2012, at 8:34 AM, "Naikel Aparicio" <<a href="mailto:naikel@gmail.com">naikel@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>
<div dir="ltr">
<div style="FONT-FAMILY: 'Arial'; COLOR: #000000; FONT-SIZE: 10pt">
<div>Not really.</div>
<div> </div>
<div>Those are the banners and notes, as you can see in screenshots in <a href="http://doc.qt.nokia.com/qt-maemo-4.6/maemo5-informationbox.html">http://doc.qt.nokia.com/qt-maemo-4.6/maemo5-informationbox.html</a></div>
<div> </div>
<div>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.</div>
<div> </div>
<div>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.</div>
<div> </div>
<div> Naikel</div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<div style="FONT: 10pt tahoma">
<div> </div>
<div style="BACKGROUND: #f5f5f5">
<div style="font-color: black"><b>From:</b> <a title="timop.harkonen@gmail.com" href="mailto:timop.harkonen@gmail.com">timop.harkonen@gmail.com</a> </div>
<div><b>Sent:</b> Friday, June 08, 2012 12:24 AM</div>
<div><b>To:</b> <a title="maemo-developers@maemo.org" href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a> ; <a title="naikel@gmail.com" href="mailto:naikel@gmail.com">Naikel Aparicio</a> </div>
<div><b>Subject:</b> Re: GtkWidget* handler from QWidget</div></div></div>
<div> </div></div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<div id="fenix-user-content">
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0">The maemo5 module
has the notification stuff. Check if it does what you need</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"> </p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0"><a href="http://doc.qt.nokia.com/qt-maemo/qtmaemo5.html"><span style="COLOR: #0000ff; TEXT-DECORATION: underline">http://doc.qt.nokia.com/qt-maemo/qtmaemo5.html</span></a></p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"><font size="2" face="Arial"></font> </p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0">Timo</p></div>
<div> </div>
<div id="fenix-reply-header">
<p>Naikel Aparicio kirjoitti 8.6.2012 3:27:<br></p></div>
<div id="fenix-quoted-body">
<div dir="ltr">
<div style="FONT-FAMILY: 'Arial'; COLOR: #000000; FONT-SIZE: 10pt">
<div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">Question
to my fellow developers:</div></div>
<div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"> </div></div>
<div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">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”.</div></div>
<div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"> </div></div>
<div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">The
thing is in order</div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">to
do that you need the GtkWidget* handler of the window, and all I got is a
QWidget. Is there a way do it?</div></div>
<div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"> </div></div>
<div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">Thanks
in advance,</div></div>
<div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"> </div></div>
<div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
Naikel Aparicio</div></div>
<div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
Scorpius @ tmo</div></div></div></div></div>
<div> </div></div></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>maemo-developers mailing list</span><br><span><a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a></span><br><span><a href="https://lists.maemo.org/mailman/listinfo/maemo-developers">https://lists.maemo.org/mailman/listinfo/maemo-developers</a></span><br></div></blockquote></body></html>