| 2188 gtk_widget_show(gtkconv->info); |
2188 gtk_widget_show(gtkconv->info); |
| 2189 gtk_widget_show(gtkconv->send); |
2189 gtk_widget_show(gtkconv->send); |
| 2190 gtk_widget_show(gtkconv->u.im->warn); |
2190 gtk_widget_show(gtkconv->u.im->warn); |
| 2191 gtk_widget_show(gtkconv->u.im->block); |
2191 gtk_widget_show(gtkconv->u.im->block); |
| 2192 |
2192 |
| 2193 /* Deal with the toolbar */ |
|
| 2194 //gtk_widget_show(gtkconv->toolbar.image); |
|
| 2195 |
|
| 2196 /* Deal with menu items */ |
2193 /* Deal with menu items */ |
| 2197 gtk_widget_show(gtkwin->menu.view_log); |
2194 gtk_widget_show(gtkwin->menu.view_log); |
| 2198 gtk_widget_show(gtkwin->menu.add_pounce); |
2195 gtk_widget_show(gtkwin->menu.add_pounce); |
| 2199 gtk_widget_show(gtkwin->menu.get_info); |
2196 gtk_widget_show(gtkwin->menu.get_info); |
| 2200 gtk_widget_show(gtkwin->menu.warn); |
2197 gtk_widget_show(gtkwin->menu.warn); |
| 2222 |
2219 |
| 2223 /* Deal with buttons */ |
2220 /* Deal with buttons */ |
| 2224 gtk_widget_show(gtkconv->info); |
2221 gtk_widget_show(gtkconv->info); |
| 2225 gtk_widget_show(gtkconv->send); |
2222 gtk_widget_show(gtkconv->send); |
| 2226 gtk_widget_show(gtkconv->u.chat->invite); |
2223 gtk_widget_show(gtkconv->u.chat->invite); |
| 2227 |
|
| 2228 /* Deal with the toolbar */ |
|
| 2229 // gtk_widget_hide(gtkconv->toolbar.image); |
|
| 2230 |
2224 |
| 2231 /* Deal with menu items */ |
2225 /* Deal with menu items */ |
| 2232 gtk_widget_hide(gtkwin->menu.view_log); |
2226 gtk_widget_hide(gtkwin->menu.view_log); |
| 2233 gtk_widget_hide(gtkwin->menu.add_pounce); |
2227 gtk_widget_hide(gtkwin->menu.add_pounce); |
| 2234 gtk_widget_hide(gtkwin->menu.get_info); |
2228 gtk_widget_hide(gtkwin->menu.get_info); |
| 2330 gtk_widget_set_sensitive(gtkconv->u.im->warn, FALSE); |
2324 gtk_widget_set_sensitive(gtkconv->u.im->warn, FALSE); |
| 2331 gtk_widget_set_sensitive(gtkconv->u.im->block, FALSE); |
2325 gtk_widget_set_sensitive(gtkconv->u.im->block, FALSE); |
| 2332 } else if (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) { |
2326 } else if (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) { |
| 2333 gtk_widget_set_sensitive(gtkconv->u.chat->invite, FALSE); |
2327 gtk_widget_set_sensitive(gtkconv->u.chat->invite, FALSE); |
| 2334 } |
2328 } |
| 2335 |
|
| 2336 /* Deal with the toolbar */ |
|
| 2337 //gtk_widget_set_sensitive(gtkconv->toolbar.link, TRUE); |
|
| 2338 //gtk_widget_set_sensitive(gtkconv->toolbar.image, FALSE); |
|
| 2339 |
2329 |
| 2340 /* Then deal with menu items */ |
2330 /* Then deal with menu items */ |
| 2341 gtk_widget_set_sensitive(gtkwin->menu.view_log, TRUE); |
2331 gtk_widget_set_sensitive(gtkwin->menu.view_log, TRUE); |
| 2342 gtk_widget_set_sensitive(gtkwin->menu.add_pounce, TRUE); |
2332 gtk_widget_set_sensitive(gtkwin->menu.add_pounce, TRUE); |
| 2343 gtk_widget_set_sensitive(gtkwin->menu.get_info, FALSE); |
2333 gtk_widget_set_sensitive(gtkwin->menu.get_info, FALSE); |
| 3073 { N_("/Conversation/_Remove..."), NULL, menu_add_remove_cb, 0, |
3063 { N_("/Conversation/_Remove..."), NULL, menu_add_remove_cb, 0, |
| 3074 "<StockItem>", GTK_STOCK_REMOVE }, |
3064 "<StockItem>", GTK_STOCK_REMOVE }, |
| 3075 |
3065 |
| 3076 { "/Conversation/sep3", NULL, NULL, 0, "<Separator>" }, |
3066 { "/Conversation/sep3", NULL, NULL, 0, "<Separator>" }, |
| 3077 |
3067 |
| 3078 { N_("/Conversation/Insert Lin_k..."), NULL, NULL, 0, //menu_insert_link_cb, 0, |
3068 { N_("/Conversation/Insert Lin_k..."), NULL, NULL, 0, /* menu_insert_link_cb, 0, */ |
| 3079 "<StockItem>", GAIM_STOCK_LINK }, |
3069 "<StockItem>", GAIM_STOCK_LINK }, |
| 3080 { N_("/Conversation/Insert Imag_e..."), NULL, NULL, 0, //menu_insert_image_cb, 0, |
3070 { N_("/Conversation/Insert Imag_e..."), NULL, NULL, 0, /* menu_insert_image_cb, 0, */ |
| 3081 "<StockItem>", GAIM_STOCK_IMAGE }, |
3071 "<StockItem>", GAIM_STOCK_IMAGE }, |
| 3082 |
3072 |
| 3083 { "/Conversation/sep4", NULL, NULL, 0, "<Separator>" }, |
3073 { "/Conversation/sep4", NULL, NULL, 0, "<Separator>" }, |
| 3084 |
3074 |
| 3085 { N_("/Conversation/_Close"), NULL, menu_close_conv_cb, 0, |
3075 { N_("/Conversation/_Close"), NULL, menu_close_conv_cb, 0, |
| 4257 **************************************************************************/ |
4247 **************************************************************************/ |
| 4258 static void |
4248 static void |
| 4259 gaim_gtkconv_destroy(GaimConversation *conv) |
4249 gaim_gtkconv_destroy(GaimConversation *conv) |
| 4260 { |
4250 { |
| 4261 GaimGtkConversation *gtkconv = GAIM_GTK_CONVERSATION(conv); |
4251 GaimGtkConversation *gtkconv = GAIM_GTK_CONVERSATION(conv); |
| 4262 |
|
| 4263 /* if (gtkconv->dialogs.fg_color != NULL) |
|
| 4264 gtk_widget_destroy(gtkconv->dialogs.fg_color); |
|
| 4265 |
|
| 4266 if (gtkconv->dialogs.bg_color != NULL) |
|
| 4267 gtk_widget_destroy(gtkconv->dialogs.bg_color); |
|
| 4268 |
|
| 4269 if (gtkconv->dialogs.font != NULL) |
|
| 4270 gtk_widget_destroy(gtkconv->dialogs.font); |
|
| 4271 |
|
| 4272 if (gtkconv->dialogs.image != NULL) |
|
| 4273 gtk_widget_destroy(gtkconv->dialogs.image); |
|
| 4274 |
|
| 4275 if (gtkconv->dialogs.smiley != NULL) |
|
| 4276 gtk_widget_destroy(gtkconv->dialogs.smiley); |
|
| 4277 */ |
|
| 4278 //if (gtkconv->dialogs.link != NULL) |
|
| 4279 // close_link_dialog(conv); |
|
| 4280 |
4252 |
| 4281 if (gtkconv->dialogs.log != NULL) |
4253 if (gtkconv->dialogs.log != NULL) |
| 4282 gtk_widget_destroy(gtkconv->dialogs.log); |
4254 gtk_widget_destroy(gtkconv->dialogs.log); |
| 4283 |
4255 |
| 4284 gtk_widget_destroy(gtkconv->tab_cont); |
4256 gtk_widget_destroy(gtkconv->tab_cont); |