aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-11-09 21:48:33 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:25 +0800
commita3ba231fcc2746e664a67c85d88eb49a64813989 (patch)
tree7de1b38c8b1b467a0bf9c257a072e5e02a2671c5 /widgets/text
parent968717967398ab7e537aa27d3241b326447a180f (diff)
downloadgsoc2013-evolution-a3ba231fcc2746e664a67c85d88eb49a64813989.tar.gz
gsoc2013-evolution-a3ba231fcc2746e664a67c85d88eb49a64813989.tar.zst
gsoc2013-evolution-a3ba231fcc2746e664a67c85d88eb49a64813989.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);