From 1e4243e40b98439868879a78c2877a57b82b88d3 Mon Sep 17 00:00:00 2001 From: Jay Painter Date: Tue, 2 Dec 1997 03:43:24 +0000 Subject: [PATCH] same as before -Jay --- ChangeLog | 9 +++++++++ ChangeLog.pre-2-0 | 9 +++++++++ ChangeLog.pre-2-10 | 9 +++++++++ ChangeLog.pre-2-2 | 9 +++++++++ ChangeLog.pre-2-4 | 9 +++++++++ ChangeLog.pre-2-6 | 9 +++++++++ ChangeLog.pre-2-8 | 9 +++++++++ configure | 2 +- configure.in | 2 +- glib/configure | 2 +- glib/configure.in | 2 +- gtk/Makefile.am | 2 +- gtk/Makefile.in | 2 +- gtk/gtknotebook.c | 20 ++++++++++++++++---- 14 files changed, 85 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index e8c32f0065..d38fb36434 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +Sun Nov 30 1997 Jay Painter + * gtk/gtknotebook.c: fixed a old bug where all the notebook pages + which were not displayed when the notebook widget was realized were + never size allocated when they were realized. + +Thr Nov 28 1997 Jay Painter + * gtk/gtklist.h: removed GtkSelectionMode + * gtk/gtkenums.h: added GtkSelectionMode + Fri Nov 28 01:26:55 1997 Tim Janik * gtk/gtkwindow.c (gtk_window_show): propagate a size_request before diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index e8c32f0065..d38fb36434 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,12 @@ +Sun Nov 30 1997 Jay Painter + * gtk/gtknotebook.c: fixed a old bug where all the notebook pages + which were not displayed when the notebook widget was realized were + never size allocated when they were realized. + +Thr Nov 28 1997 Jay Painter + * gtk/gtklist.h: removed GtkSelectionMode + * gtk/gtkenums.h: added GtkSelectionMode + Fri Nov 28 01:26:55 1997 Tim Janik * gtk/gtkwindow.c (gtk_window_show): propagate a size_request before diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index e8c32f0065..d38fb36434 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,12 @@ +Sun Nov 30 1997 Jay Painter + * gtk/gtknotebook.c: fixed a old bug where all the notebook pages + which were not displayed when the notebook widget was realized were + never size allocated when they were realized. + +Thr Nov 28 1997 Jay Painter + * gtk/gtklist.h: removed GtkSelectionMode + * gtk/gtkenums.h: added GtkSelectionMode + Fri Nov 28 01:26:55 1997 Tim Janik * gtk/gtkwindow.c (gtk_window_show): propagate a size_request before diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index e8c32f0065..d38fb36434 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,12 @@ +Sun Nov 30 1997 Jay Painter + * gtk/gtknotebook.c: fixed a old bug where all the notebook pages + which were not displayed when the notebook widget was realized were + never size allocated when they were realized. + +Thr Nov 28 1997 Jay Painter + * gtk/gtklist.h: removed GtkSelectionMode + * gtk/gtkenums.h: added GtkSelectionMode + Fri Nov 28 01:26:55 1997 Tim Janik * gtk/gtkwindow.c (gtk_window_show): propagate a size_request before diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index e8c32f0065..d38fb36434 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,12 @@ +Sun Nov 30 1997 Jay Painter + * gtk/gtknotebook.c: fixed a old bug where all the notebook pages + which were not displayed when the notebook widget was realized were + never size allocated when they were realized. + +Thr Nov 28 1997 Jay Painter + * gtk/gtklist.h: removed GtkSelectionMode + * gtk/gtkenums.h: added GtkSelectionMode + Fri Nov 28 01:26:55 1997 Tim Janik * gtk/gtkwindow.c (gtk_window_show): propagate a size_request before diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index e8c32f0065..d38fb36434 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,12 @@ +Sun Nov 30 1997 Jay Painter + * gtk/gtknotebook.c: fixed a old bug where all the notebook pages + which were not displayed when the notebook widget was realized were + never size allocated when they were realized. + +Thr Nov 28 1997 Jay Painter + * gtk/gtklist.h: removed GtkSelectionMode + * gtk/gtkenums.h: added GtkSelectionMode + Fri Nov 28 01:26:55 1997 Tim Janik * gtk/gtkwindow.c (gtk_window_show): propagate a size_request before diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index e8c32f0065..d38fb36434 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,12 @@ +Sun Nov 30 1997 Jay Painter + * gtk/gtknotebook.c: fixed a old bug where all the notebook pages + which were not displayed when the notebook widget was realized were + never size allocated when they were realized. + +Thr Nov 28 1997 Jay Painter + * gtk/gtklist.h: removed GtkSelectionMode + * gtk/gtkenums.h: added GtkSelectionMode + Fri Nov 28 01:26:55 1997 Tim Janik * gtk/gtkwindow.c (gtk_window_show): propagate a size_request before diff --git a/configure b/configure index 69dad09e14..aac6e44c8d 100755 --- a/configure +++ b/configure @@ -631,7 +631,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' PACKAGE=gtk+ -VERSION=971109 +VERSION=971201 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } diff --git a/configure.in b/configure.in index c1140ac16a..63a82b4a1a 100644 --- a/configure.in +++ b/configure.in @@ -5,7 +5,7 @@ AC_INIT(gdk/gdktypes.h) AC_CONFIG_SUBDIRS(glib) dnl Initialize automake stuff -AM_INIT_AUTOMAKE(gtk+, 971109) +AM_INIT_AUTOMAKE(gtk+, 971201) # Specify a configuration file AM_CONFIG_HEADER(config.h) diff --git a/glib/configure b/glib/configure index becb1c7034..7910385de9 100755 --- a/glib/configure +++ b/glib/configure @@ -617,7 +617,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' PACKAGE=glib -VERSION=971109 +VERSION=971201 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } diff --git a/glib/configure.in b/glib/configure.in index d97b441bce..b96aa7653c 100644 --- a/glib/configure.in +++ b/glib/configure.in @@ -2,7 +2,7 @@ AC_INIT(glib.h) dnl Initialize automake stuff -AM_INIT_AUTOMAKE(glib, 971109) +AM_INIT_AUTOMAKE(glib, 971201) # Specify a configuration file AM_CONFIG_HEADER(glibconfig.h) diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 60d43b1d25..41b6625620 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -179,7 +179,7 @@ gtkinclude_HEADERS = \ gtktypebuiltins.c: gtk.defs gentypeinfo.el $(srcdir)/runelisp $(srcdir)/gentypeinfo.el id $< $@ -libgtk_la_LDFLAGS = -version-info 1:0: +libgtk_la_LDFLAGS = -version-info 1:0:0 EXTRA_DIST = \ line-arrow.xbm \ diff --git a/gtk/Makefile.in b/gtk/Makefile.in index ee479c2a09..3bdbb6b0c6 100644 --- a/gtk/Makefile.in +++ b/gtk/Makefile.in @@ -247,7 +247,7 @@ gtkinclude_HEADERS = \ gtkwindow.h \ gtktypebuiltins.h -libgtk_la_LDFLAGS = -version-info 1:0: +libgtk_la_LDFLAGS = -version-info 1:0:0 EXTRA_DIST = \ line-arrow.xbm \ diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 0b3115034e..721671e4e2 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -201,7 +201,8 @@ gtk_notebook_insert_page (GtkNotebook *notebook, if (GTK_WIDGET_REALIZED (notebook) && !GTK_WIDGET_REALIZED (child)) gtk_widget_realize (child); - + + if (GTK_WIDGET_MAPPED (notebook) && !GTK_WIDGET_MAPPED (child) && notebook->cur_page == page) gtk_widget_map (child); @@ -551,7 +552,7 @@ gtk_notebook_size_request (GtkWidget *widget, if (GTK_WIDGET_VISIBLE (page->child)) { gtk_widget_size_request (page->child, &page->child->requisition); - + widget->requisition.width = MAX (widget->requisition.width, page->child->requisition.width); widget->requisition.height = MAX (widget->requisition.height, @@ -705,7 +706,7 @@ gtk_notebook_size_allocate (GtkWidget *widget, { page = children->data; children = children->next; - + if (GTK_WIDGET_VISIBLE (page->child)) gtk_widget_size_allocate (page->child, &child_allocation); } @@ -1041,7 +1042,18 @@ gtk_notebook_switch_page (GtkNotebook *notebook, gtk_notebook_pages_allocate (notebook, >K_WIDGET (notebook)->allocation); if (GTK_WIDGET_MAPPED (notebook)) - gtk_widget_map (notebook->cur_page->child); + { + if (GTK_WIDGET_REALIZED (notebook->cur_page->child)) + { + gtk_widget_map (notebook->cur_page->child); + } + else + { + gtk_widget_map (notebook->cur_page->child); + gtk_widget_size_allocate (GTK_WIDGET (notebook), + >K_WIDGET (notebook)->allocation); + } + } if (GTK_WIDGET_DRAWABLE (notebook)) gtk_widget_queue_draw (GTK_WIDGET (notebook));