talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 24f2589ccc916731cbdb46f8f4bccfc832c06b53
parent e58620f7d85140a9b690d11b6f4effff856bf571
Author: Holger Berndt <hb@claws-mail.org>
Date:   Wed, 25 Nov 2009 22:14:02 +0000

2009-11-25 [holger]	3.7.3cvs22

	* Makefile.am
	* src/common/Makefile.am
	* src/common/utils.c
	* src/common/utils.h
		Add a function to query the
		filepath of the .desktop file

Diffstat:
MChangeLog | 9+++++++++
MMakefile.am | 2++
MPATCHSETS | 1+
Mconfigure.ac | 2+-
Msrc/common/Makefile.am | 3+++
Msrc/common/utils.c | 10++++++++++
Msrc/common/utils.h | 1+
7 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,12 @@ +2009-11-25 [holger] 3.7.3cvs22 + + * Makefile.am + * src/common/Makefile.am + * src/common/utils.c + * src/common/utils.h + Add a function to query the + filepath of the .desktop file + 2009-11-25 [colin] 3.7.3cvs21 * src/imap.c diff --git a/Makefile.am b/Makefile.am @@ -26,6 +26,8 @@ pixmap64_DATA=claws-mail-64x64.png pixmap128dir=$(datadir)/icons/hicolor/128x128/apps pixmap128_DATA=claws-mail-128x128.png +# when changing the name or location of the .desktop file, +# also update src/common/Makefile.am gnomapdir = $(datadir)/applications gnomap_DATA=claws-mail.desktop diff --git a/PATCHSETS b/PATCHSETS @@ -3895,3 +3895,4 @@ ( cvs diff -u -r 1.1.2.27 -r 1.1.2.28 src/printing.c; ) > 3.7.3cvs19.patchset ( cvs diff -u -r 1.36.2.178 -r 1.36.2.179 src/common/utils.c; ) > 3.7.3cvs20.patchset ( cvs diff -u -r 1.179.2.248 -r 1.179.2.249 src/imap.c; ) > 3.7.3cvs21.patchset +( cvs diff -u -r 1.24.2.28 -r 1.24.2.29 Makefile.am; cvs diff -u -r 1.24.2.19 -r 1.24.2.20 src/common/Makefile.am; cvs diff -u -r 1.36.2.179 -r 1.36.2.180 src/common/utils.c; cvs diff -u -r 1.20.2.72 -r 1.20.2.73 src/common/utils.h; ) > 3.7.3cvs22.patchset diff --git a/configure.ac b/configure.ac @@ -12,7 +12,7 @@ MINOR_VERSION=7 MICRO_VERSION=3 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=21 +EXTRA_VERSION=22 EXTRA_RELEASE= EXTRA_GTK2_VERSION= diff --git a/src/common/Makefile.am b/src/common/Makefile.am @@ -1,4 +1,6 @@ PLUGINDIR = $(pkglibdir)/plugins/ +DESKTOPFILEPATH=$(datadir)/applications/claws-mail.desktop + noinst_LTLIBRARIES = libclawscommon.la if OS_WIN32 @@ -78,6 +80,7 @@ AM_CPPFLAGS = \ -DLOCALEDIR=\""$(localedir)"\" \ -DPLUGINDIR=\"$(PLUGINDIR)\" \ -DDATAROOTDIR=\""$(datarootdir)"\" \ + -DDESKTOPFILEPATH=\"$(DESKTOPFILEPATH)\" \ -DGTK_DISABLE_DEPRECATED libclawscommon_la_LIBADD = \ diff --git a/src/common/utils.c b/src/common/utils.c @@ -1993,6 +1993,16 @@ const gchar *get_cert_file(void) } #endif +/* Return the filepath of the claws-mail.desktop file */ +const gchar *get_desktop_file(void) +{ +#ifdef DESKTOPFILEPATH + return DESKTOPFILEPATH; +#else + return NULL; +#endif +} + /* Return the default directory for Plugins. */ const gchar *get_plugin_dir(void) { diff --git a/src/common/utils.h b/src/common/utils.h @@ -422,6 +422,7 @@ const gchar *get_tmp_dir (void); const gchar *get_locale_dir (void); gchar *get_tmp_file (void); const gchar *get_domain_name (void); +const gchar *get_desktop_file(void); #ifdef G_OS_WIN32 const gchar *get_themes_dir (void); const gchar *get_cert_file (void);