summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-09 20:43:28 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-13 15:05:43 +0100
commitd430735d425443f9fbfd301b4ece46c1058281eb (patch)
treebf714d9025e677059647b5cc108766298124257f
parentd1c10a0a832731f81db1c627c07fe5d750543294 (diff)
downloadcaja-d430735d425443f9fbfd301b4ece46c1058281eb.tar.bz2
caja-d430735d425443f9fbfd301b4ece46c1058281eb.tar.xz
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
-rw-r--r--eel/eel-editable-label.c13
1 files 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)
{