summaryrefslogtreecommitdiff
path: root/src/app.h
blob: 7b40ff62b51265c37adee528d9e0db1806472f1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef GGAZE_APP_H
#define GGAZE_APP_H

/*:*
 * ggaze — application object
 *
 * GgazeApp is the GApplication/single-instance entry point. It owns the
 * GtkApplication, registers actions, and routes the GApplication `open`
 * signal (a file OR a directory) to the window. See docs/architecture.md
 * "Responsibilities / app".
 *
 * Copyright (c) 2026 ggaze contributors
 * SPDX-License-Identifier: GPL-3.0-or-later
 *:*/

#include <adwaita.h>

G_BEGIN_DECLS

#define GGAZE_TYPE_APP (ggaze_app_get_type())
G_DECLARE_FINAL_TYPE(GgazeApp, ggaze_app, GGAZE, APP, AdwApplication)

/* Construct a new single-instance ggaze application. */
GgazeApp *ggaze_app_new(void);

G_END_DECLS

#endif /* GGAZE_APP_H */