Fix adding images to the list of recent files
This commit is contained in:
parent
c4d58cb9ad
commit
6eec8e7360
5
fastiv.c
5
fastiv.c
|
@ -153,7 +153,12 @@ open(const gchar *path)
|
|||
return;
|
||||
}
|
||||
|
||||
gchar *uri = g_filename_to_uri(path, NULL, NULL);
|
||||
if (uri) {
|
||||
gtk_recent_manager_add_item(gtk_recent_manager_get_default(), path);
|
||||
g_free(uri);
|
||||
}
|
||||
|
||||
gtk_window_set_title(GTK_WINDOW(g.window), path);
|
||||
gtk_stack_set_visible_child(GTK_STACK(g.stack), g.view_scroller);
|
||||
|
||||
|
|
Loading…
Reference in New Issue