diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-03-03 21:49:33 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-03-09 02:40:17 +0100 |
commit | 32b9aeaadd6dbd084344d97c573b0289c1584923 (patch) | |
tree | af4d372c3a024059821c797cdfceced7d466ddae /gtk/gtktoolbar.c | |
parent | b61fe506408c8ccd0ddb8ae67630ef2b942aac25 (diff) | |
download | gtk+-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/gtktoolbar.c')
-rw-r--r-- | gtk/gtktoolbar.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index 8f065a7f8a..a543791387 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -871,7 +871,7 @@ gtk_toolbar_expose (GtkWidget *widget, { gtk_paint_box (widget->style, widget->window, - GTK_WIDGET_STATE (widget), + gtk_widget_get_state (widget), get_shadow_type (toolbar), &event->area, widget, "toolbar", border_width + widget->allocation.x, @@ -4884,7 +4884,7 @@ _gtk_toolbar_paint_space_line (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, area, widget, "vseparator", allocation->x + (allocation->width - separator_width) / 2, allocation->y + allocation->height * start_fraction, @@ -4892,7 +4892,7 @@ _gtk_toolbar_paint_space_line (GtkWidget *widget, allocation->height * (end_fraction - start_fraction)); else gtk_paint_vline (widget->style, widget->window, - GTK_WIDGET_STATE (widget), area, widget, + gtk_widget_get_state (widget), area, widget, "toolbar", allocation->y + allocation->height * start_fraction, allocation->y + allocation->height * end_fraction, @@ -4910,7 +4910,7 @@ _gtk_toolbar_paint_space_line (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, area, widget, "hseparator", allocation->x + allocation->width * start_fraction, allocation->y + (allocation->height - separator_height) / 2, @@ -4918,7 +4918,7 @@ _gtk_toolbar_paint_space_line (GtkWidget *widget, separator_height); else gtk_paint_hline (widget->style, widget->window, - GTK_WIDGET_STATE (widget), area, widget, + gtk_widget_get_state (widget), area, widget, "toolbar", allocation->x + allocation->width * start_fraction, allocation->x + allocation->width * end_fraction, |