void linphone_gtk_text_received(LinphoneCore *lc, LinphoneChatRoom *room, const LinphoneAddress *from, const char *message){ GtkWidget *w=(GtkWidget*)linphone_chat_room_get_user_data(room); if (w==NULL){ w=linphone_gtk_init_chatroom(room,linphone_address_as_string_uri_only(from)); } linphone_gtk_push_text(GTK_TEXT_VIEW(linphone_gtk_get_widget(w,"textlog")), linphone_address_as_string_uri_only(from), message,FALSE); gtk_window_present(GTK_WINDOW(w)); /*gtk_window_set_urgency_hint(GTK_WINDOW(w),TRUE);*/ }
void text_received(LinphoneCore *lc, LinphoneChatRoom *room, const LinphoneAddress *from, const char *message) { ChatRoom *w=(ChatRoom*)linphone_chat_room_get_user_data(room); if (w==NULL){ w=linphone_qt_init_chatroom(room,linphone_address_as_string_uri_only(from)); } QString msgid; w->push_text(linphone_address_as_string_uri_only(from), message, msgid, false); w->activateWindow(); w->show(); }