~dylanmccall/notify-osd/position-hints

Viewing all changes in revision 194.

  • Committer: Dylan McCall
  • Date: 2009-02-23 20:29:50 UTC
  • Revision ID: dmccall@dylan-laptop-20090223202950-pgkyx8v6n67w3tmt
X and Y hints can now be set, and are stored in the _BubblePrivate 
instance for a bubble. Basic animations exist for this, via the existing 
bubble_slide_to command.

stack.c:
(462) Responds to "x" and "y" hints. Calls bubble_set_attached 
with extracted gints for x and y position.

bubble.h:
Defined bubble_set_attached and bubble_is_attached

bubble.c:
Added function bubble_set_attached. Takes three arguments: 
attach specifies whether the bubble should be attached (this way it can 
be detached from set coordinates if necessary), and x and y positions 
to be attached to.
Added bubble_is_attached. Returns TRUE if bubble is attached to 
coordinates.
Added attach_ attach_x and attach_y to _BubblePrivate
Hacked bubble_fade_out to have an example animation for attaching, in 
this case by calling bubble_slide_to

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: