diff options
| author | mbkma <[email protected]> | 2026-03-14 16:15:40 +0100 |
|---|---|---|
| committer | mbkma <[email protected]> | 2026-04-19 11:21:23 +0200 |
| commit | efbbbf92577e3815ed0125dbd10abc972a643b31 (patch) | |
| tree | 2245ca9d86dcc6628ad5e9fae1fe80b8ce6a1dd9 /src/mate-calc-application.h | |
| parent | b8126bfc033da43ad332e62f1c4ff6ec2662998e (diff) | |
| download | mate-calc-efbbbf92577e3815ed0125dbd10abc972a643b31.tar.bz2 mate-calc-efbbbf92577e3815ed0125dbd10abc972a643b31.tar.xz | |
feat: use GtkApplication
Convert mate-calc to GtkApplication.
Diffstat (limited to 'src/mate-calc-application.h')
| -rw-r--r-- | src/mate-calc-application.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/mate-calc-application.h b/src/mate-calc-application.h new file mode 100644 index 0000000..b8ec26d --- /dev/null +++ b/src/mate-calc-application.h @@ -0,0 +1,44 @@ +/* + * mate-calc-application.h - GtkApplication for MATE Calculator + * + * Copyright (C) 2026 MATE Desktop Team + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 2 of the License, or (at your option) any later + * version. See http://www.gnu.org/copyleft/gpl.html the full text of the + * license. + */ + +#ifndef MATE_CALC_APPLICATION_H +#define MATE_CALC_APPLICATION_H + +#include <gtk/gtk.h> + +G_BEGIN_DECLS + +#define MATE_CALC_TYPE_APPLICATION (mate_calc_application_get_type()) +G_DECLARE_FINAL_TYPE(MateCalcApplication, mate_calc_application, MATE_CALC, APPLICATION, GtkApplication) + +/** + * mate_calc_application_new: + * + * Creates a new MateCalcApplication instance. + * + * Returns: (transfer full): A new MateCalcApplication + */ +MateCalcApplication *mate_calc_application_new(void); + +/** + * mate_calc_application_get_settings: + * @app: A MateCalcApplication + * + * Gets the GSettings object for the calculator. + * + * Returns: (transfer none): The GSettings object + */ +GSettings *mate_calc_application_get_settings(MateCalcApplication *app); + +G_END_DECLS + +#endif /* MATE_CALC_APPLICATION_H */ |
