[gtkglarea] examples/viewlw.c: Replace deprecated gtk_widget_draw()
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkglarea] examples/viewlw.c: Replace deprecated gtk_widget_draw()
- Date: Thu, 20 Mar 2014 16:53:23 +0000 (UTC)
commit afc87ab1278748524e00a2520511b40799590bc7
Author: Javier Jardón <javier jardon codethink co uk>
Date: Thu Mar 20 16:13:42 2014 +0000
examples/viewlw.c: Replace deprecated gtk_widget_draw()
examples/viewlw.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/examples/viewlw.c b/examples/viewlw.c
index 1b0d441..5dbb744 100644
--- a/examples/viewlw.c
+++ b/examples/viewlw.c
@@ -206,7 +206,7 @@ gint glarea_motion_notify(GtkWidget *widget, GdkEventMotion *event)
( area.height - 2.0*y) / area.height);
add_quats(spin_quat, info->quat, info->quat);
/* orientation has changed, redraw mesh */
- gtk_widget_draw(widget, &area);
+ gtk_widget_queue_draw_area (widget, area.x, area.y, area.width, area.height);
}
if (state & GDK_BUTTON2_MASK) {
@@ -215,7 +215,7 @@ gint glarea_motion_notify(GtkWidget *widget, GdkEventMotion *event)
if (info->zoom < 5) info->zoom = 5;
if (info->zoom > 120) info->zoom = 120;
/* zoom has changed, redraw mesh */
- gtk_widget_draw(widget, &area);
+ gtk_widget_queue_draw_area (widget, area.x, area.y, area.width, area.height);
}
info->beginx = x;
info->beginy = y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]