diff options
author | Benjamin Otte <otte@redhat.com> | 2010-05-23 23:27:15 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-05-23 23:27:15 +0200 |
commit | 821dd33918d80a28a7e47a2aaa2aaaf100b51c1b (patch) | |
tree | fe876ddb5fbf08140a9e0def07326e40829d35c3 /gtk/gtklabel.c | |
parent | dde9cf28820696c57c1249ca08e318222665987d (diff) | |
download | gtk+-821dd33918d80a28a7e47a2aaa2aaaf100b51c1b.tar.gz |
Deprecate the GdkRegion API
Includes fixing all callers to use the cairo region API instead. This is
usually just replacing the function names, the only difference is
gdk_region_get_rectangles() being replaced by
cairo_region_num_rectangles() and cairo_region_get_rectangle() which
required a bit more work.
https://bugzilla.gnome.org/show_bug.cgi?id=613284
Diffstat (limited to 'gtk/gtklabel.c')
-rw-r--r-- | gtk/gtklabel.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 10e5850c36..216e3004a8 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -3597,7 +3597,7 @@ gtk_label_expose (GtkWidget *widget, x, y, range, 1); - gdk_region_intersect (clip, event->region); + cairo_region_intersect (clip, event->region); /* FIXME should use gtk_paint, but it can't use a clip * region @@ -3618,7 +3618,7 @@ gtk_label_expose (GtkWidget *widget, &widget->style->base[state]); gdk_gc_set_clip_region (widget->style->black_gc, NULL); - gdk_region_destroy (clip); + cairo_region_destroy (clip); } else if (info) { @@ -3668,7 +3668,7 @@ gtk_label_expose (GtkWidget *widget, gdk_color_free (visited_link_color); gdk_gc_set_clip_region (widget->style->black_gc, NULL); - gdk_region_destroy (clip); + cairo_region_destroy (clip); } if (focus_link && gtk_widget_has_focus (widget)) @@ -3680,13 +3680,13 @@ gtk_label_expose (GtkWidget *widget, x, y, range, 1); - gdk_region_get_clipbox (clip, &rect); + cairo_region_get_extents (clip, &rect); gtk_paint_focus (widget->style, widget->window, gtk_widget_get_state (widget), &event->area, widget, "label", rect.x, rect.y, rect.width, rect.height); - gdk_region_destroy (clip); + cairo_region_destroy (clip); } } } |