summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-03-03 21:49:33 +0100
committerJavier Jardón <jjardon@gnome.org>2010-03-09 02:40:17 +0100
commit32b9aeaadd6dbd084344d97c573b0289c1584923 (patch)
treeaf4d372c3a024059821c797cdfceced7d466ddae /examples
parentb61fe506408c8ccd0ddb8ae67630ef2b942aac25 (diff)
downloadgdk-pixbuf-32b9aeaadd6dbd084344d97c573b0289c1584923.tar.gz
Don't use GTK_WIDGET_STATE in internal code anymore
Use gtk_widget_get/set_state() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
Diffstat (limited to 'examples')
-rw-r--r--examples/scribble-simple/scribble-simple.c2
-rw-r--r--examples/scribble-xinput/scribble-xinput.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/scribble-simple/scribble-simple.c b/examples/scribble-simple/scribble-simple.c
index 069eea1b8..a0cfc210e 100644
--- a/examples/scribble-simple/scribble-simple.c
+++ b/examples/scribble-simple/scribble-simple.c
@@ -50,7 +50,7 @@ static gboolean expose_event( GtkWidget *widget,
GdkEventExpose *event )
{
gdk_draw_drawable (widget->window,
- widget->style->fg_gc[GTK_WIDGET_STATE (widget)],
+ widget->style->fg_gc[gtk_widget_get_state (widget)],
pixmap,
event->area.x, event->area.y,
event->area.x, event->area.y,
diff --git a/examples/scribble-xinput/scribble-xinput.c b/examples/scribble-xinput/scribble-xinput.c
index 697969e61..469ee31ba 100644
--- a/examples/scribble-xinput/scribble-xinput.c
+++ b/examples/scribble-xinput/scribble-xinput.c
@@ -49,7 +49,7 @@ static gboolean
expose_event (GtkWidget *widget, GdkEventExpose *event)
{
gdk_draw_drawable (widget->window,
- widget->style->fg_gc[GTK_WIDGET_STATE (widget)],
+ widget->style->fg_gc[gtk_widget_get_state (widget)],
pixmap,
event->area.x, event->area.y,
event->area.x, event->area.y,
@@ -70,7 +70,7 @@ draw_brush (GtkWidget *widget, GdkInputSource source,
switch (source)
{
case GDK_SOURCE_MOUSE:
- gc = widget->style->dark_gc[GTK_WIDGET_STATE (widget)];
+ gc = widget->style->dark_gc[gtk_widget_get_state (widget)];
break;
case GDK_SOURCE_PEN:
gc = widget->style->black_gc;
@@ -79,7 +79,7 @@ draw_brush (GtkWidget *widget, GdkInputSource source,
gc = widget->style->white_gc;
break;
default:
- gc = widget->style->light_gc[GTK_WIDGET_STATE (widget)];
+ gc = widget->style->light_gc[gtk_widget_get_state (widget)];
}
update_rect.x = x - 10 * pressure;