Mercurial > pidgin.yaz
comparison src/conversation.c @ 10349:655c48791b3c
[gaim-migrate @ 11563]
Removed "Use remote alias when no alias is set" Defaulted to:
Conversation titles: No
Conversation messages: Yes
Buddy list: Yes
I barely use MSN, and I use ICQ even less, so if someone thinks of better
defaults let me know. These seem to be the best for me.
The trick is that on MSN, the server alias usually is less helpful than the
screenname and on ICQ, it's more helpful. An alternative is to have the prpl
specify which to use, but that's dumb.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 13 Dec 2004 00:52:07 +0000 |
parents | 1034e77ff0ce |
children | db5e8c8b2abb |
comparison
equal
deleted
inserted
replaced
10348:64bc206c7473 | 10349:655c48791b3c |
---|---|
1132 name = gaim_conversation_get_name(conv); | 1132 name = gaim_conversation_get_name(conv); |
1133 | 1133 |
1134 if (gaim_prefs_get_bool("/core/conversations/use_alias_for_title")) { | 1134 if (gaim_prefs_get_bool("/core/conversations/use_alias_for_title")) { |
1135 if(gaim_conversation_get_type(conv) == GAIM_CONV_IM) { | 1135 if(gaim_conversation_get_type(conv) == GAIM_CONV_IM) { |
1136 if(account && ((b = gaim_find_buddy(account, name)) != NULL)) | 1136 if(account && ((b = gaim_find_buddy(account, name)) != NULL)) |
1137 text = gaim_buddy_get_contact_alias(b); | 1137 text = gaim_buddy_get_local_alias(b); |
1138 } else if(gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) { | 1138 } else if(gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) { |
1139 if(account && ((chat = gaim_blist_find_chat(account, name)) != NULL)) | 1139 if(account && ((chat = gaim_blist_find_chat(account, name)) != NULL)) |
1140 text = chat->alias; | 1140 text = chat->alias; |
1141 } | 1141 } |
1142 } | 1142 } |
2732 | 2732 |
2733 static void | 2733 static void |
2734 update_titles_pref_cb(const char *name, GaimPrefType type, | 2734 update_titles_pref_cb(const char *name, GaimPrefType type, |
2735 gpointer value, gpointer data) | 2735 gpointer value, gpointer data) |
2736 { | 2736 { |
2737 /* | |
2738 * If the use_server_alias option was changed, and use_alias_for_title | |
2739 * is false, then we don't have to do anything here. | |
2740 */ | |
2741 if (!strcmp(name, "/core/buddies/use_server_alias") && | |
2742 !gaim_prefs_get_bool("/core/conversations/use_alias_for_title")) | |
2743 return; | |
2744 | |
2745 gaim_conversation_foreach(gaim_conversation_autoset_title); | 2737 gaim_conversation_foreach(gaim_conversation_autoset_title); |
2746 } | 2738 } |
2747 | 2739 |
2748 void | 2740 void |
2749 gaim_conversations_set_win_ui_ops(GaimConvWindowUiOps *ops) | 2741 gaim_conversations_set_win_ui_ops(GaimConvWindowUiOps *ops) |
2787 gaim_prefs_add_bool("/core/conversations/im/send_typing", TRUE); | 2779 gaim_prefs_add_bool("/core/conversations/im/send_typing", TRUE); |
2788 | 2780 |
2789 /* Connect callbacks for changed preferences */ | 2781 /* Connect callbacks for changed preferences */ |
2790 gaim_prefs_connect_callback(handle, "/core/conversations/use_alias_for_title", | 2782 gaim_prefs_connect_callback(handle, "/core/conversations/use_alias_for_title", |
2791 update_titles_pref_cb, NULL); | 2783 update_titles_pref_cb, NULL); |
2792 gaim_prefs_connect_callback(handle, "/core/buddies/use_server_alias", | |
2793 update_titles_pref_cb, NULL); | |
2794 | |
2795 | 2784 |
2796 /********************************************************************** | 2785 /********************************************************************** |
2797 * Register signals | 2786 * Register signals |
2798 **********************************************************************/ | 2787 **********************************************************************/ |
2799 gaim_signal_register(handle, "writing-im-msg", | 2788 gaim_signal_register(handle, "writing-im-msg", |