Bug #593896 - Menu > Search > Find now is always enabled (again)
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user