gossip r2855 - in trunk: . libloudermouth src
- From: hallski svn gnome org
- To: svn-commits-list gnome org
- Subject: gossip r2855 - in trunk: . libloudermouth src
- Date: Tue, 4 Nov 2008 12:14:32 +0000 (UTC)
Author: hallski
Date: Tue Nov 4 12:14:32 2008
New Revision: 2855
URL: http://svn.gnome.org/viewvc/gossip?rev=2855&view=rev
Log:
Fixed warnings due to not calling printf-like functions with a format string.
2008-11-04 Mikael Hallendal <micke imendio com>
* libloudermouth/lm-bs-transfer.c:
* src/gossip-account-widget-jabber.c:
* src/gossip-change-password-dialog.c:
- Fixed warnings due to calling printf-like functions without a format
string.
Modified:
trunk/ChangeLog
trunk/libloudermouth/lm-bs-transfer.c
trunk/src/gossip-account-widget-jabber.c
trunk/src/gossip-change-password-dialog.c
Modified: trunk/libloudermouth/lm-bs-transfer.c
==============================================================================
--- trunk/libloudermouth/lm-bs-transfer.c (original)
+++ trunk/libloudermouth/lm-bs-transfer.c Tue Nov 4 12:14:32 2008
@@ -426,7 +426,7 @@
{
GError *error;
- error = g_error_new (lm_error_quark (),
+ error = g_error_new_literal (lm_error_quark (),
LM_BS_TRANSFER_ERROR_UNABLE_TO_CONNECT,
error_msg);
lm_bs_transfer_error (transfer, error);
Modified: trunk/src/gossip-account-widget-jabber.c
==============================================================================
--- trunk/src/gossip-account-widget-jabber.c (original)
+++ trunk/src/gossip-account-widget-jabber.c Tue Nov 4 12:14:32 2008
@@ -762,21 +762,22 @@
GTK_DIALOG_MODAL,
GTK_MESSAGE_INFO,
GTK_BUTTONS_CLOSE,
- str);
+ "%s", str);
str = _("You should now be able to connect to your new account.");
- gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (md), str);
+ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (md),
+ "%s", str);
} else {
str = _("Failed to register your new account settings.");
md = gtk_message_dialog_new (GTK_WINDOW (toplevel),
GTK_DIALOG_MODAL,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_CLOSE,
- str);
+ "%s", str);
if (error && error->message) {
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (md),
- error->message);
+ "%s", error->message);
}
}
Modified: trunk/src/gossip-change-password-dialog.c
==============================================================================
--- trunk/src/gossip-change-password-dialog.c (original)
+++ trunk/src/gossip-change-password-dialog.c Tue Nov 4 12:14:32 2008
@@ -86,21 +86,22 @@
GTK_DIALOG_MODAL,
GTK_MESSAGE_INFO,
GTK_BUTTONS_CLOSE,
- str);
+ "%s", str);
str = _("You should now be able to connect with your new password.");
- gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (md), str);
+ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (md),
+ "%s", str);
} else {
str = _("Failed to change your account password.");
md = gtk_message_dialog_new (NULL,
GTK_DIALOG_MODAL,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_CLOSE,
- str);
+ "%s", str);
if (error && error->message) {
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (md),
- error->message);
+ "%s", error->message);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]