[empathy] empathy_accounts_dialog_show_application: use g_build_filename



commit 4253e9ae71c3df9918e1ee4f81ecd1e90639edeb
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Feb 16 12:15:27 2010 +0000

    empathy_accounts_dialog_show_application: use g_build_filename
    
    That's cleaner to build a path.

 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 ca06e14..d438eec 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);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]