view: use "entry state" term, not "entry background"

This commit is contained in:
Monsta 2015-12-25 12:36:43 +03:00
parent fa1422db50
commit e40f250130
1 changed files with 12 additions and 12 deletions

View File

@ -173,7 +173,7 @@ typedef enum
{
PLUMA_SEARCH_ENTRY_NORMAL,
PLUMA_SEARCH_ENTRY_NOT_FOUND
} PlumaSearchEntryBgColor;
} PlumaSearchEntryState;
static void
document_read_only_notify_handler (PlumaDocument *document,
@ -760,10 +760,10 @@ add_search_completion_entry (const gchar *str)
}
static void
set_entry_background (GtkWidget *entry,
PlumaSearchEntryBgColor col)
set_entry_state (GtkWidget *entry,
PlumaSearchEntryState state)
{
if (col == PLUMA_SEARCH_ENTRY_NOT_FOUND)
if (state == PLUMA_SEARCH_ENTRY_NOT_FOUND)
{
GdkColor red;
GdkColor white;
@ -896,12 +896,12 @@ run_search (PlumaView *view,
{
pluma_view_scroll_to_cursor (view);
set_entry_background (view->priv->search_entry,
set_entry_state (view->priv->search_entry,
PLUMA_SEARCH_ENTRY_NORMAL);
}
else
{
set_entry_background (view->priv->search_entry,
set_entry_state (view->priv->search_entry,
PLUMA_SEARCH_ENTRY_NOT_FOUND);
}
@ -1764,10 +1764,10 @@ search_init (GtkWidget *entry,
pluma_view_scroll_to_cursor (view);
if (!moved || !moved_offset)
set_entry_background (view->priv->search_entry,
set_entry_state (view->priv->search_entry,
PLUMA_SEARCH_ENTRY_NOT_FOUND);
else
set_entry_background (view->priv->search_entry,
set_entry_state (view->priv->search_entry,
PLUMA_SEARCH_ENTRY_NORMAL);
}
}