Mercurial > pidgin
changeset 10556:3eff59ad7acb
[gaim-migrate @ 11933]
This seems to be the best way to ellipsize tab labels. Let's try it on for
a bit.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sat, 29 Jan 2005 22:31:02 +0000 |
parents | 761822c6f7ca |
children | a511fb614157 |
files | src/gtkconv.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkconv.c Sat Jan 29 18:36:43 2005 +0000 +++ b/src/gtkconv.c Sat Jan 29 22:31:02 2005 +0000 @@ -4446,6 +4446,9 @@ /* Tab label. */ gtkconv->tab_label = gtk_label_new(gaim_conversation_get_title(conv)); +#if GTK_CHECK_VERSION(2,6,0) + g_object_set(G_OBJECT(gtkconv->tab_label), "ellipsize", PANGO_ELLIPSIZE_END, NULL); +#endif gtkconv->menu_label = gtk_label_new(gaim_conversation_get_title(conv)); #if 0 gtk_misc_set_alignment(GTK_MISC(gtkconv->tab_label), 0.00, 0.5); @@ -4478,6 +4481,8 @@ /* Add this pane to the conversation's notebook. */ gtk_notebook_append_page_menu(GTK_NOTEBOOK(gtkwin->notebook), tab_cont, tabby, menu_tabby); + gtk_notebook_set_tab_label_packing(GTK_NOTEBOOK(gtkwin->notebook), tab_cont, TRUE, TRUE, GTK_PACK_END); + gtk_widget_show(tab_cont);