comparison src/gtkconv.c @ 11856:fa7b84231ece

[gaim-migrate @ 14147] Merge my changes for the gtkconv buddy_updated_cb stuff. Nothing to see here, sadrul covered the important stuff. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 27 Oct 2005 19:29:15 +0000
parents dba7bf61e64c
children 3ba50c385299
comparison
equal deleted inserted replaced
11855:dba7bf61e64c 11856:fa7b84231ece
5501 5501
5502 void 5502 void
5503 gaim_gtk_conversations_init(void) 5503 gaim_gtk_conversations_init(void)
5504 { 5504 {
5505 void *handle = gaim_gtk_conversations_get_handle(); 5505 void *handle = gaim_gtk_conversations_get_handle();
5506 void *blist_handle = gaim_blist_get_handle();
5506 5507
5507 /* Conversations */ 5508 /* Conversations */
5508 gaim_prefs_add_none("/gaim/gtk/conversations"); 5509 gaim_prefs_add_none("/gaim/gtk/conversations");
5509 gaim_prefs_add_bool("/gaim/gtk/conversations/close_on_tabs", TRUE); 5510 gaim_prefs_add_bool("/gaim/gtk/conversations/close_on_tabs", TRUE);
5510 gaim_prefs_add_bool("/gaim/gtk/conversations/send_bold", FALSE); 5511 gaim_prefs_add_bool("/gaim/gtk/conversations/send_bold", FALSE);
5551 spellcheck_pref_cb, NULL); 5552 spellcheck_pref_cb, NULL);
5552 gaim_prefs_connect_callback(handle, "/gaim/gtk/conversations/tab_side", 5553 gaim_prefs_connect_callback(handle, "/gaim/gtk/conversations/tab_side",
5553 tab_side_pref_cb, NULL); 5554 tab_side_pref_cb, NULL);
5554 5555
5555 gaim_prefs_connect_callback(handle, "/gaim/gtk/conversations/placement", 5556 gaim_prefs_connect_callback(handle, "/gaim/gtk/conversations/placement",
5556 conv_placement_pref_cb, NULL); 5557 conv_placement_pref_cb, NULL);
5557 gaim_prefs_trigger_callback("/gaim/gtk/conversations/placement"); 5558 gaim_prefs_trigger_callback("/gaim/gtk/conversations/placement");
5558 5559
5559 /* IM callbacks */ 5560 /* IM callbacks */
5560 gaim_prefs_connect_callback(handle, "/gaim/gtk/conversations/im/animate_buddy_icons", 5561 gaim_prefs_connect_callback(handle, "/gaim/gtk/conversations/im/animate_buddy_icons",
5561 animate_buddy_icons_pref_cb, NULL); 5562 animate_buddy_icons_pref_cb, NULL);
5590 clear_command_cb, _("clear: Clears the conversation scrollback."), NULL); 5591 clear_command_cb, _("clear: Clears the conversation scrollback."), NULL);
5591 gaim_cmd_register("help", "w", GAIM_CMD_P_DEFAULT, 5592 gaim_cmd_register("help", "w", GAIM_CMD_P_DEFAULT,
5592 GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_ALLOW_WRONG_ARGS, NULL, 5593 GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_ALLOW_WRONG_ARGS, NULL,
5593 help_command_cb, _("help &lt;command&gt;: Help on a specific command."), NULL); 5594 help_command_cb, _("help &lt;command&gt;: Help on a specific command."), NULL);
5594 5595
5595 gaim_signal_connect(gaim_blist_get_handle(), "buddy-added", handle, 5596 /**********************************************************************
5597 * UI operations
5598 **********************************************************************/
5599
5600 gaim_signal_connect(blist_handle, "buddy-added", handle,
5596 G_CALLBACK(buddy_update_cb), NULL); 5601 G_CALLBACK(buddy_update_cb), NULL);
5597 gaim_signal_connect(gaim_blist_get_handle(), "buddy-removed", handle, 5602 gaim_signal_connect(blist_handle, "buddy-removed", handle,
5598 G_CALLBACK(buddy_update_cb), NULL); 5603 G_CALLBACK(buddy_update_cb), NULL);
5599 5604
5600 gaim_conversations_set_ui_ops(&conversation_ui_ops); 5605 gaim_conversations_set_ui_ops(&conversation_ui_ops);
5601 } 5606 }
5602 5607