[empathy] Changed dialog constructor calls to use a string literal with format arguments



commit ab8b4d3b38e0baa79268bab514a7836b7db474c8
Author: Louis-Francis Ratté-Boulianne <louis-francis ratte-boulianne collabora co uk>
Date:   Mon Aug 31 14:59:56 2009 -0400

    Changed dialog constructor calls to use a string literal with format arguments

 src/empathy-accounts-dialog.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index f7d6fa2..4d4c2bc 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -428,8 +428,8 @@ accounts_dialog_setup_ui_to_add_account (EmpathyAccountsDialog *dialog)
 
 static void
 accounts_dialog_show_question_dialog (EmpathyAccountsDialog *dialog,
-    gchar *primary_text,
-    gchar *secondary_text,
+    const gchar *primary_text,
+    const gchar *secondary_text,
     GCallback response_callback,
     gpointer user_data,
     const gchar *first_button_text,
@@ -444,10 +444,10 @@ accounts_dialog_show_question_dialog (EmpathyAccountsDialog *dialog,
       GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
       GTK_MESSAGE_QUESTION,
       GTK_BUTTONS_NONE,
-      primary_text);
+      "%s", primary_text);
 
   gtk_message_dialog_format_secondary_text (
-      GTK_MESSAGE_DIALOG (message_dialog), secondary_text);
+      GTK_MESSAGE_DIALOG (message_dialog), "%s", secondary_text);
 
   va_start (button_args, first_button_text);
   for (button_text = first_button_text;



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