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/gtktextutil.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/gtktextutil.c')
-rw-r--r-- | gtk/gtktextutil.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtktextutil.c b/gtk/gtktextutil.c index 3995bd174b..95e9d7dd0a 100644 --- a/gtk/gtktextutil.c +++ b/gtk/gtktextutil.c @@ -242,14 +242,14 @@ _gtk_text_util_create_drag_icon (GtkWidget *widget, -1); gdk_draw_rectangle (drawable, - widget->style->base_gc [GTK_WIDGET_STATE (widget)], + widget->style->base_gc [gtk_widget_get_state (widget)], TRUE, 0, 0, pixmap_width + 1, pixmap_height + 1); gdk_draw_layout (drawable, - widget->style->text_gc [GTK_WIDGET_STATE (widget)], + widget->style->text_gc [gtk_widget_get_state (widget)], 1 + DRAG_ICON_LAYOUT_BORDER, 1 + DRAG_ICON_LAYOUT_BORDER, layout); @@ -357,14 +357,14 @@ _gtk_text_util_create_rich_drag_icon (GtkWidget *widget, pixmap_width + 2, pixmap_height + 2, -1); gdk_draw_rectangle (drawable, - widget->style->base_gc [GTK_WIDGET_STATE (widget)], + widget->style->base_gc [gtk_widget_get_state (widget)], TRUE, 0, 0, pixmap_width + 1, pixmap_height + 1); gtk_text_layout_draw (layout, widget, drawable, - widget->style->text_gc [GTK_WIDGET_STATE (widget)], + widget->style->text_gc [gtk_widget_get_state (widget)], - (1 + DRAG_ICON_LAYOUT_BORDER), - (1 + DRAG_ICON_LAYOUT_BORDER), 0, 0, |