# HG changeset patch # User Sean Egan # Date 1015262577 0 # Node ID 2a1bae4efb924189d2ee5a34371134346253013e # Parent 8851d33517e92f65e2a4a665a4e6037d98afebbf [gaim-migrate @ 3016] Wow. That was stupid. committer: Tailor Script diff -r 8851d33517e9 -r 2a1bae4efb92 src/conversation.c --- a/src/conversation.c Mon Mar 04 07:01:57 2002 +0000 +++ b/src/conversation.c Mon Mar 04 17:22:57 2002 +0000 @@ -2299,19 +2299,18 @@ void show_typing(struct conversation *c) { - GtkStyle *style; - GtkNotebook *notebook = GTK_NOTEBOOK(c->is_chat ? chat_notebook : convo_notebook); - int offs = ((convo_options & OPT_CONVO_COMBINE) && - (im_options & OPT_IM_ONE_WINDOW) && c->is_chat) ? - g_list_length(conversations) : 0; - GList *ws = (c->is_chat ? chats : conversations); - GtkWidget *label = gtk_notebook_get_tab_label(notebook, - gtk_notebook_get_nth_page(notebook, - offs + g_list_index(ws, c))); if (c->is_chat) /* We shouldn't be getting typing notifications from chats. */ return; if (im_options & OPT_IM_ONE_WINDOW) { /* We'll make the tab green */ - + GtkStyle *style; + GtkNotebook *notebook = GTK_NOTEBOOK(c->is_chat ? chat_notebook : convo_notebook); + int offs = ((convo_options & OPT_CONVO_COMBINE) && + (im_options & OPT_IM_ONE_WINDOW) && c->is_chat) ? + g_list_length(conversations) : 0; + GList *ws = (c->is_chat ? chats : conversations); + GtkWidget *label = gtk_notebook_get_tab_label(notebook, + gtk_notebook_get_nth_page(notebook, + offs + g_list_index(ws, c))); style = gtk_style_new(); if (!GTK_WIDGET_REALIZED(label)) gtk_widget_realize(label);