From d430735d425443f9fbfd301b4ece46c1058281eb Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Sat, 9 Jan 2016 20:43:28 +0100 Subject: GTK3 editable-Label: render background Without this the rename widget background is always transparent, which makes it very hard to read on e.g. the desktop with a background image. taken from: https://git.gnome.org/browse/nautilus/commit/?id=c3b2b0a --- eel/eel-editable-label.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c index 4e1cbdf5..3edd68ef 100644 --- a/eel/eel-editable-label.c +++ b/eel/eel-editable-label.c @@ -1684,6 +1684,11 @@ eel_editable_label_draw (GtkWidget *widget, label = EEL_EDITABLE_LABEL (widget); style = gtk_widget_get_style_context (widget); + gtk_render_background (style, cr, + 0, 0, + gtk_widget_get_allocated_width (widget), + gtk_widget_get_allocated_height (widget)); + eel_editable_label_ensure_layout (label, TRUE); if (gtk_widget_get_visible (widget) && gtk_widget_get_mapped (widget) && @@ -1691,10 +1696,10 @@ eel_editable_label_draw (GtkWidget *widget, { get_layout_location (label, &x, &y); - gtk_render_layout (style, - cr, - x, y, - label->layout); + gtk_render_layout (style, + cr, + x, y, + label->layout); if (label->selection_anchor != label->selection_end) { -- cgit v1.2.1