aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-11-09 21:48:33 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-01-25 23:28:26 +0800
commit753c60fc67a0a56a5f119c14ffa54ea9af95c208 (patch)
tree68b53c740bcbd3cff0f863ba72a5a2b3d49f3e56 /widgets/text
parentdfc28aa9cefad63fb0fc926ce725f7cad8125cb0 (diff)
downloadgsoc2013-evolution-753c60fc67a0a56a5f119c14ffa54ea9af95c208.tar
gsoc2013-evolution-753c60fc67a0a56a5f119c14ffa54ea9af95c208.tar.gz
gsoc2013-evolution-753c60fc67a0a56a5f119c14ffa54ea9af95c208.tar.bz2
gsoc2013-evolution-753c60fc67a0a56a5f119c14ffa54ea9af95c208.tar.lz
gsoc2013-evolution-753c60fc67a0a56a5f119c14ffa54ea9af95c208.tar.xz
gsoc2013-evolution-753c60fc67a0a56a5f119c14ffa54ea9af95c208.tar.zst
gsoc2013-evolution-753c60fc67a0a56a5f119c14ffa54ea9af95c208.zip
Drop backward-compatibility cruft.
Diffstat (limited to 'widgets/text')
-rw-r--r--widgets/text/e-reflow.c3
-rw-r--r--widgets/text/e-text.c7
2 files changed, 2 insertions, 8 deletions
diff --git a/widgets/text/e-reflow.c b/widgets/text/e-reflow.c
index 5eb31cae8b..535d468450 100644
--- a/widgets/text/e-reflow.c
+++ b/widgets/text/e-reflow.c
@@ -37,9 +37,6 @@
#include "e-reflow.h"
#include "misc/e-selection-model-simple.h"
-/* backward-compatibility cruft */
-#include "e-util/gtk-compat.h"
-
static gboolean e_reflow_event (GnomeCanvasItem *item, GdkEvent *event);
static void e_reflow_realize (GnomeCanvasItem *item);
static void e_reflow_unrealize (GnomeCanvasItem *item);
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index c6d3d81502..d2c5d846ba 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -55,9 +55,6 @@
#include "e-text.h"
-/* backward-compatibility cruft */
-#include "e-util/gtk-compat.h"
-
G_DEFINE_TYPE (EText, e_text, GNOME_TYPE_CANVAS_ITEM)
#define BORDER_INDENT 3
@@ -1481,7 +1478,7 @@ e_text_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
if (text->editing) {
if (text->selection_start != text->selection_end) {
- GdkRegion *clip_region = gdk_region_new ();
+ cairo_region_t *clip_region = cairo_region_create ();
gint indices[2];
GtkStateType state;
@@ -1499,7 +1496,7 @@ e_text_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
indices, 1);
gdk_cairo_region (cr, clip_region);
cairo_clip (cr);
- gdk_region_destroy (clip_region);
+ cairo_region_destroy (clip_region);
gdk_cairo_set_source_color (cr, &style->base[state]);
cairo_paint (cr);