~tristan957/harvest-almanac

a185415c52affd17fe32a86caccba2714fc2e68a — Tristan Partin 1 year, 2 months ago 4a087e3
Rename various config variable
4 files changed, 12 insertions(+), 12 deletions(-)

M src/config.h.in
M src/hal-application.c
M src/main.c
M src/meson.build
M src/config.h.in => src/config.h.in +8 -8
@@ 7,8 7,8 @@
#endif

#ifdef HAL_COMPILER
#	define HAL_DIAGNOSTIC_PUSH (HAL_COMPILER diagnostic push)
#	define HAL_DIAGNOSTIC_POP (HAL_COMPILER diagnostic pop)
#	define HAL_DIAGNOSTIC_PUSH	   (HAL_COMPILER diagnostic push)
#	define HAL_DIAGNOSTIC_POP	   (HAL_COMPILER diagnostic pop)
#	define HAL_DIAGNOSTIC_IGNORED (HAL_COMPILER diagnostic ignored)
#else
#	define HAL_DIAGNOSTIC_PUSH


@@ 16,13 16,13 @@
#	define HAL_DIAGNOSTIC_IGNORED
#endif

#define PACKAGE_NAME "@package_name@"
#define PACKAGE_VERSION "@package_version@"
#define APPLICATION_NAME "@application_name@"
#define PACKAGE_VERSION	 "@package_version@"
// clang-format off
#define PACKAGE_LICENSE @package_license@
// clang-format on
#define PACKAGE_WEBSITE "@package_website@"
#define PACKAGE_WEBSITE		  "@package_website@"
#define PACKAGE_WEBSITE_LABEL "@package_website_label@"
#define GETTEXT_PACKAGE "@gettext_package@"
#define LOCALEDIR "@localedir@"
#define LIBDIR "@libdir@"
#define GETTEXT_PACKAGE		  "@gettext_package@"
#define LOCALEDIR			  "@localedir@"
#define LIBDIR				  "@libdir@"

M src/hal-application.c => src/hal-application.c +1 -1
@@ 145,7 145,7 @@ hal_application_about(
	HalApplication *self		= HAL_APPLICATION(data);
	HalApplicationPrivate *priv = hal_application_get_instance_private(self);

	gtk_show_about_dialog(GTK_WINDOW(priv->main_window), "program-name", PACKAGE_NAME, "version",
	gtk_show_about_dialog(GTK_WINDOW(priv->main_window), "program-name", APPLICATION_NAME, "version",
		PACKAGE_VERSION, "license-type", PACKAGE_LICENSE, "website", PACKAGE_WEBSITE,
		"website-label", PACKAGE_WEBSITE_LABEL, "authors", authors, "logo-icon-name", "trophy-gold",
		NULL);

M src/main.c => src/main.c +2 -2
@@ 25,8 25,8 @@ main(int argc, char *argv[])
	}

	g_autoptr(HalApplication) app = hal_application_new("io.partin.tristan.HarvestAlmanac");

	g_set_application_name(_("Harvest Almanac"));
	g_set_prgname(APPLICATION_NAME);
	g_set_application_name(_(APPLICATION_NAME));

	return g_application_run(G_APPLICATION(app), argc, argv);
}

M src/meson.build => src/meson.build +1 -1
@@ 1,5 1,5 @@
harvest_almanac_config_h = configuration_data({
    'package_name': 'Harvest Almanac',
    'application_name': 'Harvest Almanac',
    'package_version': meson.project_version(),
    'package_license': 'GTK_LICENSE_GPL_3_0',
    'package_website': 'https://git.sr.ht/~tristan957/harvest-almanac',