summaryrefslogtreecommitdiffstats
path: root/src/widgets/gradient-image.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2011-06-15 00:13:10 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2011-06-15 00:13:10 +0000
commit2402528197627887e374dd2a4269dfdeb19acc58 (patch)
treeac12688f130585af0288478c9850dddd57301d9b /src/widgets/gradient-image.cpp
parentRemove deprecated glib macro wrappers (diff)
downloadinkscape-2402528197627887e374dd2a4269dfdeb19acc58.tar.gz
inkscape-2402528197627887e374dd2a4269dfdeb19acc58.zip
Clean up deprecated GTK_WIDGET API
(bzr r10302.1.2)
Diffstat (limited to 'src/widgets/gradient-image.cpp')
-rw-r--r--src/widgets/gradient-image.cpp6
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));
}
}