diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-01-09 20:37:32 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-13 15:05:43 +0100 |
commit | 7a2f6641563b525bf32c18a2e52ac290f06c9a53 (patch) | |
tree | b681792f90e38799a5ad56568fbee0fcd2cee9c9 /eel | |
parent | de1bef38ac1fb7e33bf3742200635870eb22ae2e (diff) | |
download | caja-7a2f6641563b525bf32c18a2e52ac290f06c9a53.tar.bz2 caja-7a2f6641563b525bf32c18a2e52ac290f06c9a53.tar.xz |
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
Diffstat (limited to 'eel')
-rw-r--r-- | eel/eel-editable-label.c | 4 |
1 files changed, 4 insertions, 0 deletions
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(). |