aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-20 04:12:05 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-21 12:27:38 (GMT)
commit8b74d10b2f659037b4cb2bae773fd18ed95e352a (patch)
treefc447b8bdbcfd472a5e2d43aa263feaa1f60edac
parent12d38d76208c5a8a230a898dfaa5938ec88c4c52 (diff)
get rid of deprecated GTK_WIDGET_STATE()
Use gtk_widget_get_state() instead. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--src/camorama-display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/camorama-display.c b/src/camorama-display.c
index 08d73a4..ad5c080 100644
--- a/src/camorama-display.c
+++ b/src/camorama-display.c
@@ -94,7 +94,7 @@ display_expose_event (GtkWidget * widget,
CamoDisplay* self = CAMO_DISPLAY (widget);
gdk_draw_drawable (widget->window,
- widget->style->fg_gc[GTK_WIDGET_STATE (widget)],
+ widget->style->fg_gc[gtk_widget_get_state (widget)],
self->_private->camera->pixmap,
event->area.x, event->area.y, event->area.x,
event->area.y, event->area.width, event->area.height);

Privacy Policy