Commit 987da379 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Show/hide the notebook event window as necessary, we weren't previously

Wed Jan 15 14:56:09 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtknotebook.c (gtk_notebook_size_allocate):
        Show/hide the notebook event window as necessary,
        we weren't previously keeping the visibility updated
        properly.  (#103599)
parent e2b40b38
Wed Jan 15 14:56:09 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_size_allocate):
Show/hide the notebook event window as necessary,
we weren't previously keeping the visibility updated
properly. (#103599)
2003-01-15 Matthias Clasen <maclas@gmx.de>
* examples/menu/itemfactory.c:
......
Wed Jan 15 14:56:09 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_size_allocate):
Show/hide the notebook event window as necessary,
we weren't previously keeping the visibility updated
properly. (#103599)
2003-01-15 Matthias Clasen <maclas@gmx.de>
* examples/menu/itemfactory.c:
......
Wed Jan 15 14:56:09 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_size_allocate):
Show/hide the notebook event window as necessary,
we weren't previously keeping the visibility updated
properly. (#103599)
2003-01-15 Matthias Clasen <maclas@gmx.de>
* examples/menu/itemfactory.c:
......
Wed Jan 15 14:56:09 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_size_allocate):
Show/hide the notebook event window as necessary,
we weren't previously keeping the visibility updated
properly. (#103599)
2003-01-15 Matthias Clasen <maclas@gmx.de>
* examples/menu/itemfactory.c:
......
Wed Jan 15 14:56:09 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_size_allocate):
Show/hide the notebook event window as necessary,
we weren't previously keeping the visibility updated
properly. (#103599)
2003-01-15 Matthias Clasen <maclas@gmx.de>
* examples/menu/itemfactory.c:
......
......@@ -1309,9 +1309,14 @@ gtk_notebook_size_allocate (GtkWidget *widget,
GdkRectangle position;
if (gtk_notebook_get_event_window_position (notebook, &position))
gdk_window_move_resize (notebook->event_window,
position.x, position.y,
position.width, position.height);
{
gdk_window_move_resize (notebook->event_window,
position.x, position.y,
position.width, position.height);
gdk_window_show_unraised (notebook->event_window);
}
else
gdk_window_hide (notebook->event_window);
}
if (notebook->children)
......@@ -2413,10 +2418,6 @@ gtk_notebook_real_remove (GtkNotebook *notebook,
g_free (page);
if (!notebook->children && notebook->show_tabs &&
GTK_WIDGET_MAPPED (notebook))
gdk_window_hide (notebook->event_window);
gtk_notebook_update_labels (notebook);
if (need_resize)
gtk_widget_queue_resize (GTK_WIDGET (notebook));
......@@ -4098,9 +4099,6 @@ gtk_notebook_insert_page_menu (GtkNotebook *notebook,
G_CALLBACK (gtk_notebook_mnemonic_activate_switch_page),
notebook);
if (notebook->show_tabs && GTK_WIDGET_MAPPED (notebook))
gdk_window_show_unraised (notebook->event_window);
gtk_widget_child_notify (child, "tab_expand");
gtk_widget_child_notify (child, "tab_fill");
gtk_widget_child_notify (child, "tab_pack");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment