sdgui: clean-up

It doesn't seem like we'll want to remember the position.
This commit is contained in:
Přemysl Eric Janouch 2021-10-16 03:45:04 +02:00
parent 8fb2ce29cf
commit 10c05a2422
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 2 additions and 4 deletions

View File

@ -33,7 +33,6 @@ struct dictionary
const gchar *filename; ///< Filename
StardictDict *dict; ///< Stardict dictionary data
gchar *name; ///< Name to show
guint position; ///< Current position
};
static struct
@ -94,11 +93,10 @@ search (Dictionary *dict)
StardictIterator *iterator =
stardict_dict_search (dict->dict, input_utf8, NULL);
dict->position = stardict_iterator_get_offset (iterator);
stardict_view_set_position (STARDICT_VIEW (g.view),
dict->dict, stardict_iterator_get_offset (iterator));
g_object_unref (iterator);
stardict_view_set_position (STARDICT_VIEW (g.view),
dict->dict, dict->position);
stardict_view_set_matched (STARDICT_VIEW (g.view), input_utf8);
}