pcman-bbs / pcmanx

GTK version
GNU General Public License v2.0
79 stars 74 forks source link

Shrink the title of an opened tab #63

Closed munhouiani closed 9 years ago

munhouiani commented 9 years ago

If the title of an opened tab is too long, it will not be shown within a tab. Instead, it shows all the characters of the title and messes with the other tab title. Please see the following picture for a better problem description.

http://i.imgur.com/MPPosvb.png

This commit first checks if the the length of a title is longer than 20 characters. If so, it will shrink the title into 17 characters and add '...' at the end, 20 characters in total.

http://i.imgur.com/k8VggEN.png

munhouiani commented 9 years ago

@jserv I created a new branch "shrink_tab_title" and sent a pull request. Please review.

jserv commented 9 years ago

It looks weird. I suppose that you should rebase to pcmanx/master branch. Please re-do.

munhouiani commented 9 years ago

@jserv I rebased to pcmanx/master branch. Please review.

jserv commented 9 years ago

Looks good. Merged.

Thanks again for your contribution.