diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-01-07 16:47:35 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-03-01 04:55:55 +0100 |
commit | 4f78f70b15f861cca115f578b0f3f4ad3ad087e7 (patch) | |
tree | 87166fea7e72454f79e388c8fef075570e081d9c /gtk/gtkarrow.c | |
parent | 6a9d4d82031a3a51a0c0ac8197766b75cd38a0a4 (diff) | |
download | gtk+-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 'gtk/gtkarrow.c')
-rw-r--r-- | gtk/gtkarrow.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk/gtkarrow.c b/gtk/gtkarrow.c index e6fc3dc5ad..22a5870fe0 100644 --- a/gtk/gtkarrow.c +++ b/gtk/gtkarrow.c @@ -174,6 +174,8 @@ gtk_arrow_set (GtkArrow *arrow, GtkArrowType arrow_type, GtkShadowType shadow_type) { + GtkWidget *widget; + g_return_if_fail (GTK_IS_ARROW (arrow)); if ( ((GtkArrowType) arrow->arrow_type != arrow_type) @@ -195,8 +197,9 @@ gtk_arrow_set (GtkArrow *arrow, g_object_thaw_notify (G_OBJECT (arrow)); - if (GTK_WIDGET_DRAWABLE (arrow)) - gtk_widget_queue_draw (GTK_WIDGET (arrow)); + widget = GTK_WIDGET (arrow); + if (gtk_widget_is_drawable (widget)) + gtk_widget_queue_draw (widget); } } @@ -205,7 +208,7 @@ static gboolean gtk_arrow_expose (GtkWidget *widget, GdkEventExpose *event) { - if (GTK_WIDGET_DRAWABLE (widget)) + if (gtk_widget_is_drawable (widget)) { GtkArrow *arrow = GTK_ARROW (widget); GtkMisc *misc = GTK_MISC (widget); |