commit c142b8962429347a3bc7a475da1978a5af8da1d7
parent 63b0d7d51cfcf782cb74d3c00b42195270960cf6
Author: Kyle Milz <kmilz@ucalgary.ca>
Date: Sun, 14 Oct 2012 16:56:00 -0600
some misc one liners
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/commands.c b/src/commands.c
@@ -40,7 +40,7 @@ complete(const Arg *arg, void *data)
printf("\tprefix found, current = %i, num matches = %i\n", current, eina_list_count(matches));
if (arg->i != HideCompletion && widgets && current != -1 && !strcmp(&match[0],
eina_list_nth(matches, current))) {
- elm_object_style_set(eina_list_nth(widgets, current), "normal");
+ elm_object_style_set(eina_list_nth(widgets, current), "default");
current = (n + current + (arg->i == DirectionPrev ? -1 : 1)) % n;
if ((arg->i == DirectionNext && current == 0)
|| (arg->i == DirectionPrev && current == n - 1))
@@ -123,15 +123,15 @@ complete(const Arg *arg, void *data)
evas_object_show(wd->event_box);
if (!n)
return EINA_TRUE;
- current = arg->i == DirectionPrev ? n - 1 : 0;
+ current = arg->i == DirectionPrev ? n - 1 : 0;
}
- if (current != -1) {
+ if (current != -1) {
Eina_Strbuf *suggestion = eina_strbuf_new();
eina_strbuf_append_printf(suggestion, "%s", (char*)eina_list_nth(matches, current));
elm_entry_entry_set(wd->url, eina_strbuf_string_get(suggestion));
- elm_object_style_set(eina_list_nth(matches, current), "highlighted");
- } else
+ elm_object_style_set(eina_list_nth(widgets, current), "highlighted");
+ } else
elm_entry_entry_set(wd->url, prefix);
elm_entry_cursor_end_set(wd->url);