diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-11-09 21:48:33 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-01-25 23:28:26 +0800 |
commit | 753c60fc67a0a56a5f119c14ffa54ea9af95c208 (patch) | |
tree | 68b53c740bcbd3cff0f863ba72a5a2b3d49f3e56 /widgets/text/e-text.c | |
parent | dfc28aa9cefad63fb0fc926ce725f7cad8125cb0 (diff) | |
download | gsoc2013-evolution-753c60fc67a0a56a5f119c14ffa54ea9af95c208.tar.gz gsoc2013-evolution-753c60fc67a0a56a5f119c14ffa54ea9af95c208.tar.zst gsoc2013-evolution-753c60fc67a0a56a5f119c14ffa54ea9af95c208.zip |
Drop backward-compatibility cruft.
Diffstat (limited to 'widgets/text/e-text.c')
-rw-r--r-- | widgets/text/e-text.c | 7 |
1 files changed, 2 insertions, 5 deletions
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); |