sdgui: add a file open dialog to the menu

And remove the selection following checkbox from Windows builds.
This commit is contained in:
2021-10-23 00:15:48 +02:00
parent 5190601852
commit 03ebaddff5
2 changed files with 90 additions and 16 deletions

View File

@@ -533,14 +533,14 @@ stardict_view_set_position (StardictView *self,
StardictDict *dict, guint position)
{
g_return_if_fail (STARDICT_IS_VIEW (self));
g_return_if_fail (STARDICT_IS_DICT (dict));
g_return_if_fail (dict == NULL || STARDICT_IS_DICT (dict));
// Update the minimum size, if appropriate (almost never)
if (!self->dict != !dict)
gtk_widget_queue_resize (GTK_WIDGET (self));
g_clear_object (&self->dict);
self->dict = g_object_ref (dict);
self->dict = dict ? g_object_ref (dict) : NULL;
self->top_position = position;
self->top_offset = 0;