Re: libnotify and the HIG



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.

-- dobey


On Sat, 2006-04-15 at 20:14 +0100, Richard Hughes wrote:
> Is there a draft HIG guidelines on the positioning of libnotify
> "arrows"?
> 
> NetworkManager has the "point" at the center of the notification icon,
> but gnome-power-manager points to the outside of the icon.
> 
> The reason I'm asking is
> http://bugzilla.gnome.org/show_bug.cgi?id=338638 wants a fix for the
> notification-area-is-at-bottom-case and I want to fix this only once.
> The bugzilla link has a screenshot.
> 
> Thanks for any pointers.
> 
> Richard.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]