Mercurial > pidgin.yaz
comparison finch/gntconv.c @ 19446:5d200fce4170
Add two missing conversation-uiops functions. (has_focus and present)
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 26 Aug 2007 08:58:59 +0000 |
parents | 6759eb4387a5 |
children | 1a9b30a95fa6 |
comparison
equal
deleted
inserted
replaced
19445:6759eb4387a5 | 19446:5d200fce4170 |
---|---|
880 PurpleConvChatBuddy *cb = purple_conv_chat_cb_find(PURPLE_CONV_CHAT(conv), user); | 880 PurpleConvChatBuddy *cb = purple_conv_chat_cb_find(PURPLE_CONV_CHAT(conv), user); |
881 FinchConv *ggc = conv->ui_data; | 881 FinchConv *ggc = conv->ui_data; |
882 gnt_tree_change_text(GNT_TREE(ggc->u.chat->userlist), (gpointer)user, 0, chat_flag_text(cb->flags)); | 882 gnt_tree_change_text(GNT_TREE(ggc->u.chat->userlist), (gpointer)user, 0, chat_flag_text(cb->flags)); |
883 } | 883 } |
884 | 884 |
885 static void | |
886 finch_conv_present(PurpleConversation *conv) | |
887 { | |
888 FinchConv *fc = FINCH_CONV(conv); | |
889 if (fc && fc->window) | |
890 return gnt_window_present(fc->window); | |
891 } | |
892 | |
893 static gboolean | |
894 finch_conv_has_focus(PurpleConversation *conv) | |
895 { | |
896 FinchConv *fc = FINCH_CONV(conv); | |
897 if (fc && fc->window) | |
898 return gnt_widget_has_focus(fc->window); | |
899 return FALSE; | |
900 } | |
901 | |
885 static PurpleConversationUiOps conv_ui_ops = | 902 static PurpleConversationUiOps conv_ui_ops = |
886 { | 903 { |
887 finch_create_conversation, | 904 finch_create_conversation, |
888 finch_destroy_conversation, | 905 finch_destroy_conversation, |
889 finch_write_chat, | 906 finch_write_chat, |
891 finch_write_conv, | 908 finch_write_conv, |
892 finch_chat_add_users, | 909 finch_chat_add_users, |
893 finch_chat_rename_user, | 910 finch_chat_rename_user, |
894 finch_chat_remove_users, | 911 finch_chat_remove_users, |
895 finch_chat_update_user, | 912 finch_chat_update_user, |
896 NULL, /* present */ | 913 finch_conv_present, /* present */ |
897 NULL, /* has_focus */ | 914 finch_conv_has_focus, /* has_focus */ |
898 NULL, /* custom_smiley_add */ | 915 NULL, /* custom_smiley_add */ |
899 NULL, /* custom_smiley_write */ | 916 NULL, /* custom_smiley_write */ |
900 NULL, /* custom_smiley_close */ | 917 NULL, /* custom_smiley_close */ |
901 NULL, /* send_confirm */ | 918 NULL, /* send_confirm */ |
902 NULL, | 919 NULL, |