is_selected argument to get_text can just be NULL

This commit is contained in:
Daniel Micay 2012-06-06 21:06:24 -04:00
parent 564b21c2dc
commit 8a4e9f7762
1 changed files with 1 additions and 6 deletions

View File

@ -31,10 +31,6 @@ typedef struct search_panel_info {
enum overlay_mode mode; enum overlay_mode mode;
} search_panel_info; } search_panel_info;
static gboolean always_selected() {
return TRUE;
}
static gboolean add_to_list_store(char *key, static gboolean add_to_list_store(char *key,
__attribute__((unused)) void *value, __attribute__((unused)) void *value,
GtkListStore *store) { GtkListStore *store) {
@ -49,8 +45,7 @@ static GtkTreeModel *create_completion_model(VteTerminal *vte) {
// TODO: get the full buffer // TODO: get the full buffer
gchar *content = vte_terminal_get_text(vte, gchar *content = vte_terminal_get_text(vte,
(VteSelectionFunc)always_selected, NULL, NULL, NULL);
NULL, NULL);
if (!content) { if (!content) {
g_printerr("no content"); g_printerr("no content");