From 7a2f6641563b525bf32c18a2e52ac290f06c9a53 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Sat, 9 Jan 2016 20:37:32 +0100 Subject: GTK3 editable-label: use GTK_STYLE_CLASS_ENTRY Because that's what it is actually... taken from: https://git.gnome.org/browse/nautilus/commit/?id=e54ace0 --- eel/eel-editable-label.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c index 7414c19c..834f2d1a 100644 --- a/eel/eel-editable-label.c +++ b/eel/eel-editable-label.c @@ -644,6 +644,10 @@ eel_editable_label_init (EelEditableLabel *label) label->n_bytes = 0; gtk_widget_set_can_focus (GTK_WIDGET (label), TRUE); +#if GTK_CHECK_VERSION(3,0,0) + gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (label)), + GTK_STYLE_CLASS_ENTRY); +#endif /* This object is completely private. No external entity can gain a reference * to it; so we create it here and destroy it in finalize(). -- cgit v1.2.1