| 5684 } |
5684 } |
| 5685 |
5685 |
| 5686 gtk_drag_dest_set(gtkconv->webview, 0, NULL, 0, GDK_ACTION_COPY); |
5686 gtk_drag_dest_set(gtkconv->webview, 0, NULL, 0, GDK_ACTION_COPY); |
| 5687 gtk_drag_dest_set_target_list(gtkconv->webview, targets); |
5687 gtk_drag_dest_set_target_list(gtkconv->webview, targets); |
| 5688 |
5688 |
| 5689 gtk_drag_dest_set(gtkconv->entry, 0, NULL, 0, GDK_ACTION_COPY); |
|
| 5690 gtk_drag_dest_set_target_list(gtkconv->entry, targets); |
|
| 5691 |
|
| 5692 g_signal_connect(G_OBJECT(pane), "button_press_event", |
5689 g_signal_connect(G_OBJECT(pane), "button_press_event", |
| 5693 G_CALLBACK(ignore_middle_click), NULL); |
5690 G_CALLBACK(ignore_middle_click), NULL); |
| 5694 g_signal_connect(G_OBJECT(pane), "drag-data-received", |
5691 g_signal_connect(G_OBJECT(pane), "drag-data-received", |
| 5695 G_CALLBACK(conv_dnd_recv), gtkconv); |
5692 G_CALLBACK(conv_dnd_recv), gtkconv); |
| 5696 #if 0 |
5693 #if 0 |
| 5717 if (convnode != NULL && purple_blist_node_has_setting(convnode, "enable-logging")) { |
5714 if (convnode != NULL && purple_blist_node_has_setting(convnode, "enable-logging")) { |
| 5718 gboolean logging = purple_blist_node_get_bool(convnode, "enable-logging"); |
5715 gboolean logging = purple_blist_node_get_bool(convnode, "enable-logging"); |
| 5719 purple_conversation_set_logging(conv, logging); |
5716 purple_conversation_set_logging(conv, logging); |
| 5720 } |
5717 } |
| 5721 |
5718 |
| 5722 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/show_formatting_toolbar")) |
5719 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/show_formatting_toolbar")) { |
| 5723 pidgin_webview_show_toolbar(PIDGIN_WEBVIEW(gtkconv->entry)); |
5720 talkatu_editor_show_toolbar(TALKATU_EDITOR(gtkconv->editor)); |
| 5724 else |
5721 } else { |
| 5725 pidgin_webview_hide_toolbar(PIDGIN_WEBVIEW(gtkconv->entry)); |
5722 talkatu_editor_hide_toolbar(TALKATU_EDITOR(gtkconv->editor)); |
| |
5723 } |
| |
5724 |
| 5726 pidgin_webview_switch_active_conversation( |
5725 pidgin_webview_switch_active_conversation( |
| 5727 PIDGIN_WEBVIEW(gtkconv->entry), conv); |
5726 PIDGIN_WEBVIEW(gtkconv->entry), conv); |
| 5728 pidgin_webview_switch_active_conversation( |
5727 pidgin_webview_switch_active_conversation( |
| 5729 PIDGIN_WEBVIEW(gtkconv->webview), conv); |
5728 PIDGIN_WEBVIEW(gtkconv->webview), conv); |
| 5730 |
5729 |
| 7716 |
7715 |
| 7717 gtk_toggle_action_set_active( |
7716 gtk_toggle_action_set_active( |
| 7718 GTK_TOGGLE_ACTION(win->menu->show_formatting_toolbar), |
7717 GTK_TOGGLE_ACTION(win->menu->show_formatting_toolbar), |
| 7719 (gboolean)GPOINTER_TO_INT(value)); |
7718 (gboolean)GPOINTER_TO_INT(value)); |
| 7720 |
7719 |
| 7721 if ((gboolean)GPOINTER_TO_INT(value)) |
7720 if ((gboolean)GPOINTER_TO_INT(value)) { |
| 7722 pidgin_webview_show_toolbar(PIDGIN_WEBVIEW(gtkconv->entry)); |
7721 talkatu_editor_show_toolbar(TALKATU_EDITOR(gtkconv->editor)); |
| 7723 else |
7722 } else { |
| 7724 pidgin_webview_hide_toolbar(PIDGIN_WEBVIEW(gtkconv->entry)); |
7723 talkatu_editor_hide_toolbar(TALKATU_EDITOR(gtkconv->editor)); |
| |
7724 } |
| 7725 |
7725 |
| 7726 resize_webview_cb(gtkconv); |
7726 resize_webview_cb(gtkconv); |
| 7727 } |
7727 } |
| 7728 } |
7728 } |
| 7729 |
7729 |