mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
take into account both scroll arrows when calculating size request in
2007-01-05 Carlos Garnacho <carlosg@gnome.org> * gtk/gtknotebook.c (gtk_notebook_size_request): take into account both scroll arrows when calculating size request in GTK_POS_LEFT or GTK_POS_RIGHT notebooks. (#393124, reported by Christian Persch) svn path=/trunk/; revision=17080
This commit is contained in:
parent
f332e19c4f
commit
34039c7008
@ -1,3 +1,9 @@
|
|||||||
|
2007-01-05 Carlos Garnacho <carlosg@gnome.org>
|
||||||
|
|
||||||
|
* gtk/gtknotebook.c (gtk_notebook_size_request): take into account
|
||||||
|
both scroll arrows when calculating size request in GTK_POS_LEFT or
|
||||||
|
GTK_POS_RIGHT notebooks. (#393124, reported by Christian Persch)
|
||||||
|
|
||||||
2007-01-05 Michael Natterer <mitch@imendio.com>
|
2007-01-05 Michael Natterer <mitch@imendio.com>
|
||||||
|
|
||||||
* gtk/gtkwindow.c (gtk_window_key_release_event): chain up to
|
* gtk/gtkwindow.c (gtk_window_key_release_event): chain up to
|
||||||
|
@ -1865,7 +1865,7 @@ gtk_notebook_size_request (GtkWidget *widget,
|
|||||||
|
|
||||||
if (notebook->scrollable && vis_pages > 1 &&
|
if (notebook->scrollable && vis_pages > 1 &&
|
||||||
widget->requisition.height < tab_height)
|
widget->requisition.height < tab_height)
|
||||||
tab_height = tab_max + scroll_arrow_vlength + arrow_spacing;
|
tab_height = tab_max + (2 * scroll_arrow_vlength + arrow_spacing);
|
||||||
|
|
||||||
widget->requisition.width += tab_width;
|
widget->requisition.width += tab_width;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user