summaryrefslogtreecommitdiff
path: root/gtk/gtkseparator.c
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 /gtk/gtkseparator.c
parentb61fe506408c8ccd0ddb8ae67630ef2b942aac25 (diff)
downloadgtk+-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 'gtk/gtkseparator.c')
-rw-r--r--gtk/gtkseparator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkseparator.c b/gtk/gtkseparator.c
index a172240f64..b382c7d050 100644
--- a/gtk/gtkseparator.c
+++ b/gtk/gtkseparator.c
@@ -197,7 +197,7 @@ gtk_separator_expose (GtkWidget *widget,
{
if (wide_separators)
gtk_paint_box (widget->style, widget->window,
- GTK_WIDGET_STATE (widget), GTK_SHADOW_ETCHED_OUT,
+ gtk_widget_get_state (widget), GTK_SHADOW_ETCHED_OUT,
&event->area, widget, "hseparator",
widget->allocation.x,
widget->allocation.y + (widget->allocation.height -
@@ -206,7 +206,7 @@ gtk_separator_expose (GtkWidget *widget,
separator_height);
else
gtk_paint_hline (widget->style, widget->window,
- GTK_WIDGET_STATE (widget),
+ gtk_widget_get_state (widget),
&event->area, widget, "hseparator",
widget->allocation.x,
widget->allocation.x + widget->allocation.width - 1,
@@ -217,7 +217,7 @@ gtk_separator_expose (GtkWidget *widget,
{
if (wide_separators)
gtk_paint_box (widget->style, widget->window,
- GTK_WIDGET_STATE (widget), GTK_SHADOW_ETCHED_OUT,
+ gtk_widget_get_state (widget), GTK_SHADOW_ETCHED_OUT,
&event->area, widget, "vseparator",
widget->allocation.x + (widget->allocation.width -
separator_width) / 2,
@@ -226,7 +226,7 @@ gtk_separator_expose (GtkWidget *widget,
widget->allocation.height);
else
gtk_paint_vline (widget->style, widget->window,
- GTK_WIDGET_STATE (widget),
+ gtk_widget_get_state (widget),
&event->area, widget, "vseparator",
widget->allocation.y,
widget->allocation.y + widget->allocation.height - 1,