From a99d7348c69d2e986d87e53ca0f1cc8d0fd544cb Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Mon, 2 Jun 2003 23:05:45 +0000 Subject: [PATCH] Don't map the event window if the notebook isn't mapped. (#113980, Richard Mon Jun 2 18:58:54 2003 Owen Taylor * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't map the event window if the notebook isn't mapped. (#113980, Richard Reich) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtknotebook.c | 3 ++- 6 files changed, 32 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 335d5bde1e..9ddb1cb9cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Jun 2 18:58:54 2003 Owen Taylor + + * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't + map the event window if the notebook isn't mapped. (#113980, + Richard Reich) + 2003-06-02 Sven Neumann * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 335d5bde1e..9ddb1cb9cc 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Mon Jun 2 18:58:54 2003 Owen Taylor + + * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't + map the event window if the notebook isn't mapped. (#113980, + Richard Reich) + 2003-06-02 Sven Neumann * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 335d5bde1e..9ddb1cb9cc 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Mon Jun 2 18:58:54 2003 Owen Taylor + + * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't + map the event window if the notebook isn't mapped. (#113980, + Richard Reich) + 2003-06-02 Sven Neumann * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 335d5bde1e..9ddb1cb9cc 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Mon Jun 2 18:58:54 2003 Owen Taylor + + * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't + map the event window if the notebook isn't mapped. (#113980, + Richard Reich) + 2003-06-02 Sven Neumann * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 335d5bde1e..9ddb1cb9cc 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Mon Jun 2 18:58:54 2003 Owen Taylor + + * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't + map the event window if the notebook isn't mapped. (#113980, + Richard Reich) + 2003-06-02 Sven Neumann * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast. diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index b0d9af43e5..92c9b6d970 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -1380,7 +1380,8 @@ gtk_notebook_size_allocate (GtkWidget *widget, gdk_window_move_resize (notebook->event_window, position.x, position.y, position.width, position.height); - gdk_window_show_unraised (notebook->event_window); + if (GTK_WIDGET_MAPPED (notebook)) + gdk_window_show_unraised (notebook->event_window); } else gdk_window_hide (notebook->event_window);