comparison src/conversation.c @ 3699:b401bd1701b4

[gaim-migrate @ 3830] blah committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Mon, 14 Oct 2002 18:02:40 +0000
parents ea4fa951aebc
children 04a911e7dfc9
comparison
equal deleted inserted replaced
3698:507eb0a2c7b2 3699:b401bd1701b4
2099 offs + g_list_index(ws, c))); 2099 offs + g_list_index(ws, c)));
2100 GtkStyle *style; 2100 GtkStyle *style;
2101 style = gtk_style_new(); 2101 style = gtk_style_new();
2102 if (!GTK_WIDGET_REALIZED(label)) 2102 if (!GTK_WIDGET_REALIZED(label))
2103 gtk_widget_realize(label); 2103 gtk_widget_realize(label);
2104 gdk_font_unref(gtk_style_get_font(style));
2105 gtk_style_set_font(style, gdk_font_ref(gtk_style_get_font(label->style))); 2104 gtk_style_set_font(style, gdk_font_ref(gtk_style_get_font(label->style)));
2106 if (!unhighlight && flags & WFLAG_NICK) { 2105 if (!unhighlight && flags & WFLAG_NICK) {
2107 style->fg[0].red = 0x0000; 2106 style->fg[0].red = 0x0000;
2108 style->fg[0].green = 0x0000; 2107 style->fg[0].green = 0x0000;
2109 style->fg[0].blue = 0xcccc; 2108 style->fg[0].blue = 0xcccc;
2186 /* Logging */ 2185 /* Logging */
2187 menuitem = gtk_check_menu_item_new_with_mnemonic(_("Enable _Logging")); 2186 menuitem = gtk_check_menu_item_new_with_mnemonic(_("Enable _Logging"));
2188 c->log_button = menuitem; /* We should save this */ 2187 c->log_button = menuitem; /* We should save this */
2189 2188
2190 state_lock = 1; 2189 state_lock = 1;
2190
2191 if (find_log_info(c->name)) 2191 if (find_log_info(c->name))
2192 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(menuitem), TRUE); 2192 gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menuitem), TRUE);
2193 else 2193 else
2194 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(menuitem), FALSE); 2194 gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menuitem), FALSE);
2195
2195 state_lock = 0; 2196 state_lock = 0;
2196 2197
2197 gtk_signal_connect(GTK_OBJECT(menuitem), "toggled", GTK_SIGNAL_FUNC(toggle_loggle), c); 2198 gtk_signal_connect(GTK_OBJECT(menuitem), "toggled", GTK_SIGNAL_FUNC(toggle_loggle), c);
2198 2199
2199 /* Sounds */ 2200 /* Sounds */
3569 c->anim = NULL; 3570 c->anim = NULL;
3570 if (c->icon_timer) 3571 if (c->icon_timer)
3571 gtk_timeout_remove(c->icon_timer); 3572 gtk_timeout_remove(c->icon_timer);
3572 c->icon_timer = 0; 3573 c->icon_timer = 0;
3573 if(c->iter) 3574 if(c->iter)
3574 g_object_unref(c->iter); 3575 g_object_unref(G_OBJECT(c->iter));
3575 } 3576 }
3576 3577
3577 void update_smilies(struct conversation *c) 3578 void update_smilies(struct conversation *c)
3578 { 3579 {
3579 GSList *smilies; 3580 GSList *smilies;