Re: libnotify and the HIG
- From: Richard Hughes <hughsient gmail com>
- To: Rodney Dawes <dobey novell com>
- Cc: Paul Ionescu <i_p_a_u_l yahoo com>, desktop-devel-list <desktop-devel-list gnome org>, richard hughsie com
- Subject: Re: libnotify and the HIG
- Date: Sat, 15 Apr 2006 20:43:42 +0100
On Sat, 2006-04-15 at 15:40 -0400, Rodney Dawes wrote:
> My suggestion would be to not do the positioning calculation yourself,
> and let the notification stuff handle this itself. You can pass in the
> widget that you are using for the notification icon, to the _new () API
> call, and it will automatically calculate the position of the icon.
>
> Currently the code calculates this to point at the center of the widget.
> This is how NetworkManager works to use the notifications. And with the
> added bonus that we can change the behavior in one single place, and it
> will affect all of the applications that use it this way, meaning that
> if the HIG changes, we don't have to change every application, by doing
> a huge swath of copy and paste code usage.
That's what I wanted to know. Thanks for the quick response.
Richard.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]