aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-hinted-entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc/e-hinted-entry.c')
-rw-r--r--widgets/misc/e-hinted-entry.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/misc/e-hinted-entry.c b/widgets/misc/e-hinted-entry.c
index 0b9708ab60..24bac0087c 100644
--- a/widgets/misc/e-hinted-entry.c
+++ b/widgets/misc/e-hinted-entry.c
@@ -290,7 +290,11 @@ e_hinted_entry_set_text (EHintedEntry *entry,
if (text == NULL)
text = "";
+#if GTK_CHECK_VERSION(2,19,7)
+ if (*text == '\0' && !gtk_widget_has_focus (GTK_WIDGET (entry)))
+#else
if (*text == '\0' && !GTK_WIDGET_HAS_FOCUS (entry))
+#endif
hinted_entry_show_hint (entry);
else {
hinted_entry_hide_hint (entry);