fixed bug where themed sidebar tabs weren't stacking correctly. Fixed by

fixed bug where themed sidebar tabs weren't stacking correctly.  Fixed
	by using the actual tab height instead of the non-themed constant.
	Also, added newer tab_pieces image.
This commit is contained in:
Andy Hertzfeld 2000-07-03 22:49:46 +00:00
parent 198ccfc04d
commit c8f6f960af
3 changed files with 13 additions and 3 deletions

View file

@ -1,3 +1,12 @@
2000-07-03 Andy Hertzfeld <andy@eazel.com>
* src/nautilus-sidebar-tabs.c: (draw_or_hit_test_all_tabs):
fixed bug where themed tabs weren't stacking correctly. Fixed by
using the actual tab height instead of the constant used by the
default.
* icons/arlo/sidebar_tab_pieces.png:
replaced with newer version that has a background and edge piece.
2000-07-03 Andy Hertzfeld <andy@eazel.com>
* src/nautilus-sidebar-title.c:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View file

@ -577,9 +577,10 @@ draw_or_hit_test_all_tabs (NautilusSidebarTabs *sidebar_tabs, gboolean draw_flag
if (x_pos > (widget->allocation.x + widget->allocation.width - 48)) {
/* wrap to the next line */
x_pos = widget->allocation.x + sidebar_tabs->details->tab_left_offset;
y_pos -= TAB_HEIGHT;
if (!is_themed)
y_pos -= TAB_ROW_V_OFFSET;
if (is_themed)
y_pos -= sidebar_tabs->details->piece_offsets[TAB_NORMAL_LEFT].height;
else
y_pos -= TAB_HEIGHT + TAB_ROW_V_OFFSET;
first_flag = TRUE;
if ((next_tab != NULL) && ((next_tab->next != NULL) || this_item->visible)) {
total_height += TAB_HEIGHT;