comparison src/gtkconv.c @ 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 74180743304a
children c354b70d8502
comparison
equal deleted inserted replaced
10555:761822c6f7ca 10556:3eff59ad7acb
4444 gtkconv->menu_icon = gtk_image_new(); 4444 gtkconv->menu_icon = gtk_image_new();
4445 update_tab_icon(conv); 4445 update_tab_icon(conv);
4446 4446
4447 /* Tab label. */ 4447 /* Tab label. */
4448 gtkconv->tab_label = gtk_label_new(gaim_conversation_get_title(conv)); 4448 gtkconv->tab_label = gtk_label_new(gaim_conversation_get_title(conv));
4449 #if GTK_CHECK_VERSION(2,6,0)
4450 g_object_set(G_OBJECT(gtkconv->tab_label), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
4451 #endif
4449 gtkconv->menu_label = gtk_label_new(gaim_conversation_get_title(conv)); 4452 gtkconv->menu_label = gtk_label_new(gaim_conversation_get_title(conv));
4450 #if 0 4453 #if 0
4451 gtk_misc_set_alignment(GTK_MISC(gtkconv->tab_label), 0.00, 0.5); 4454 gtk_misc_set_alignment(GTK_MISC(gtkconv->tab_label), 0.00, 0.5);
4452 gtk_misc_set_padding(GTK_MISC(gtkconv->tab_label), 4, 0); 4455 gtk_misc_set_padding(GTK_MISC(gtkconv->tab_label), 4, 0);
4453 #endif 4456 #endif
4476 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) 4479 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM)
4477 gaim_gtkconv_update_buddy_icon(conv); 4480 gaim_gtkconv_update_buddy_icon(conv);
4478 4481
4479 /* Add this pane to the conversation's notebook. */ 4482 /* Add this pane to the conversation's notebook. */
4480 gtk_notebook_append_page_menu(GTK_NOTEBOOK(gtkwin->notebook), tab_cont, tabby, menu_tabby); 4483 gtk_notebook_append_page_menu(GTK_NOTEBOOK(gtkwin->notebook), tab_cont, tabby, menu_tabby);
4484 gtk_notebook_set_tab_label_packing(GTK_NOTEBOOK(gtkwin->notebook), tab_cont, TRUE, TRUE, GTK_PACK_END);
4485
4481 4486
4482 gtk_widget_show(tab_cont); 4487 gtk_widget_show(tab_cont);
4483 4488
4484 if (gaim_conv_window_get_conversation_count(win) == 1) { 4489 if (gaim_conv_window_get_conversation_count(win) == 1) {
4485 /* Er, bug in notebooks? Switch to the page manually. */ 4490 /* Er, bug in notebooks? Switch to the page manually. */