Mercurial > pidgin
changeset 4681:efa194b5caaf
[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 <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 09 Mar 2003 08:20:51 +0000 |
parents | 2c380754eb67 |
children | a4498ce61bf6 |
files | src/gtkconv.c |
diffstat | 1 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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