diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2011-06-15 00:16:48 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2011-06-15 00:16:48 +0000 |
| commit | 901027a9b2ef18744d9fef25723018226c80809d (patch) | |
| tree | 1e3b3e1334421c6db927ad01f27ae9528fd80f7e /src/widgets/gradient-image.cpp | |
| parent | Remove deprecated glib macro wrappers (diff) | |
| parent | Clean up deprecated GTK_WIDGET API (diff) | |
| download | inkscape-901027a9b2ef18744d9fef25723018226c80809d.tar.gz inkscape-901027a9b2ef18744d9fef25723018226c80809d.zip | |
Clean up deprecated GTK_WIDGET API
(bzr r10305)
Diffstat (limited to 'src/widgets/gradient-image.cpp')
| -rw-r--r-- | src/widgets/gradient-image.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/gradient-image.cpp b/src/widgets/gradient-image.cpp index 62a063755..f3a471bfc 100644 --- a/src/widgets/gradient-image.cpp +++ b/src/widgets/gradient-image.cpp @@ -165,7 +165,7 @@ sp_gradient_image_size_allocate (GtkWidget *widget, GtkAllocation *allocation) widget->allocation = *allocation; - if (GTK_WIDGET_REALIZED (widget)) { + if (gtk_widget_get_realized (widget)) { g_free (image->px); image->px = g_new (guchar, 3 * VBLOCK * allocation->width); } @@ -180,7 +180,7 @@ sp_gradient_image_expose (GtkWidget *widget, GdkEventExpose *event) image = SP_GRADIENT_IMAGE (widget); - if (GTK_WIDGET_DRAWABLE (widget)) { + if (gtk_widget_is_drawable (widget)) { gint x0, y0, x1, y1; x0 = MAX (event->area.x, widget->allocation.x); y0 = MAX (event->area.y, widget->allocation.y); @@ -288,7 +288,7 @@ sp_gradient_image_update (SPGradientImage *image) nr_pixblock_release (&pb); } - if (GTK_WIDGET_DRAWABLE (image)) { + if (gtk_widget_is_drawable (GTK_WIDGET (image))) { gtk_widget_queue_draw (GTK_WIDGET (image)); } } |
