Bug 554453 – "typeahead find" widget of GtkTreeView appears on wrong

2008-11-29  Matthias Clasen  <mclasen@redhat.com>

        Bug 554453 – "typeahead find" widget of GtkTreeView appears on
        wrong monitor in a multi-head environment

        * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
        Make sure the typeahead window follows screen changes of the
        treeview. Noticed by Rainer Stransky



svn path=/trunk/; revision=21835
This commit is contained in:
Matthias Clasen 2008-11-30 06:05:23 +00:00 committed by Matthias Clasen
parent d494aa7203
commit 31774edd4a
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,12 @@
2008-11-29 Matthias Clasen <mclasen@redhat.com>
Bug 554453 "typeahead find" widget of GtkTreeView appears on
wrong monitor in a multi-head environment
* gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
Make sure the typeahead window follows screen changes of the
treeview. Noticed by Rainer Stransky
2008-11-30 Christian Dywan <christian@imendio.com>
Bug 559622 GdkDevice test segfaults

View File

@ -10297,11 +10297,13 @@ static void
gtk_tree_view_ensure_interactive_directory (GtkTreeView *tree_view)
{
GtkWidget *frame, *vbox, *toplevel;
GdkScreen *screen;
if (tree_view->priv->search_custom_entry_set)
return;
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (tree_view));
screen = gtk_widget_get_screen (tree_view);
if (tree_view->priv->search_window != NULL)
{
@ -10311,10 +10313,12 @@ gtk_tree_view_ensure_interactive_directory (GtkTreeView *tree_view)
else if (GTK_WINDOW (tree_view->priv->search_window)->group)
gtk_window_group_remove_window (GTK_WINDOW (tree_view->priv->search_window)->group,
GTK_WINDOW (tree_view->priv->search_window));
gtk_window_set_screen (GTK_WINDOW (tree_view->priv->search_window), screen);
return;
}
tree_view->priv->search_window = gtk_window_new (GTK_WINDOW_POPUP);
gtk_window_set_screen (GTK_WINDOW (tree_view->priv->search_window), screen);
if (GTK_WINDOW (toplevel)->group)
gtk_window_group_add_window (GTK_WINDOW (toplevel)->group,