#include <config.h>
-#include <glib/gi18n-lib.h>
-
#include <gtk/gtk.h>
#include <modest-text-utils.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#include <modest-ui-constants.h>
+#include <modest-toolkit-factory.h>
+#include <modest-runtime.h>
/* FIXNE: we should have no maemo-deps in widgets/ */
#ifndef MODEST_TOOLKIT_GTK
gboolean select_to_left;
gboolean has_selection;
- buffer = modest_text_view_get_buffer (text_view);
+ buffer = modest_text_view_get_buffer (GTK_WIDGET (text_view));
insert = gtk_text_buffer_get_insert (buffer);
selection = gtk_text_buffer_get_selection_bound (buffer);