diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-16 20:15:27 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-16 20:15:29 +0800 |
commit | 4253e9ae71c3df9918e1ee4f81ecd1e90639edeb (patch) | |
tree | 8bbd2b16037c20e433333e7dde78d09c963b1f48 | |
parent | 57f093617f28dea1a4d4ab948561579d3f623427 (diff) | |
download | gsoc2013-empathy-4253e9ae71c3df9918e1ee4f81ecd1e90639edeb.tar gsoc2013-empathy-4253e9ae71c3df9918e1ee4f81ecd1e90639edeb.tar.gz gsoc2013-empathy-4253e9ae71c3df9918e1ee4f81ecd1e90639edeb.tar.bz2 gsoc2013-empathy-4253e9ae71c3df9918e1ee4f81ecd1e90639edeb.tar.lz gsoc2013-empathy-4253e9ae71c3df9918e1ee4f81ecd1e90639edeb.tar.xz gsoc2013-empathy-4253e9ae71c3df9918e1ee4f81ecd1e90639edeb.tar.zst gsoc2013-empathy-4253e9ae71c3df9918e1ee4f81ecd1e90639edeb.zip |
empathy_accounts_dialog_show_application: use g_build_filename
That's cleaner to build a path.
-rw-r--r-- | src/empathy-accounts-dialog.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index ca06e14a6..d438eec04 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -2238,11 +2238,13 @@ empathy_accounts_dialog_show_application (GdkScreen *screen, gchar *argv[4] = { NULL, }; gint i = 0; gchar *account_option = NULL; + gchar *path; g_return_if_fail (GDK_IS_SCREEN (screen)); g_return_if_fail (!selected_account || TP_IS_ACCOUNT (selected_account)); - argv[i++] = BIN_DIR "/empathy-accounts"; + path = g_build_filename (BIN_DIR, "empathy-accounts", NULL); + argv[i++] = path; if (selected_account) { @@ -2276,4 +2278,5 @@ empathy_accounts_dialog_show_application (GdkScreen *screen, g_child_watch_add ((GPid) command_pid, application_exit_cb, NULL); g_free (account_option); + g_free (path); } |