mirror of
https://gitlab.cvh-server.de/skrause/flashcards.git
synced 2025-12-12 07:51:38 +01:00
small changes, fix lang in flatpak
This commit is contained in:
@@ -16,9 +16,9 @@ struct _FlashcardsApp
|
||||
G_DEFINE_TYPE(FlashcardsApp, flashcards_app, ADW_TYPE_APPLICATION);
|
||||
|
||||
static void
|
||||
flashcards_app_quit_action(GSimpleAction *action,
|
||||
GVariant *parameter,
|
||||
gpointer user_data)
|
||||
flashcards_app_quit(__attribute__((unused)) GSimpleAction *action,
|
||||
__attribute__((unused)) GVariant *parameter,
|
||||
gpointer user_data)
|
||||
{
|
||||
FlashcardsApp *self = user_data;
|
||||
g_assert(FLASHCARDS_IS_APP(self));
|
||||
@@ -26,9 +26,9 @@ flashcards_app_quit_action(GSimpleAction *action,
|
||||
}
|
||||
|
||||
static void
|
||||
flashcards_app_about_action(GSimpleAction *action,
|
||||
GVariant *parameter,
|
||||
gpointer user_data)
|
||||
flashcards_app_about(__attribute__((unused)) GSimpleAction *action,
|
||||
__attribute__((unused)) GVariant *parameter,
|
||||
gpointer user_data)
|
||||
{
|
||||
static const char *developers[] = {"Sophie Krause", NULL};
|
||||
FlashcardsApp *self = user_data;
|
||||
@@ -51,8 +51,8 @@ flashcards_app_about_action(GSimpleAction *action,
|
||||
}
|
||||
|
||||
static const GActionEntry app_actions[] = {
|
||||
{"quit", flashcards_app_quit_action},
|
||||
{"about", flashcards_app_about_action},
|
||||
{"quit", flashcards_app_quit, NULL, NULL, NULL, {0, 0, 0}},
|
||||
{"about", flashcards_app_about, NULL, NULL, NULL, {0, 0, 0}},
|
||||
};
|
||||
|
||||
static void
|
||||
@@ -77,13 +77,12 @@ flashcards_app_activate(GApplication *app)
|
||||
|
||||
static void
|
||||
flashcards_app_open(GApplication *app,
|
||||
GFile **files,
|
||||
int n_files,
|
||||
const char *hint)
|
||||
__attribute__((unused)) GFile **files,
|
||||
__attribute__((unused)) int n_files,
|
||||
__attribute__((unused)) const char *hint)
|
||||
{
|
||||
GList *windows;
|
||||
FlashcardsAppWindow *win;
|
||||
int i;
|
||||
|
||||
windows = gtk_application_get_windows(GTK_APPLICATION(app));
|
||||
if (windows)
|
||||
@@ -91,9 +90,6 @@ flashcards_app_open(GApplication *app,
|
||||
else
|
||||
win = flashcards_app_window_new(FLASHCARDS_APP(app));
|
||||
|
||||
for (i = 0; i < n_files; i++)
|
||||
flashcards_app_window_open(win, files[i]);
|
||||
|
||||
gtk_window_present(GTK_WINDOW(win));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user