aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-12-21 19:35:03 +0800
committerMilan Crha <mcrha@redhat.com>2009-12-21 19:35:03 +0800
commit90ee277703555554e7853214ef675b68dbfb506b (patch)
tree452640b319be9562aef3bda9512d522893e09a9f /widgets/misc
parent35fec013258605bba2499514a4e5336a9649611f (diff)
downloadgsoc2013-evolution-90ee277703555554e7853214ef675b68dbfb506b.tar.gz
gsoc2013-evolution-90ee277703555554e7853214ef675b68dbfb506b.tar.zst
gsoc2013-evolution-90ee277703555554e7853214ef675b68dbfb506b.zip
Bug #593896 - Menu > Search > Find now is always enabled (again)
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-hinted-entry.c8
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");
}