diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-06-09 22:32:25 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-06-09 22:32:25 +0800 |
commit | 8650fb139a9143f04615de74ff569bce3e0c4ce3 (patch) | |
tree | 89a41d08f179a5359b8eaee0c9344b8a5bf07cb3 /plugins | |
parent | 04b7c97275ae420dca43f3e65c2ef54d02f01bdd (diff) | |
download | gsoc2013-evolution-8650fb139a9143f04615de74ff569bce3e0c4ce3.tar gsoc2013-evolution-8650fb139a9143f04615de74ff569bce3e0c4ce3.tar.gz gsoc2013-evolution-8650fb139a9143f04615de74ff569bce3e0c4ce3.tar.bz2 gsoc2013-evolution-8650fb139a9143f04615de74ff569bce3e0c4ce3.tar.lz gsoc2013-evolution-8650fb139a9143f04615de74ff569bce3e0c4ce3.tar.xz gsoc2013-evolution-8650fb139a9143f04615de74ff569bce3e0c4ce3.tar.zst gsoc2013-evolution-8650fb139a9143f04615de74ff569bce3e0c4ce3.zip |
Bug 540362: [webkit-composer] Use webkit for composer
Merge wip/webkit-composer branch into master.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/attachment-reminder/Makefile.am | 6 | ||||
-rw-r--r-- | plugins/bbdb/Makefile.am | 6 | ||||
-rw-r--r-- | plugins/dbx-import/Makefile.am | 6 | ||||
-rw-r--r-- | plugins/email-custom-header/Makefile.am | 6 | ||||
-rw-r--r-- | plugins/email-custom-header/email-custom-header.c | 11 | ||||
-rw-r--r-- | plugins/external-editor/Makefile.am | 6 | ||||
-rw-r--r-- | plugins/external-editor/external-editor.c | 106 | ||||
-rw-r--r-- | plugins/face/Makefile.am | 6 | ||||
-rw-r--r-- | plugins/face/face.c | 12 | ||||
-rw-r--r-- | plugins/mail-notification/Makefile.am | 6 | ||||
-rw-r--r-- | plugins/mail-to-task/Makefile.am | 6 | ||||
-rw-r--r-- | plugins/mailing-list-actions/Makefile.am | 6 | ||||
-rw-r--r-- | plugins/pst-import/Makefile.am | 8 | ||||
-rw-r--r-- | plugins/publish-calendar/Makefile.am | 8 | ||||
-rw-r--r-- | plugins/save-calendar/Makefile.am | 6 | ||||
-rw-r--r-- | plugins/templates/Makefile.am | 6 | ||||
-rw-r--r-- | plugins/templates/templates.c | 6 |
17 files changed, 132 insertions, 85 deletions
diff --git a/plugins/attachment-reminder/Makefile.am b/plugins/attachment-reminder/Makefile.am index 9fbbdb1271..023dab3ccd 100644 --- a/plugins/attachment-reminder/Makefile.am +++ b/plugins/attachment-reminder/Makefile.am @@ -16,8 +16,8 @@ liborg_gnome_evolution_attachment_reminder_la_CPPFLAGS = \ -DEVOLUTION_PLUGINDIR="\"$(plugindir)\"" \ $(EVOLUTION_DATA_SERVER_CFLAGS) \ $(GNOME_PLATFORM_CFLAGS) \ - $(GTKHTML_CFLAGS) \ - $(CODE_COVERAGE_CFLAGS) + $(CODE_COVERAGE_CFLAGS) \ + $(NULL) liborg_gnome_evolution_attachment_reminder_la_SOURCES = attachment-reminder.c @@ -32,7 +32,7 @@ liborg_gnome_evolution_attachment_reminder_la_LIBADD = \ $(top_builddir)/mail/libevolution-mail.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ - $(GTKHTML_LIBS) + $(NULL) EXTRA_DIST = org-gnome-evolution-attachment-reminder.eplug.xml \ org-gnome-attachment-reminder.error.xml diff --git a/plugins/bbdb/Makefile.am b/plugins/bbdb/Makefile.am index 991f662cbc..48d8796712 100644 --- a/plugins/bbdb/Makefile.am +++ b/plugins/bbdb/Makefile.am @@ -17,8 +17,8 @@ liborg_gnome_evolution_bbdb_la_CPPFLAGS = \ -I$(top_srcdir) \ $(EVOLUTION_DATA_SERVER_CFLAGS) \ $(GNOME_PLATFORM_CFLAGS) \ - $(GTKHTML_CFLAGS) \ - $(CODE_COVERAGE_CFLAGS) + $(CODE_COVERAGE_CFLAGS) \ + $(NULL) liborg_gnome_evolution_bbdb_la_SOURCES = bbdb.c bbdb.h gaimbuddies.c @@ -32,7 +32,7 @@ liborg_gnome_evolution_bbdb_la_LIBADD = \ $(top_builddir)/addressbook/gui/contact-list-editor/libecontactlisteditor.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ - $(GTKHTML_LIBS) + $(NULL) EXTRA_DIST = org-gnome-evolution-bbdb.eplug.xml diff --git a/plugins/dbx-import/Makefile.am b/plugins/dbx-import/Makefile.am index 80c5f9f953..736faf60da 100644 --- a/plugins/dbx-import/Makefile.am +++ b/plugins/dbx-import/Makefile.am @@ -16,8 +16,8 @@ liborg_gnome_dbx_import_la_CPPFLAGS = \ -I$(top_builddir) \ $(EVOLUTION_DATA_SERVER_CFLAGS) \ $(GNOME_PLATFORM_CFLAGS) \ - $(GTKHTML_CFLAGS) \ - $(CODE_COVERAGE_CFLAGS) + $(CODE_COVERAGE_CFLAGS) \ + $(NULL) liborg_gnome_dbx_import_la_SOURCES = dbx-importer.c @@ -30,7 +30,7 @@ liborg_gnome_dbx_import_la_LIBADD = \ $(top_builddir)/libemail-engine/libemail-engine.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ - $(GTKHTML_LIBS) + $(NULL) EXTRA_DIST = org-gnome-dbx-import.eplug.xml diff --git a/plugins/email-custom-header/Makefile.am b/plugins/email-custom-header/Makefile.am index 7014929882..04d0536ba3 100644 --- a/plugins/email-custom-header/Makefile.am +++ b/plugins/email-custom-header/Makefile.am @@ -12,8 +12,8 @@ liborg_gnome_email_custom_header_la_CPPFLAGS = \ -I$(top_builddir)/composer \ $(EVOLUTION_DATA_SERVER_CFLAGS) \ $(GNOME_PLATFORM_CFLAGS) \ - $(GTKHTML_CFLAGS) \ - $(CODE_COVERAGE_CFLAGS) + $(CODE_COVERAGE_CFLAGS) \ + $(NULL) liborg_gnome_email_custom_header_la_SOURCES = \ email-custom-header.c \ @@ -25,7 +25,7 @@ liborg_gnome_email_custom_header_la_LIBADD = \ $(top_builddir)/mail/libevolution-mail.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ - $(GTKHTML_LIBS) + $(NULL) liborg_gnome_email_custom_header_la_LDFLAGS = -module -avoid-version $(NO_UNDEFINED) $(CODE_COVERAGE_LDFLAGS) diff --git a/plugins/email-custom-header/email-custom-header.c b/plugins/email-custom-header/email-custom-header.c index d933e1ae82..eed2954857 100644 --- a/plugins/email-custom-header/email-custom-header.c +++ b/plugins/email-custom-header/email-custom-header.c @@ -495,15 +495,16 @@ destroy_compo_data (gpointer data) static void action_email_custom_header_cb (GtkAction *action, EMsgComposer *composer) - { GtkUIManager *ui_manager; GtkWidget *menuitem; GdkWindow *window; CustomHeaderOptionsDialog *dialog = NULL; EmailCustomHeaderWindow *new_email_custom_header_window = NULL; + EHTMLEditor *editor; - ui_manager = gtkhtml_editor_get_ui_manager (GTKHTML_EDITOR (composer)); + editor = e_msg_composer_get_editor (composer); + ui_manager = e_html_editor_get_ui_manager (editor); menuitem = gtk_ui_manager_get_widget (ui_manager, "/main-menu/insert-menu/insert-menu-top/Custom Header"); new_email_custom_header_window = g_object_get_data ((GObject *) composer, "compowindow"); @@ -545,13 +546,13 @@ gboolean e_plugin_ui_init (GtkUIManager *ui_manager, EMsgComposer *composer) { - GtkhtmlEditor *editor; + EHTMLEditor *editor; - editor = GTKHTML_EDITOR (composer); + editor = e_msg_composer_get_editor (composer); /* Add actions to the "composer" action group. */ gtk_action_group_add_actions ( - gtkhtml_editor_get_action_group (editor, "composer"), + e_html_editor_get_action_group (editor, "composer"), entries, G_N_ELEMENTS (entries), composer); return TRUE; diff --git a/plugins/external-editor/Makefile.am b/plugins/external-editor/Makefile.am index 98c547e52f..8d325be0fc 100644 --- a/plugins/external-editor/Makefile.am +++ b/plugins/external-editor/Makefile.am @@ -28,8 +28,8 @@ liborg_gnome_external_editor_la_CPPFLAGS = \ -I$(top_srcdir)/composer \ $(EVOLUTION_DATA_SERVER_CFLAGS) \ $(GNOME_PLATFORM_CFLAGS) \ - $(GTKHTML_CFLAGS) \ - $(CODE_COVERAGE_CFLAGS) + $(CODE_COVERAGE_CFLAGS) \ + $(NULL) liborg_gnome_external_editor_la_SOURCES = \ external-editor.c @@ -46,7 +46,7 @@ liborg_gnome_external_editor_la_LIBADD = \ $(top_builddir)/mail/libevolution-mail.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ - $(GTKHTML_LIBS) + $(NULL) EXTRA_DIST = \ org-gnome-external-editor.eplug.xml \ diff --git a/plugins/external-editor/external-editor.c b/plugins/external-editor/external-editor.c index 584c0b61e4..2eb00b6e87 100644 --- a/plugins/external-editor/external-editor.c +++ b/plugins/external-editor/external-editor.c @@ -149,29 +149,28 @@ static void enable_disable_composer (EMsgComposer *composer, gboolean enable) { - GtkhtmlEditor *editor; + EHTMLEditor *editor; + EHTMLEditorView *view; GtkAction *action; GtkActionGroup *action_group; g_return_if_fail (E_IS_MSG_COMPOSER (composer)); - editor = GTKHTML_EDITOR (composer); + editor = e_msg_composer_get_editor (composer); + view = e_html_editor_get_view (editor); - if (enable) - gtkhtml_editor_run_command (editor, "editable-on"); - else - gtkhtml_editor_run_command (editor, "editable-off"); + webkit_web_view_set_editable (WEBKIT_WEB_VIEW (view), enable); - action = GTKHTML_EDITOR_ACTION_EDIT_MENU (composer); + action = E_HTML_EDITOR_ACTION_EDIT_MENU (editor); gtk_action_set_sensitive (action, enable); - action = GTKHTML_EDITOR_ACTION_FORMAT_MENU (composer); + action = E_HTML_EDITOR_ACTION_FORMAT_MENU (editor); gtk_action_set_sensitive (action, enable); - action = GTKHTML_EDITOR_ACTION_INSERT_MENU (composer); + action = E_HTML_EDITOR_ACTION_INSERT_MENU (editor); gtk_action_set_sensitive (action, enable); - action_group = gtkhtml_editor_get_action_group (editor, "composer"); + action_group = e_html_editor_get_action_group (editor, "composer"); gtk_action_group_set_sensitive (action_group, enable); } @@ -192,16 +191,21 @@ static gboolean update_composer_text (GArray *array) { EMsgComposer *composer; + EHTMLEditor *editor; + EHTMLEditorView *view; gchar *text; composer = g_array_index (array, gpointer, 0); text = g_array_index (array, gpointer, 1); + editor = e_msg_composer_get_editor (composer); + view = e_html_editor_get_view (editor); + e_msg_composer_set_body_text (composer, text, FALSE); enable_composer (composer); - gtkhtml_editor_set_changed (GTKHTML_EDITOR (composer), TRUE); + e_html_editor_view_set_changed (view, TRUE); g_free (text); @@ -250,6 +254,49 @@ numlines (const gchar *text, return lineno; } +static gint +get_caret_position (EHTMLEditorView *view) +{ + WebKitDOMDocument *document; + WebKitDOMDOMWindow *window; + WebKitDOMDOMSelection *selection; + WebKitDOMRange *range; + gint range_count; + WebKitDOMNodeList *nodes; + gulong ii, length; + + document = webkit_web_view_get_dom_document (WEBKIT_WEB_VIEW (view)); + window = webkit_dom_document_get_default_view (document); + selection = webkit_dom_dom_window_get_selection (window); + + if (webkit_dom_dom_selection_get_range_count (selection) < 1) + return 0; + + range = webkit_dom_dom_selection_get_range_at (selection, 0, NULL); + range_count = 0; + nodes = webkit_dom_node_get_child_nodes ( + webkit_dom_node_get_parent_node ( + webkit_dom_dom_selection_get_anchor_node ( + selection))); + length = webkit_dom_node_list_get_length (nodes); + for (ii = 0; ii < length; ii++) { + WebKitDOMNode *node; + + node = webkit_dom_node_list_item (nodes, ii); + if (webkit_dom_node_is_same_node ( + node, webkit_dom_dom_selection_get_anchor_node (selection))) { + + break; + } else if (webkit_dom_node_get_node_type (node) == 3) { + gchar *text = webkit_dom_node_get_text_content (node); + range_count += strlen (text); + g_free (text); + } + } + + return webkit_dom_range_get_start_offset (range, NULL) + range_count; +} + static gboolean external_editor_running = FALSE; static GMutex external_editor_running_lock; @@ -262,18 +309,21 @@ external_editor_thread (gpointer user_data) GSettings *settings; gchar *editor_cmd_line = NULL, *editor_cmd = NULL, *content; gint fd, position = -1, offset = -1; + EHTMLEditor *editor; + EHTMLEditorView *view; + + editor = e_msg_composer_get_editor (composer); + view = e_html_editor_get_view (editor); /* prefix temp files with evo so .*vimrc can be setup to recognize them */ fd = g_file_open_tmp ("evoXXXXXX", &filename, NULL); if (fd > 0) { - gsize length = 0; - close (fd); d (printf ("\n\aTemporary-file Name is : [%s] \n\a", filename)); /* Push the text (if there is one) from the composer to the file */ - content = gtkhtml_editor_get_text_plain (GTKHTML_EDITOR (composer), &length); - g_file_set_contents (filename, content, length, NULL); + content = e_html_editor_view_get_text_plain (view); + g_file_set_contents (filename, content, strlen (content), NULL); } else { struct run_error_dialog_data *data; @@ -292,7 +342,7 @@ external_editor_thread (gpointer user_data) settings = g_settings_new ("org.gnome.evolution.plugin.external-editor"); editor_cmd = g_settings_get_string (settings, "command"); if (!editor_cmd) { - if (!(editor_cmd = g_strdup (g_getenv ("EDITOR")))) + if (!(editor_cmd = g_strdup (g_getenv ("EDITOR"))) ) /* Make gedit the default external editor, * if the default schemas are not installed * and no $EDITOR is set. */ @@ -300,11 +350,8 @@ external_editor_thread (gpointer user_data) } g_object_unref (settings); - if (g_strrstr (editor_cmd, "vim") != NULL - && gtk_html_get_cursor_pos ( - gtkhtml_editor_get_html ( - GTKHTML_EDITOR (composer)), &position, &offset) - && position >= 0 && offset >= 0) { + if (g_strrstr (editor_cmd, "vim") != NULL && + ((position = get_caret_position (view)) > 0)) { gchar *tmp = editor_cmd; gint lineno; gboolean set_nofork; @@ -385,7 +432,7 @@ external_editor_thread (gpointer user_data) } } - finished: +finished: g_mutex_lock (&external_editor_running_lock); external_editor_running = FALSE; g_mutex_unlock (&external_editor_running_lock); @@ -484,24 +531,23 @@ gboolean e_plugin_ui_init (GtkUIManager *manager, EMsgComposer *composer) { - GtkhtmlEditor *editor; - EWebViewGtkHTML *web_view; + EHTMLEditor *editor; + EHTMLEditorView *view; - editor = GTKHTML_EDITOR (composer); + editor = e_msg_composer_get_editor (composer); + view = e_html_editor_get_view (editor); /* Add actions to the "composer" action group. */ gtk_action_group_add_actions ( - gtkhtml_editor_get_action_group (editor, "composer"), + e_html_editor_get_action_group (editor, "composer"), entries, G_N_ELEMENTS (entries), composer); - web_view = e_msg_composer_get_web_view (composer); - g_signal_connect ( - web_view, "key_press_event", + view, "key_press_event", G_CALLBACK (key_press_cb), composer); g_signal_connect ( - web_view, "delete-event", + view, "delete-event", G_CALLBACK (delete_cb), composer); return TRUE; diff --git a/plugins/face/Makefile.am b/plugins/face/Makefile.am index dd449378c6..1fd5909789 100644 --- a/plugins/face/Makefile.am +++ b/plugins/face/Makefile.am @@ -12,8 +12,8 @@ liborg_gnome_face_la_CPPFLAGS = \ -I$(top_builddir)/composer \ $(EVOLUTION_DATA_SERVER_CFLAGS) \ $(GNOME_PLATFORM_CFLAGS) \ - $(GTKHTML_CFLAGS) \ - $(CODE_COVERAGE_CFLAGS) + $(CODE_COVERAGE_CFLAGS) \ + $(NULL) liborg_gnome_face_la_SOURCES = face.c @@ -23,7 +23,7 @@ liborg_gnome_face_la_LIBADD = \ $(top_builddir)/mail/libevolution-mail.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ - $(GTKHTML_LIBS) + $(NULL) liborg_gnome_face_la_LDFLAGS = -module -avoid-version $(NO_UNDEFINED) $(CODE_COVERAGE_LDFLAGS) diff --git a/plugins/face/face.c b/plugins/face/face.c index e40bdfc16a..cfcdb968b0 100644 --- a/plugins/face/face.c +++ b/plugins/face/face.c @@ -423,7 +423,7 @@ gboolean e_plugin_ui_init (GtkUIManager *ui_manager, EMsgComposer *composer) { - GtkhtmlEditor *editor; + EHTMLEditor *editor; static GtkToggleActionEntry entries[] = { { "face-plugin", @@ -444,11 +444,11 @@ e_plugin_ui_init (GtkUIManager *ui_manager, g_free (face); } - editor = GTKHTML_EDITOR (composer); + editor = e_msg_composer_get_editor (composer); /* Add actions to the "composer" action group. */ gtk_action_group_add_toggle_actions ( - gtkhtml_editor_get_action_group (editor, "composer"), + e_html_editor_get_action_group (editor, "composer"), entries, G_N_ELEMENTS (entries), composer); return TRUE; @@ -464,11 +464,11 @@ void face_handle_send (EPlugin *ep, EMEventTargetComposer *target) { - GtkhtmlEditor *editor; + EHTMLEditor *editor; GtkAction *action; - editor = GTKHTML_EDITOR (target->composer); - action = gtkhtml_editor_get_action (editor, "face-plugin"); + editor = e_msg_composer_get_editor (target->composer); + action = e_html_editor_get_action (editor, "face-plugin"); g_return_if_fail (action != NULL); diff --git a/plugins/mail-notification/Makefile.am b/plugins/mail-notification/Makefile.am index 521690cde0..cef5c9aac0 100644 --- a/plugins/mail-notification/Makefile.am +++ b/plugins/mail-notification/Makefile.am @@ -18,8 +18,8 @@ liborg_gnome_mail_notification_la_CPPFLAGS = \ $(GNOME_PLATFORM_CFLAGS) \ $(LIBNOTIFY_CFLAGS) \ $(CANBERRA_CFLAGS) \ - $(GTKHTML_CFLAGS) \ - $(CODE_COVERAGE_CFLAGS) + $(CODE_COVERAGE_CFLAGS) \ + $(NULL) liborg_gnome_mail_notification_la_SOURCES = mail-notification.c @@ -34,7 +34,7 @@ liborg_gnome_mail_notification_la_LIBADD = \ $(GNOME_PLATFORM_LIBS) \ $(LIBNOTIFY_LIBS) \ $(CANBERRA_LIBS) \ - $(GTKHTML_LIBS) + $(NULL) BUILT_SOURCES = $(plugin_DATA) diff --git a/plugins/mail-to-task/Makefile.am b/plugins/mail-to-task/Makefile.am index fd4c4c5db9..1d2d925b74 100644 --- a/plugins/mail-to-task/Makefile.am +++ b/plugins/mail-to-task/Makefile.am @@ -9,8 +9,8 @@ liborg_gnome_mail_to_task_la_CPPFLAGS = \ -I$(top_srcdir) \ $(EVOLUTION_DATA_SERVER_CFLAGS) \ $(GNOME_PLATFORM_CFLAGS) \ - $(GTKHTML_CFLAGS) \ - $(CODE_COVERAGE_CFLAGS) + $(CODE_COVERAGE_CFLAGS) \ + $(NULL) liborg_gnome_mail_to_task_la_SOURCES = mail-to-task.c @@ -25,7 +25,7 @@ liborg_gnome_mail_to_task_la_LIBADD = \ $(top_builddir)/libemail-engine/libemail-engine.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ - $(GTKHTML_LIBS) + $(NULL) EXTRA_DIST = org-gnome-mail-to-task.eplug.xml diff --git a/plugins/mailing-list-actions/Makefile.am b/plugins/mailing-list-actions/Makefile.am index fcb9f55f72..cc6e28ca4f 100644 --- a/plugins/mailing-list-actions/Makefile.am +++ b/plugins/mailing-list-actions/Makefile.am @@ -9,8 +9,8 @@ liborg_gnome_mailing_list_actions_la_CPPFLAGS = \ -I$(top_builddir)/composer \ $(EVOLUTION_DATA_SERVER_CFLAGS) \ $(GNOME_PLATFORM_CFLAGS) \ - $(GTKHTML_CFLAGS) \ - $(CODE_COVERAGE_CFLAGS) + $(CODE_COVERAGE_CFLAGS) \ + $(NULL) liborg_gnome_mailing_list_actions_la_SOURCES = mailing-list-actions.c @@ -24,7 +24,7 @@ liborg_gnome_mailing_list_actions_la_LIBADD = \ $(top_builddir)/libemail-engine/libemail-engine.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ - $(GTKHTML_LIBS) + $(NULL) error_DATA = org-gnome-mailing-list-actions.error errordir = $(privdatadir)/errors diff --git a/plugins/pst-import/Makefile.am b/plugins/pst-import/Makefile.am index 6e6d89a1b3..755edf8a3e 100644 --- a/plugins/pst-import/Makefile.am +++ b/plugins/pst-import/Makefile.am @@ -17,9 +17,9 @@ liborg_gnome_pst_import_la_CPPFLAGS = \ -I$(top_builddir) \ $(EVOLUTION_DATA_SERVER_CFLAGS) \ $(GNOME_PLATFORM_CFLAGS) \ - $(GTKHTML_CFLAGS) \ $(LIBPST_CFLAGS) \ - $(CODE_COVERAGE_CFLAGS) + $(CODE_COVERAGE_CFLAGS) \ + $(NULL) liborg_gnome_pst_import_la_SOURCES = pst-importer.c @@ -32,8 +32,8 @@ liborg_gnome_pst_import_la_LIBADD = \ $(top_builddir)/libemail-engine/libemail-engine.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ - $(GTKHTML_LIBS) \ - $(LIBPST_LIBS) + $(LIBPST_LIBS) \ + $(NULL) EXTRA_DIST = org-gnome-pst-import.eplug.xml diff --git a/plugins/publish-calendar/Makefile.am b/plugins/publish-calendar/Makefile.am index a24b979792..a34dbd7a04 100644 --- a/plugins/publish-calendar/Makefile.am +++ b/plugins/publish-calendar/Makefile.am @@ -16,9 +16,9 @@ liborg_gnome_publish_calendar_la_CPPFLAGS = \ -DEVOLUTION_UIDIR=\""$(uidir)"\" \ $(EVOLUTION_DATA_SERVER_CFLAGS) \ $(GNOME_PLATFORM_CFLAGS) \ - $(GTKHTML_CFLAGS) \ $(LIBNOTIFY_CFLAGS) \ - $(CODE_COVERAGE_CFLAGS) + $(CODE_COVERAGE_CFLAGS) \ + $(NULL) liborg_gnome_publish_calendar_la_SOURCES = \ publish-calendar.c \ @@ -39,8 +39,8 @@ liborg_gnome_publish_calendar_la_LIBADD = \ $(top_builddir)/calendar/gui/libevolution-calendar.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ - $(GTKHTML_LIBS) \ - $(LIBNOTIFY_LIBS) + $(LIBNOTIFY_LIBS) \ + $(NULL) EXTRA_DIST = \ org-gnome-publish-calendar.eplug.xml \ diff --git a/plugins/save-calendar/Makefile.am b/plugins/save-calendar/Makefile.am index 2a70531cd8..eb3bd54e5f 100644 --- a/plugins/save-calendar/Makefile.am +++ b/plugins/save-calendar/Makefile.am @@ -9,8 +9,8 @@ liborg_gnome_save_calendar_la_CPPFLAGS = \ -I$(top_srcdir) \ $(EVOLUTION_DATA_SERVER_CFLAGS) \ $(GNOME_PLATFORM_CFLAGS) \ - $(GTKHTML_CFLAGS) \ - $(CODE_COVERAGE_CFLAGS) + $(CODE_COVERAGE_CFLAGS) \ + $(NULL) liborg_gnome_save_calendar_la_SOURCES = \ save-calendar.c \ @@ -26,7 +26,7 @@ liborg_gnome_save_calendar_la_LIBADD = \ $(top_builddir)/shell/libevolution-shell.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ - $(GTKHTML_LIBS) + $(NULL) EXTRA_DIST = org-gnome-save-calendar.eplug.xml diff --git a/plugins/templates/Makefile.am b/plugins/templates/Makefile.am index a5d56c7958..18d25ea5e7 100644 --- a/plugins/templates/Makefile.am +++ b/plugins/templates/Makefile.am @@ -11,8 +11,8 @@ liborg_gnome_templates_la_CPPFLAGS = \ -I$(top_builddir)/composer \ $(EVOLUTION_DATA_SERVER_CFLAGS) \ $(GNOME_PLATFORM_CFLAGS) \ - $(GTKHTML_CFLAGS) \ - $(CODE_COVERAGE_CFLAGS) + $(CODE_COVERAGE_CFLAGS) \ + $(NULL) liborg_gnome_templates_la_SOURCES = templates.c @@ -26,7 +26,7 @@ liborg_gnome_templates_la_LIBADD = \ $(top_builddir)/libemail-engine/libemail-engine.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) \ - $(GTKHTML_LIBS) + $(NULL) EXTRA_DIST = org-gnome-templates.eplug.xml diff --git a/plugins/templates/templates.c b/plugins/templates/templates.c index 0a50178044..e3883a1fbe 100644 --- a/plugins/templates/templates.c +++ b/plugins/templates/templates.c @@ -1385,13 +1385,13 @@ gboolean init_composer_actions (GtkUIManager *ui_manager, EMsgComposer *composer) { - GtkhtmlEditor *editor; + EHTMLEditor *editor; - editor = GTKHTML_EDITOR (composer); + editor = e_msg_composer_get_editor (composer); /* Add actions to the "composer" action group. */ gtk_action_group_add_actions ( - gtkhtml_editor_get_action_group (editor, "composer"), + e_html_editor_get_action_group (editor, "composer"), composer_entries, G_N_ELEMENTS (composer_entries), composer); return TRUE; |