diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-03-01 04:21:41 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-03-01 06:11:01 +0100 |
commit | 4232115e22c8ea41d6a3faf89bcaadfc9933d5e3 (patch) | |
tree | c9852655f9f10b27287cd09ae61082c033ca43c6 /gtk/gtkstyle.c | |
parent | 64f526d34e1adc609944078e2fea38b2792f8230 (diff) | |
download | gtk+-4232115e22c8ea41d6a3faf89bcaadfc9933d5e3.tar.gz |
Deprecate widget flag: GTK_WIDGET_HAS_FOCUS
Use gtk_widget_has_focus() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
Diffstat (limited to 'gtk/gtkstyle.c')
-rw-r--r-- | gtk/gtkstyle.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index 0d2f0633f2..803923de35 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -3534,7 +3534,7 @@ gtk_default_draw_box (GtkStyle *style, if (state_type == GTK_STATE_SELECTED && detail && strcmp (detail, "paned") == 0) { - if (widget && !GTK_WIDGET_HAS_FOCUS (widget)) + if (widget && !gtk_widget_has_focus (widget)) gc = style->base_gc[GTK_STATE_ACTIVE]; } @@ -3658,7 +3658,7 @@ gtk_default_draw_flat_box (GtkStyle *style, !strcmp ("cell_even_ruled_sorted", detail)) { /* This has to be really broken; alex made me do it. -jrb */ - if (widget && GTK_WIDGET_HAS_FOCUS (widget)) + if (widget && gtk_widget_has_focus (widget)) gc1 = style->base_gc[state_type]; else gc1 = style->base_gc[GTK_STATE_ACTIVE]; @@ -3666,7 +3666,7 @@ gtk_default_draw_flat_box (GtkStyle *style, else if (!strcmp ("cell_odd_ruled", detail) || !strcmp ("cell_odd_ruled_sorted", detail)) { - if (widget && GTK_WIDGET_HAS_FOCUS (widget)) + if (widget && gtk_widget_has_focus (widget)) freeme = get_darkened_gc (window, &style->base[state_type], 1); else freeme = get_darkened_gc (window, &style->base[GTK_STATE_ACTIVE], 1); @@ -4916,7 +4916,7 @@ gtk_default_draw_handle (GtkStyle *style, xthick = 0; ythick = 0; - if (state_type == GTK_STATE_SELECTED && widget && !GTK_WIDGET_HAS_FOCUS (widget)) + if (state_type == GTK_STATE_SELECTED && widget && !gtk_widget_has_focus (widget)) { GdkColor unfocused_light; |