]> git.0d.be Git - empathy.git/commitdiff
Changed dialog constructor calls to use a string literal with format arguments
authorLouis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk>
Mon, 31 Aug 2009 18:59:56 +0000 (14:59 -0400)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 31 Aug 2009 21:14:03 +0000 (22:14 +0100)
src/empathy-accounts-dialog.c

index f7d6fa26383c80696bf0655090aad761ca221e77..4d4c2bcaabd8d58a88c8dee0219adeaaf7a8a500 100644 (file)
@@ -428,8 +428,8 @@ accounts_dialog_setup_ui_to_add_account (EmpathyAccountsDialog *dialog)
 
 static void
 accounts_dialog_show_question_dialog (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,
     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,
       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_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;
 
   va_start (button_args, first_button_text);
   for (button_text = first_button_text;