diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-10-16 03:45:04 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-10-16 03:45:38 +0200 |
commit | 10c05a2422ac889b042482a8d0350d692d24c5bb (patch) | |
tree | a62263aed697d555c97fccf5c1d928f2a193d724 | |
parent | 8fb2ce29cf2c493db2d213fc291a8903b05a67f7 (diff) | |
download | tdv-10c05a2422ac889b042482a8d0350d692d24c5bb.tar.gz tdv-10c05a2422ac889b042482a8d0350d692d24c5bb.tar.xz tdv-10c05a2422ac889b042482a8d0350d692d24c5bb.zip |
sdgui: clean-up
It doesn't seem like we'll want to remember the position.
-rw-r--r-- | src/sdgui.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sdgui.c b/src/sdgui.c index 3565bc6..c547760 100644 --- a/src/sdgui.c +++ b/src/sdgui.c @@ -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); } |