reassign 509346 libnotify1
thanks

Sam Morris wrote:
> Package: network-manager-gnome
> Version: 0.7.0-1
> Severity: minor
> 
> The 'you are now connected to the wireless network xyz' message is truncated
> by the 'don't show me this again' button. The useful part of the message (the
> network name) is overwritten by the button. :)

That is a bug in libnotify (or notification-daemon, I'm not 100% sure).

I've attached a simple test case (taken from the libnotify sources), where you
can see, that the network name "foobar" is not displayed (see attached 
screenshot).

This seems to be a layout issue in libnotify/notification-daemon. If I further
increase the length of the message string, there is a proper line break and the
notification is rendered correctly.

I'm reassigning to libnotify to let its maintainer handle that.


Cheers,
Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

<<inline: truncated_notification.png>>

/*
 * @file tests/test-xy-actions.c Unit test: X, Y hints and actions
 *
 * @Copyright (C) 2006 Christian Hammond <chip...@chipx86.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA  02111-1307, USA.
 */

#include <libnotify/notify.h>
#include <stdio.h>
#include <unistd.h>

#define DBUS_API_SUBJECT_TO_CHANGE
#include <dbus/dbus.h>
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>

static GMainLoop *loop;

static void
action_cb(NotifyNotification *n, const char *action)
{
	printf("You clicked '%s'\n", action);

	g_main_loop_quit(loop);
}

int
main(int argc, char **argv)
{
	NotifyNotification *n;
	DBusConnection *conn;

	notify_init("XY");

	conn = dbus_bus_get(DBUS_BUS_SESSION, NULL);
	loop = g_main_loop_new(NULL, FALSE);

	dbus_connection_setup_with_g_main(conn, NULL);

	n = notify_notification_new("Network",
								"You are now connected to the wireless network 'foobar'.",
								NULL, NULL);

	notify_notification_add_action(n, "help", "Help",
								   (NotifyActionCallback)action_cb,
								   NULL, NULL);
	notify_notification_add_action(n, "update", "Update",
								   (NotifyActionCallback)action_cb,
								   NULL, NULL);

	if (!notify_notification_show(n, NULL)) {
		fprintf(stderr, "failed to send notification\n");
		return 1;
	}

	g_main_loop_run(loop);

	return 0;
}

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Pkg-utopia-maintainers mailing list
Pkg-utopia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-utopia-maintainers

Reply via email to