Fix positioning near the monitor boundaries. (#154341, Ken Harris)
2004-10-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_search_position_func): Fix positioning near the monitor boundaries. (#154341, Ken Harris)
This commit is contained in:
committed by
Matthias Clasen
parent
aae6fbcd0f
commit
41f17245c5
@ -12266,6 +12266,11 @@ gtk_tree_view_search_position_func (GtkTreeView *tree_view,
|
||||
GdkWindow *tree_window = GTK_WIDGET (tree_view)->window;
|
||||
GdkScreen *screen = gdk_drawable_get_screen (tree_window);
|
||||
GtkRequisition requisition;
|
||||
gint monitor_num;
|
||||
GdkRectangle monitor;
|
||||
|
||||
monitor_num = gdk_screen_get_monitor_at_window (screen, tree_window);
|
||||
gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor);
|
||||
|
||||
gtk_widget_realize (search_dialog);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user