[gtkhtml] Coding style and whitespace cleanup.



commit 532a9233fabda03f31e7d0065f6336fce887b31d
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Nov 7 20:45:33 2010 -0500

    Coding style and whitespace cleanup.

 gtkhtml/htmlengine-edit-cursor.c |    2 +-
 gtkhtml/htmlgdkpainter.c         |    6 +++---
 gtkhtml/htmlimage.c              |    2 +-
 gtkhtml/htmlsearch.c             |    2 +-
 gtkhtml/htmltextslave.c          |    2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gtkhtml/htmlengine-edit-cursor.c b/gtkhtml/htmlengine-edit-cursor.c
index 3fb528f..4a43578 100644
--- a/gtkhtml/htmlengine-edit-cursor.c
+++ b/gtkhtml/htmlengine-edit-cursor.c
@@ -121,7 +121,7 @@ draw_cursor_rectangle (HTMLEngine *e, gint x1, gint y1, gint x2, gint y2,
 {
 	cairo_t *cr;
 	const double dashes[2] = { 1, 3 };
-	int ndash = G_N_ELEMENTS (dashes);
+	gint ndash = G_N_ELEMENTS (dashes);
 
 	if (x1 > x2 || y1 > y2 || !e->window)
 		return;
diff --git a/gtkhtml/htmlgdkpainter.c b/gtkhtml/htmlgdkpainter.c
index 3f8e01b..e80ff9b 100644
--- a/gtkhtml/htmlgdkpainter.c
+++ b/gtkhtml/htmlgdkpainter.c
@@ -144,8 +144,8 @@ _cairo_draw_ellipse (cairo_t *cr,
 static void
 _cairo_draw_glyphs (cairo_t          *cr,
 		    PangoFont        *font,
-		    int               x,
-		    int               y,
+		    gint              x,
+		    gint              y,
 		    PangoGlyphString *glyphs)
 {
 	cairo_save (cr);
@@ -689,7 +689,7 @@ draw_spell_error (HTMLPainter *painter, gint x, gint y, gint width)
 {
 	HTMLGdkPainter *gdk_painter;
 	const double dashes[] = { 2, 2 };
-	int ndash  = sizeof (dashes) / sizeof (dashes[0]);
+	gint ndash = G_N_ELEMENTS (dashes);
 
 	gdk_painter = HTML_GDK_PAINTER (painter);
 
diff --git a/gtkhtml/htmlimage.c b/gtkhtml/htmlimage.c
index bb3c2b1..87f62bd 100644
--- a/gtkhtml/htmlimage.c
+++ b/gtkhtml/htmlimage.c
@@ -379,7 +379,7 @@ draw_focus  (HTMLImage *image, HTMLPainter *painter, GdkRectangle *box)
 {
 	HTMLGdkPainter *p;
 	const double dashes[] = { 1, 1 };
-	int ndash = G_N_ELEMENTS (dashes);
+	gint ndash = G_N_ELEMENTS (dashes);
 	HTMLEngine *e;
 
 	if (painter->widget && GTK_IS_HTML (painter->widget))
diff --git a/gtkhtml/htmlsearch.c b/gtkhtml/htmlsearch.c
index c541843..04632a3 100644
--- a/gtkhtml/htmlsearch.c
+++ b/gtkhtml/htmlsearch.c
@@ -25,7 +25,7 @@
       position of paragraph. so it is possible to find first match
       on bottom of page (ie. first column of table) and the second
       one on top (ie. top of second comlumn)
-     [also Netscape didn't take care of it]
+      [also Netscape didn't take care of it]
 
 */
 
diff --git a/gtkhtml/htmltextslave.c b/gtkhtml/htmltextslave.c
index 07b8a92..be3468b 100644
--- a/gtkhtml/htmltextslave.c
+++ b/gtkhtml/htmltextslave.c
@@ -855,7 +855,7 @@ draw_focus_rectangle  (HTMLTextSlave *slave, HTMLPainter *painter, GdkRectangle
 {
 	HTMLGdkPainter *p;
 	const double dashes[] = { 1, 2 };
-	int ndash = G_N_ELEMENTS (dashes);
+	gint ndash = G_N_ELEMENTS (dashes);
 	HTMLEngine *e;
 
 	if (painter->widget && GTK_IS_HTML (painter->widget))



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