From 9ca66dd1c4b8ab04aada99fa8a593b44bb5cb88c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 31 Oct 2008 03:46:00 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20558522=20=E2=80=93=20scroll=20arrow=20pai?= =?UTF-8?q?nted=20insensitive=20even=20though=20there=20are?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-10-30 Matthias Clasen Bug 558522 – scroll arrow painted insensitive even though there are pages beyond the edge gtk/gtknotebook.c (gtk_notebook_real_insert_page): Redraw arrows. Pointed out by Christian Persch svn path=/trunk/; revision=21738 --- ChangeLog | 10 +++++++++- gtk/gtknotebook.c | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 99aafc54ff..daa8335fc8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-10-30 Matthias Clasen + + Bug 558522 – scroll arrow painted insensitive even though there + are pages beyond the edge + + * gtk/gtknotebook.c (gtk_notebook_real_insert_page): Redraw + arrows. Pointed out by Christian Persch + 2008-10-30 Michael Natterer * gtk/gtkcellrenderertext.h @@ -71,7 +79,7 @@ (gdk_pointer_grab_info_libgtk_only): Return TRUE when there is a pointer grab. Patch by Owen Taylor. -2008-10-2r76 Matthias Clasen +2008-10-26 Matthias Clasen * gtk/gtktoolshell.c: * gtk/gtktoolitem.c: Remove markup from short descriptions. diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 1f3ad2494c..b81c01cdb3 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -4128,6 +4128,9 @@ gtk_notebook_real_insert_page (GtkNotebook *notebook, gtk_notebook_update_tab_states (notebook); + if (notebook->scrollable) + gtk_notebook_redraw_arrows (notebook); + gtk_widget_child_notify (child, "tab-expand"); gtk_widget_child_notify (child, "tab-fill"); gtk_widget_child_notify (child, "tab-pack");