[Commits] gtkutils.c 1.5.2.101 1.5.2.102

wwp at claws-mail.org wwp at claws-mail.org
Tue Jan 31 15:26:16 CET 2012


Update of /home/claws-mail/claws/src/gtk
In directory srv:/tmp/cvs-serv2003/src/gtk

Modified Files:
      Tag: gtk2
	gtkutils.c 
Log Message:
2012-01-31 [wwp]	3.8.0cvs19

	* src/gtk/gtkutils.c
	Fix warnings in gtkutils: wrong function name, missing newline, typo and
	long line wrapping.

Index: gtkutils.c
===================================================================
RCS file: /home/claws-mail/claws/src/gtk/gtkutils.c,v
retrieving revision 1.5.2.101
retrieving revision 1.5.2.102
diff -u -d -r1.5.2.101 -r1.5.2.102
--- gtkutils.c	31 Oct 2011 18:57:50 -0000	1.5.2.101
+++ gtkutils.c	31 Jan 2012 14:26:14 -0000	1.5.2.102
@@ -451,7 +451,7 @@
 
 	wcs = g_utf8_to_ucs4(str, -1, &items_read, &items_written, &error);
 	if (error != NULL) {
-		g_warning("An error occured while converting a string from UTF-8 to UCS-4: %s\n",
+		g_warning("An error occurred while converting a string from UTF-8 to UCS-4: %s\n",
 			  error->message);
 		g_error_free(error);
 	}
@@ -487,7 +487,8 @@
 
 	wcs = g_utf8_to_ucs4(str, -1, &items_read, &items_written, &error);
 	if (error != NULL) {
-		g_warning("An error occured while converting a string from UTF-8 to UCS-4: %s\n", error->message);
+		g_warning("An error occurred while converting a string from UTF-8 to UCS-4: %s\n",
+			  error->message);
 		g_error_free(error);
 	}
 	if (!wcs || items_written <= 0) return FALSE;
@@ -1147,7 +1148,7 @@
 
 	if ((gdk_pixbuf_get_width(pixbuf) != 48) || (gdk_pixbuf_get_height(pixbuf) != 48)) {
 		g_object_unref(pixbuf);
-		g_warning("wrong_size");
+		g_warning("wrong_size\n");
 		return NULL;
 	}
 
@@ -1253,7 +1254,7 @@
 		gtk_widget_set_style(btn_label, style);
 #if !GTK_CHECK_VERSION(3, 0, 0)
 	} else
-		g_warning("about_create(): color allocation failed.\n");
+		g_warning("color allocation failed\n");
 #endif
 
 	g_signal_connect(G_OBJECT(btn), "enter",



More information about the Commits mailing list