GTK: Fix a build issue in a lambda

It wasn’t correctly capturing its outer variable.
This commit is contained in:
Emmanuel Gil Peyrot 2020-09-09 23:52:59 +02:00
parent 5dd62b214b
commit 3ecbb29863
1 changed files with 2 additions and 2 deletions

View File

@ -4217,10 +4217,10 @@ common_gtk_main(GApplication *app, gpointer user_data)
// TODO: Is that enough? Maybe allocate instead? // TODO: Is that enough? Maybe allocate instead?
char action[1024]; char action[1024];
sprintf(action, "app.recent('%s')", uri); sprintf(action, "app.recent('%s')", uri);
g_menu_append(G_MENU(open_recent_menu), name, action); g_menu_append(G_MENU(user_data), name, action);
gtk_recent_info_unref(info); gtk_recent_info_unref(info);
}, NULL); }, open_recent_menu);
g_list_free(items); g_list_free(items);
/* Creating the place for showing DS screens */ /* Creating the place for showing DS screens */