summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-01-07 16:47:35 +0100
committerJavier Jardón <jjardon@gnome.org>2010-03-01 04:55:55 +0100
commit4f78f70b15f861cca115f578b0f3f4ad3ad087e7 (patch)
tree87166fea7e72454f79e388c8fef075570e081d9c /tests
parent6a9d4d82031a3a51a0c0ac8197766b75cd38a0a4 (diff)
downloadgtk+-4f78f70b15f861cca115f578b0f3f4ad3ad087e7.tar.gz
Deprecate widget flag: GTK_WIDGET_DRAWABLE
Use gtk_widget_is_drawable() instead. https://bugzilla.gnome.org/show_bug.cgi?id=69872
Diffstat (limited to 'tests')
-rw-r--r--tests/gtkoffscreenbox.c2
-rw-r--r--tests/testgtk.c4
-rw-r--r--tests/testoffscreenwindow.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/gtkoffscreenbox.c b/tests/gtkoffscreenbox.c
index 14e3dbf088..e7fa941d92 100644
--- a/tests/gtkoffscreenbox.c
+++ b/tests/gtkoffscreenbox.c
@@ -572,7 +572,7 @@ gtk_offscreen_box_expose (GtkWidget *widget,
{
GtkOffscreenBox *offscreen_box = GTK_OFFSCREEN_BOX (widget);
- if (GTK_WIDGET_DRAWABLE (widget))
+ if (gtk_widget_is_drawable (widget))
{
if (event->window == widget->window)
{
diff --git a/tests/testgtk.c b/tests/testgtk.c
index be81cac6b5..05afc5d52f 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -11720,7 +11720,7 @@ progressbar_toggle_ellipsize (GtkWidget *widget,
gpointer data)
{
ProgressData *pdata = data;
- if (GTK_WIDGET_DRAWABLE (widget))
+ if (gtk_widget_is_drawable (widget))
{
gint i = gtk_option_menu_get_history (GTK_OPTION_MENU (widget));
gtk_progress_bar_set_ellipsize (GTK_PROGRESS_BAR (pdata->pbar), i);
@@ -12954,7 +12954,7 @@ scroll_test_adjustment_changed (GtkAdjustment *adj, GtkWidget *widget)
dy = scroll_test_pos - (int)adj->value;
scroll_test_pos = adj->value;
- if (!GTK_WIDGET_DRAWABLE (widget))
+ if (!gtk_widget_is_drawable (widget))
return;
gdk_window_scroll (widget->window, 0, dy);
gdk_window_process_updates (widget->window, FALSE);
diff --git a/tests/testoffscreenwindow.c b/tests/testoffscreenwindow.c
index 7358188fc0..852a073c49 100644
--- a/tests/testoffscreenwindow.c
+++ b/tests/testoffscreenwindow.c
@@ -9,7 +9,7 @@ da_expose (GtkWidget *widget,
GdkPixmap *pixmap;
cairo_t *cr;
- if (GTK_WIDGET_DRAWABLE (widget))
+ if (gtk_widget_is_drawable (widget))
{
pixmap = gtk_offscreen_window_get_pixmap (offscreen);