aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-menu.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-11-26 11:51:16 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-11-26 11:51:16 +0800
commit18c08853768cc4cae9125aaf185268b90a0f23cf (patch)
tree611bfb0f360ffa8f3100d038d97df56c628055a1 /e-util/e-menu.c
parent9fa1e996bc1a3249c0d5ee59752f7117a490d40d (diff)
downloadgsoc2013-evolution-18c08853768cc4cae9125aaf185268b90a0f23cf.tar.gz
gsoc2013-evolution-18c08853768cc4cae9125aaf185268b90a0f23cf.tar.zst
gsoc2013-evolution-18c08853768cc4cae9125aaf185268b90a0f23cf.zip
Use g_get_tmp_dir() instead of hardcoding /tmp.
2005-11-26 Tor Lillqvist <tml@novell.com> * e-menu.c (emph_construct_menu): Use g_get_tmp_dir() instead of hardcoding /tmp. * e-util.c (e_strstrcase): Use g_ascii_strncasecmp() instead of the deprecated g_strncasecmp(). What kinds of strings this function is supposed to be used on (UTF-8 or some random single- or multi-byte encoding) is anybody's guess. This function isn't used in Evolution and should probably go away, though. And this is one of the files that have a partially duplicated copy in e-d-s/libedataserver, too, so doubly so. (e_filename_make_safe): Mark more bytes as unsafe on Win32. Add comments. This function is really under-specified and weird, one wonders whether it really does what the author thought it should do. (fsync): Add Win32 implementation of fsync(). * e-xml-utils.c (e_xml_get_bool_prop_by_name_with_default): Use g_ascii_strcasecmp() instead of the deprecated g_strcasecmp(), especially as we are comparing to literal ASCII strings. svn path=/trunk/; revision=30684
Diffstat (limited to 'e-util/e-menu.c')
-rw-r--r--e-util/e-menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/e-util/e-menu.c b/e-util/e-menu.c
index 68c1f65c5e..7ed8b12483 100644
--- a/e-util/e-menu.c
+++ b/e-util/e-menu.c
@@ -785,7 +785,7 @@ emph_construct_menu(EPluginHook *eph, xmlNodePtr root)
EMenuUIFile *ui = g_malloc0(sizeof(*ui));
ui->filename = tmp;
- ui->appdir = g_strdup("/tmp");
+ ui->appdir = g_strdup(g_get_tmp_dir());
ui->appname = g_strdup("Evolution");
menu->uis = g_slist_append(menu->uis, ui);
}