| 390 |
391 |
| 391 pidgin_conv_placement_place(gtkconv); |
392 pidgin_conv_placement_place(gtkconv); |
| 392 } |
393 } |
| 393 |
394 |
| 394 static void |
395 static void |
| |
396 conversation_create(PurpleConversation *conv) { |
| |
397 GtkWidget *window = NULL; |
| |
398 |
| |
399 window = pidgin_display_window_get_default(); |
| |
400 pidgin_display_window_add(PIDGIN_DISPLAY_WINDOW(window), conv); |
| |
401 } |
| |
402 |
| |
403 static void |
| |
404 conversation_write(PurpleConversation *conv, PurpleMessage *pmsg) { |
| |
405 GtkWidget *conversation = NULL; |
| |
406 |
| |
407 conversation = pidgin_conversation_from_purple_conversation(conv); |
| |
408 if(PIDGIN_IS_CONVERSATION(conversation)) { |
| |
409 pidgin_conversation_write_message(PIDGIN_CONVERSATION(conversation), |
| |
410 pmsg); |
| |
411 } |
| |
412 } |
| |
413 |
| |
414 static void |
| 395 pidgin_conv_new(PurpleConversation *conv) |
415 pidgin_conv_new(PurpleConversation *conv) |
| 396 { |
416 { |
| 397 private_gtkconv_new(conv, FALSE); |
417 private_gtkconv_new(conv, FALSE); |
| 398 if (PIDGIN_IS_PIDGIN_CONVERSATION_OLD(conv)) |
418 if (PIDGIN_IS_PIDGIN_CONVERSATION_OLD(conv)) |
| 399 purple_signal_emit(pidgin_conversations_get_handle(), |
419 purple_signal_emit(pidgin_conversations_get_handle(), |
| 546 return FALSE; |
566 return FALSE; |
| 547 } |
567 } |
| 548 |
568 |
| 549 static PurpleConversationUiOps conversation_ui_ops = |
569 static PurpleConversationUiOps conversation_ui_ops = |
| 550 { |
570 { |
| 551 .create_conversation = pidgin_conv_new, |
571 .create_conversation = conversation_create, |
| |
572 .write_conv = conversation_write, |
| |
573 |
| 552 .destroy_conversation = pidgin_conv_destroy, |
574 .destroy_conversation = pidgin_conv_destroy, |
| 553 .write_conv = pidgin_conv_write_conv, |
|
| 554 .has_focus = pidgin_conv_has_focus, |
575 .has_focus = pidgin_conv_has_focus, |
| 555 }; |
576 }; |
| 556 |
577 |
| 557 PurpleConversationUiOps * |
578 PurpleConversationUiOps * |
| 558 pidgin_conversations_get_conv_ui_ops(void) |
579 pidgin_conversations_get_conv_ui_ops(void) |