# HG changeset patch # User Nathan Walp # Date 1047198051 0 # Node ID efa194b5caaf044537a4d0dfeeaab2078df1e113 # Parent 2c380754eb673aa7cc9564e8864be7b93c487587 [gaim-migrate @ 4992] Set the title of the conversation window to be the same as the tab label, because that's the cool thing to do. For the moment, this will suffer from the same problem as the tabs that are red when they shouldn't be. I hope to get all of that fixed this weekend. I define "this weekend" as "before I go to class on Monday", just like Sean defines "tonight" as "before he goes to bed" ;-) committer: Tailor Script diff -r 2c380754eb67 -r efa194b5caaf src/gtkconv.c --- a/src/gtkconv.c Sun Mar 09 03:24:34 2003 +0000 +++ b/src/gtkconv.c Sun Mar 09 08:20:51 2003 +0000 @@ -1759,6 +1759,9 @@ gaim_gtk_set_state_lock(FALSE); gtk_widget_grab_focus(gtkconv->entry); + + gtk_window_set_title(GTK_WINDOW(gtkwin->window), + gtk_label_get_text(GTK_LABEL(gtkconv->tab_label))); } /************************************************************************** @@ -3267,7 +3270,6 @@ gtk_window_set_resizable(GTK_WINDOW(gtkwin->window), TRUE); gtk_container_set_border_width(GTK_CONTAINER(gtkwin->window), 0); gtk_widget_realize(gtkwin->window); - gtk_window_set_title(GTK_WINDOW(gtkwin->window), _("Conversations")); g_signal_connect(G_OBJECT(gtkwin->window), "delete_event", G_CALLBACK(close_win_cb), win); @@ -4173,10 +4175,17 @@ gaim_gtkconv_set_title(struct gaim_conversation *conv, const char *title) { struct gaim_gtk_conversation *gtkconv; - + struct gaim_window *win; + struct gaim_gtk_window *gtkwin; + + win = gaim_conversation_get_window(conv); + gtkwin = GAIM_GTK_WINDOW(win); gtkconv = GAIM_GTK_CONVERSATION(conv); gtk_label_set_text(GTK_LABEL(gtkconv->tab_label), title); + + if(conv == gaim_window_get_active_conversation(win)) + gtk_window_set_title(GTK_WINDOW(gtkwin->window), title); } static void