mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Improve drawing of tabs
This commit is contained in:
parent
3ddd7aef5a
commit
2e7184f51b
@ -1,5 +1,8 @@
|
|||||||
2006-07-21 Matthias Clasen <mclasen@redhat.com>
|
2006-07-21 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtknotebook.c (gtk_notebook_paint): Improve drawing
|
||||||
|
of tabs while reordering. (#348115, Benjamin Otte)
|
||||||
|
|
||||||
* gtk/gtkiconview.c (gtk_icon_view_destroy): Don't
|
* gtk/gtkiconview.c (gtk_icon_view_destroy): Don't
|
||||||
leak the adjustments. (#348094, Chris Wilson)
|
leak the adjustments. (#348094, Chris Wilson)
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
2006-07-21 Matthias Clasen <mclasen@redhat.com>
|
2006-07-21 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtknotebook.c (gtk_notebook_paint): Improve drawing
|
||||||
|
of tabs while reordering. (#348115, Benjamin Otte)
|
||||||
|
|
||||||
* gtk/gtkiconview.c (gtk_icon_view_destroy): Don't
|
* gtk/gtkiconview.c (gtk_icon_view_destroy): Don't
|
||||||
leak the adjustments. (#348094, Chris Wilson)
|
leak the adjustments. (#348094, Chris Wilson)
|
||||||
|
|
||||||
|
@ -4442,10 +4442,8 @@ gtk_notebook_paint (GtkWidget *widget,
|
|||||||
if (!NOTEBOOK_IS_TAB_LABEL_PARENT (notebook, notebook->cur_page) ||
|
if (!NOTEBOOK_IS_TAB_LABEL_PARENT (notebook, notebook->cur_page) ||
|
||||||
!GTK_WIDGET_MAPPED (notebook->cur_page->tab_label))
|
!GTK_WIDGET_MAPPED (notebook->cur_page->tab_label))
|
||||||
{
|
{
|
||||||
gtk_paint_box (widget->style, widget->window,
|
gap_x = 0;
|
||||||
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
|
gap_width = 0;
|
||||||
area, widget, "notebook",
|
|
||||||
x, y, width, height);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -4472,13 +4470,12 @@ gtk_notebook_paint (GtkWidget *widget,
|
|||||||
step = STEP_PREV;
|
step = STEP_PREV;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
gtk_paint_box_gap (widget->style, widget->window,
|
gtk_paint_box_gap (widget->style, widget->window,
|
||||||
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
|
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
|
||||||
area, widget, "notebook",
|
area, widget, "notebook",
|
||||||
x, y, width, height,
|
x, y, width, height,
|
||||||
tab_pos, gap_x, gap_width);
|
tab_pos, gap_x, gap_width);
|
||||||
}
|
|
||||||
|
|
||||||
showarrow = FALSE;
|
showarrow = FALSE;
|
||||||
children = gtk_notebook_search_page (notebook, NULL, step, TRUE);
|
children = gtk_notebook_search_page (notebook, NULL, step, TRUE);
|
||||||
|
Loading…
Reference in New Issue
Block a user