diff options
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/e-hinted-entry.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/misc/e-hinted-entry.c b/widgets/misc/e-hinted-entry.c index 2851d75fa1..0b9708ab60 100644 --- a/widgets/misc/e-hinted-entry.c +++ b/widgets/misc/e-hinted-entry.c @@ -41,12 +41,12 @@ static gpointer parent_class; static void hinted_entry_hide_hint (EHintedEntry *entry) { + entry->priv->hint_shown = FALSE; + gtk_entry_set_text (GTK_ENTRY (entry), ""); gtk_widget_modify_text (GTK_WIDGET (entry), GTK_STATE_NORMAL, NULL); - entry->priv->hint_shown = FALSE; - g_object_notify (G_OBJECT (entry), "hint-shown"); } @@ -57,6 +57,8 @@ hinted_entry_show_hint (EHintedEntry *entry) const GdkColor *color; const gchar *hint; + entry->priv->hint_shown = TRUE; + hint = e_hinted_entry_get_hint (entry); gtk_entry_set_text (GTK_ENTRY (entry), hint); @@ -64,8 +66,6 @@ hinted_entry_show_hint (EHintedEntry *entry) color = &style->text[GTK_STATE_INSENSITIVE]; gtk_widget_modify_text (GTK_WIDGET (entry), GTK_STATE_NORMAL, color); - entry->priv->hint_shown = TRUE; - g_object_notify (G_OBJECT (entry), "hint-shown"); } |