sdgui: clean-up
It doesn't seem like we'll want to remember the position.
This commit is contained in:
parent
8fb2ce29cf
commit
10c05a2422
|
@ -33,7 +33,6 @@ struct dictionary
|
||||||
const gchar *filename; ///< Filename
|
const gchar *filename; ///< Filename
|
||||||
StardictDict *dict; ///< Stardict dictionary data
|
StardictDict *dict; ///< Stardict dictionary data
|
||||||
gchar *name; ///< Name to show
|
gchar *name; ///< Name to show
|
||||||
guint position; ///< Current position
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct
|
static struct
|
||||||
|
@ -94,11 +93,10 @@ search (Dictionary *dict)
|
||||||
|
|
||||||
StardictIterator *iterator =
|
StardictIterator *iterator =
|
||||||
stardict_dict_search (dict->dict, input_utf8, NULL);
|
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);
|
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);
|
stardict_view_set_matched (STARDICT_VIEW (g.view), input_utf8);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue