From: Bastien Nocera <hadess@hadess.net>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] [patch] Use buttons in notification popups
Date: Tue, 04 Dec 2007 14:03:42 +0000 [thread overview]
Message-ID: <1196777022.3227.245.camel@cookie.hadess.net> (raw)
In-Reply-To: <1196701498.12292.133.camel@violet>
[-- Attachment #1: Type: text/plain, Size: 1215 bytes --]
On Mon, 2007-12-03 at 18:04 +0100, Marcel Holtmann wrote:
> Hi Bastien,
>
> > > > As reported here:
> > > > https://bugzilla.redhat.com/show_bug.cgi?id=407551
> > > >
> > > > notification-daemon kind of sucks and doesn't allow for long messages
> > > > (it will clip the messages, see those screenshots:
> > > > https://bugzilla.redhat.com/attachment.cgi?id=274901
> > > > https://bugzilla.redhat.com/attachment.cgi?id=274911
> > > > )
> > > >
> > > > Attached patch removes the extra lines, and adds a button to the popup
> > > > instead. It looks better, and still pops up the dialogues as expected.
> > >
> > > look good to me. Any special requirements on the version of libnotify to
> > > make this work?
> >
> > I don't think so, but this seems to work on any recent version of
> > libnotify I've seen. And it's the same API you've used (just the
> > "action" is different).
>
> I gonna double check, but otherwise the patch is fine and committed.
>
> About the _(action). I don't think we should do the translation this
> way. Lets translate the string where there actually are an not mask them
> with N(). It confuses me, but you are a better expert in this area.
Attached patch fixes that.
Cheers
[-- Attachment #2: bluez-gnome-remove-gettext-noop.patch --]
[-- Type: text/x-patch, Size: 1187 bytes --]
Index: main.c
===================================================================
RCS file: /cvsroot/bluez/gnome/applet/main.c,v
retrieving revision 1.88
diff -u -p -r1.88 main.c
--- main.c 3 Dec 2007 17:03:31 -0000 1.88
+++ main.c 4 Dec 2007 14:02:19 -0000
@@ -686,7 +686,7 @@ static void show_notification(const gcha
notify_notification_add_action(notify, "default", "action",
callback, NULL, NULL);
if (action != NULL)
- notify_notification_add_action(notify, "button", _(action),
+ notify_notification_add_action(notify, "button", action,
callback, NULL, NULL);
notify_notification_show(notify, NULL);
@@ -792,7 +792,7 @@ static gboolean passkey_agent_request(Pa
g_free(device);
show_notification(adapter ? adapter : _("Bluetooth device"),
- line, N_("Enter passkey"), 0,
+ line, _("Enter passkey"), 0,
G_CALLBACK(notification_closed));
g_free(line);
@@ -832,7 +832,7 @@ static gboolean passkey_agent_confirm(Pa
g_free(device);
show_notification(adapter ? adapter : _("Bluetooth device"),
- line, N_("Confirm pairing"), 0,
+ line, _("Confirm pairing"), 0,
G_CALLBACK(notification_closed));
g_free (line);
[-- Attachment #3: Type: text/plain, Size: 309 bytes --]
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
[-- Attachment #4: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2007-12-04 14:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-03 10:24 [Bluez-devel] [patch] Use buttons in notification popups Bastien Nocera
2007-12-03 16:26 ` Marcel Holtmann
2007-12-03 16:32 ` Bastien Nocera
2007-12-03 17:04 ` Marcel Holtmann
2007-12-04 14:03 ` Bastien Nocera [this message]
2007-12-04 15:31 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1196777022.3227.245.camel@cookie.hadess.net \
--to=hadess@hadess.net \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.