diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-02-28 15:03:02 -0500 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-02-28 15:06:33 -0500 |
commit | a77eba5de42930b43989b0df58fe2680f6834a1d (patch) | |
tree | 68931050561082e47110a90e4592260af8126454 /gtk/gtkcellrendereraccel.c | |
parent | 7542567553958e834d2e66de844c6def1fcdd6de (diff) | |
download | gtk+-a77eba5de42930b43989b0df58fe2680f6834a1d.tar.gz |
cellrendereraccel: override background on the event box, not the label
Since that's what renders the background. Otherwise the event box will
get the regular window background and will look bad.
Diffstat (limited to 'gtk/gtkcellrendereraccel.c')
-rw-r--r-- | gtk/gtkcellrendereraccel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcellrendereraccel.c b/gtk/gtkcellrendereraccel.c index 727748f890..7143c47380 100644 --- a/gtk/gtkcellrendereraccel.c +++ b/gtk/gtkcellrendereraccel.c @@ -726,7 +726,7 @@ gtk_cell_renderer_accel_start_editing (GtkCellRenderer *cell, gtk_widget_set_valign (label, GTK_ALIGN_CENTER); gtk_style_context_get_background_color (context, GTK_STATE_FLAG_SELECTED, &color); - gtk_widget_override_background_color (label, 0, &color); + gtk_widget_override_background_color (eventbox, 0, &color); gtk_style_context_get_color (context, GTK_STATE_FLAG_SELECTED, &color); gtk_widget_override_color (label, 0, &color); |