diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-10-22 10:10:19 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-10-22 10:10:19 +0200 |
commit | cf8ea2649811bc9736e547eae8f74ecfdf5f6757 (patch) | |
tree | 7b7a0efe219d35e9c6b910ff3da04d22732d1814 /src/fe-gtk | |
parent | a05817c0ebc1db2512fa42b3949554647d36ab48 (diff) |
Variable cleanup for completion_*
Diffstat (limited to 'src/fe-gtk')
-rw-r--r-- | src/fe-gtk/fkeys.c | 8 | ||||
-rw-r--r-- | src/fe-gtk/setup.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/fe-gtk/fkeys.c b/src/fe-gtk/fkeys.c index bca87dd3..0e24e24f 100644 --- a/src/fe-gtk/fkeys.c +++ b/src/fe-gtk/fkeys.c @@ -1458,7 +1458,7 @@ key_action_tab_comp (GtkWidget *t, GdkEventKey *entry, char *d1, char *d2, cursor_pos = g_utf8_pointer_to_offset(text, ch); if (cursor_pos && (g_utf8_get_char_validated(ch, -1) == ':' || g_utf8_get_char_validated(ch, -1) == ',' || - g_utf8_get_char_validated(ch, -1) == prefs.nick_suffix[0])) + g_utf8_get_char_validated(ch, -1) == prefs.hex_completion_suffix[0])) { skip_len++; } @@ -1511,7 +1511,7 @@ key_action_tab_comp (GtkWidget *t, GdkEventKey *entry, char *d1, char *d2, { gcomp = g_completion_new((GCompletionFunc)gcomp_nick_func); tmp_list = userlist_double_list(sess); /* create a temp list so we can free the memory */ - if (prefs.completion_sort == 1) /* sort in last-talk order? */ + if (prefs.hex_completion_sort == 1) /* sort in last-talk order? */ tmp_list = g_list_sort (tmp_list, (void *)talked_recent_cmp); } else @@ -1595,7 +1595,7 @@ key_action_tab_comp (GtkWidget *t, GdkEventKey *entry, char *d1, char *d2, old_gcomp.elen = elen; /* Get the first nick and put out the data for future nickcompletes */ - if (prefs.completion_amount && g_list_length (list) <= prefs.completion_amount) + if (prefs.hex_completion_amount && g_list_length (list) <= prefs.hex_completion_amount) { g_free(result); result = (char*)list->data; @@ -1658,7 +1658,7 @@ key_action_tab_comp (GtkWidget *t, GdkEventKey *entry, char *d1, char *d2, g_utf8_strncpy(buf, text, prefix_len); strncat (buf, result, COMP_BUF - (prefix_len + 3)); /* make sure nicksuffix and space fits */ if(!prefix_len && is_nick) - strcat (buf, &prefs.nick_suffix[0]); + strcat (buf, &prefs.hex_completion_suffix[0]); strcat (buf, " "); cursor_pos = strlen (buf); if (postfix) diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c index 785a0bac..1178b5ce 100644 --- a/src/fe-gtk/setup.c +++ b/src/fe-gtk/setup.c @@ -224,10 +224,10 @@ static const setting inputbox_settings[] = #endif {ST_HEADER, N_("Nick Completion"),0,0,0}, - {ST_TOGGLE, N_("Automatic nick completion (without TAB key)"), P_OFFINTNL(nickcompletion), + {ST_TOGGLE, N_("Automatic nick completion (without TAB key)"), P_OFFINTNL(hex_completion_auto), 0,0,0}, - {ST_ENTRY, N_("Nick completion suffix:"), P_OFFSETNL(nick_suffix),0,0,sizeof prefs.nick_suffix}, - {ST_MENU, N_("Nick completion sorted:"), P_OFFINTNL(completion_sort), 0, tabcompmenu, 0}, + {ST_ENTRY, N_("Nick completion suffix:"), P_OFFSETNL(hex_completion_suffix),0,0,sizeof prefs.hex_completion_suffix}, + {ST_MENU, N_("Nick completion sorted:"), P_OFFINTNL(hex_completion_sort), 0, tabcompmenu, 0}, #if 0 /* obsolete */ {ST_HEADER, N_("Input Box Codes"),0,0,0}, |