# HG changeset patch # User Sadrul Habib Chowdhury # Date 1188118739 0 # Node ID 5d200fce41705c266f0a43042e775f2d1a918697 # Parent 6759eb4387a53e47ea8456437ea5025eeedcff86 Add two missing conversation-uiops functions. (has_focus and present) diff -r 6759eb4387a5 -r 5d200fce4170 finch/gntconv.c --- a/finch/gntconv.c Sun Aug 26 08:34:04 2007 +0000 +++ b/finch/gntconv.c Sun Aug 26 08:58:59 2007 +0000 @@ -882,6 +882,23 @@ gnt_tree_change_text(GNT_TREE(ggc->u.chat->userlist), (gpointer)user, 0, chat_flag_text(cb->flags)); } +static void +finch_conv_present(PurpleConversation *conv) +{ + FinchConv *fc = FINCH_CONV(conv); + if (fc && fc->window) + return gnt_window_present(fc->window); +} + +static gboolean +finch_conv_has_focus(PurpleConversation *conv) +{ + FinchConv *fc = FINCH_CONV(conv); + if (fc && fc->window) + return gnt_widget_has_focus(fc->window); + return FALSE; +} + static PurpleConversationUiOps conv_ui_ops = { finch_create_conversation, @@ -893,8 +910,8 @@ finch_chat_rename_user, finch_chat_remove_users, finch_chat_update_user, - NULL, /* present */ - NULL, /* has_focus */ + finch_conv_present, /* present */ + finch_conv_has_focus, /* has_focus */ NULL, /* custom_smiley_add */ NULL, /* custom_smiley_write */ NULL, /* custom_smiley_close */