summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-12-25 12:36:43 +0300
committerMonsta <[email protected]>2015-12-25 12:36:43 +0300
commite40f2501308a1edd71bc555f7f227d06cd083f34 (patch)
tree8b8368179642f1cfef98fcfa8c0bde18540fa26f
parentfa1422db50c6b1c7bb5264aa94134cfc2b4da5be (diff)
downloadpluma-e40f2501308a1edd71bc555f7f227d06cd083f34.tar.bz2
pluma-e40f2501308a1edd71bc555f7f227d06cd083f34.tar.xz
view: use "entry state" term, not "entry background"
-rw-r--r--pluma/pluma-view.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/pluma/pluma-view.c b/pluma/pluma-view.c
index 4a0522e0..2bbc3d52 100644
--- a/pluma/pluma-view.c
+++ b/pluma/pluma-view.c
@@ -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,13 +896,13 @@ run_search (PlumaView *view,
{
pluma_view_scroll_to_cursor (view);
- set_entry_background (view->priv->search_entry,
- PLUMA_SEARCH_ENTRY_NORMAL);
+ set_entry_state (view->priv->search_entry,
+ PLUMA_SEARCH_ENTRY_NORMAL);
}
else
{
- set_entry_background (view->priv->search_entry,
- PLUMA_SEARCH_ENTRY_NOT_FOUND);
+ set_entry_state (view->priv->search_entry,
+ PLUMA_SEARCH_ENTRY_NOT_FOUND);
}
return found;
@@ -1764,11 +1764,11 @@ search_init (GtkWidget *entry,
pluma_view_scroll_to_cursor (view);
if (!moved || !moved_offset)
- set_entry_background (view->priv->search_entry,
- PLUMA_SEARCH_ENTRY_NOT_FOUND);
+ set_entry_state (view->priv->search_entry,
+ PLUMA_SEARCH_ENTRY_NOT_FOUND);
else
- set_entry_background (view->priv->search_entry,
- PLUMA_SEARCH_ENTRY_NORMAL);
+ set_entry_state (view->priv->search_entry,
+ PLUMA_SEARCH_ENTRY_NORMAL);
}
}
}