elementaryart team mailing list archive
-
elementaryart team
-
Mailing list archive
-
Message #01844
[Merge] lp:~karlis-lukstins/granite/popover_move_to_rect into lp:~elementary-pantheon/granite/popovers
Kārlis Lukstiņš has proposed merging lp:~karlis-lukstins/granite/popover_move_to_rect into lp:~elementary-pantheon/granite/popovers.
Requested reviews:
elementary Pantheon team (elementary-pantheon)
For more details, see:
https://code.launchpad.net/~karlis-lukstins/granite/popover_move_to_rect/+merge/80127
Added a function for moving the popover to a rectangle.
Is needed to position it at a cell in treeview.
--
https://code.launchpad.net/~karlis-lukstins/granite/popover_move_to_rect/+merge/80127
Your team elementaryart (old) is subscribed to branch lp:~elementary-pantheon/granite/popovers.
=== modified file 'lib/Widgets/PopOver.vala'
--- lib/Widgets/PopOver.vala 2011-10-14 15:41:28 +0000
+++ lib/Widgets/PopOver.vala 2011-10-22 12:38:23 +0000
@@ -283,6 +283,14 @@
move(win_x, win_y);
}
+ public void move_to_rect (Gdk.Rectangle rect)
+ {
+ show_all();
+
+ compute_pop_position (get_screen (), rect);
+ move(win_x, win_y);
+ }
+
/**
* Move the popover to the Gdk.Window window. The recommand method is
* move_to_widget, but this one can be used when we don't know which widget
Follow ups