diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-10-01 21:30:15 +0200 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-10-01 21:30:15 +0200 |
commit | 8cf2c17736b648bd316725307dfc6f2077f4642d (patch) | |
tree | 613354346e279ef1fd53992e688bc1cf6b5b7e49 /plugins/gtkui/ddbtabstrip.c | |
parent | c70251f19e6d286a97ff302d798d69d0b88a8dcc (diff) |
gtkui: fixed limiting tabstrip height
Diffstat (limited to 'plugins/gtkui/ddbtabstrip.c')
-rw-r--r-- | plugins/gtkui/ddbtabstrip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/gtkui/ddbtabstrip.c b/plugins/gtkui/ddbtabstrip.c index f89c7eda..98253770 100644 --- a/plugins/gtkui/ddbtabstrip.c +++ b/plugins/gtkui/ddbtabstrip.c @@ -374,7 +374,7 @@ ddb_tabstrip_draw_tab (GtkWidget *widget, cairo_t *cr, int idx, int selected, in { x + w - 0, y + h - 2 }, }; coord_t points_frame2[] = { - { x + 1, y + h + 1 }, + { x + 1, y + h -1 }, { x + 1, y + 1 }, { x + w - h - 1, y + 1 }, { x + w - h + 1, y + 2 }, @@ -592,6 +592,7 @@ tabstrip_render (DdbTabStrip *ts, cairo_t *cr) { #endif GtkAllocation a; gtk_widget_get_allocation (widget, &a); + a.height = ts->calculated_height; tabstrip_adjust_hscroll (ts); cairo_set_line_width (cr, 1); @@ -998,6 +999,7 @@ on_tabstrip_configure_event (GtkWidget *widget, draw_init_font (&ts->drawctx, gtk_widget_get_style (widget)); tabstrip_adjust_hscroll (ts); int height = draw_get_listview_rowheight (&ts->drawctx) + 4; + ts->calculated_height = height; GtkAllocation a; gtk_widget_get_allocation (widget, &a); if (height != a.height) { |