[librsvg] set proper mode line and fix indent.



commit 331c6b9307ac8145f149cbb366017d97819dfec5
Author: Hiroyuki Ikezoe <hiikezoe gnome org>
Date:   Sun Apr 25 20:25:04 2010 +0900

    set proper mode line and fix indent.

 rsvg-defs.c |    3 ++-
 rsvg-defs.h |    5 +++--
 rsvg-mask.c |    3 ++-
 rsvg-mask.h |    3 ++-
 rsvg.c      |   27 ++++++++++++++-------------
 5 files changed, 23 insertions(+), 18 deletions(-)
---
diff --git a/rsvg-defs.c b/rsvg-defs.c
index 581917e..0c2b0f1 100644
--- a/rsvg-defs.c
+++ b/rsvg-defs.c
@@ -1,4 +1,5 @@
-/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* vim: set sw=4 sts=4 ts=4 expandtab: */
 /* 
    rsvg-defs.c: Manage SVG defs and references.
  
diff --git a/rsvg-defs.h b/rsvg-defs.h
index cb9b53e..1959aa3 100644
--- a/rsvg-defs.h
+++ b/rsvg-defs.h
@@ -1,4 +1,5 @@
-/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* vim: set sw=4 sts=4 ts=4 expandtab: */
 /*
    rsvg-defs.h : SVG defs utilities
 
@@ -40,7 +41,7 @@ void	     rsvg_defs_set_base_uri	(RsvgDefs * self, gchar * base_uri);
 void	     rsvg_defs_add_resolver	(RsvgDefs * defs, RsvgNode ** tochange, const gchar * name);
 void	     rsvg_defs_resolve_all	(RsvgDefs * defs);
 void	     rsvg_defs_register_name	(RsvgDefs * defs, const char *name, RsvgNode * val);
-void	     rsvg_defs_register_memory	(RsvgDefs * defs, RsvgNode * val);
+void	     rsvg_defs_register_memory  (RsvgDefs * defs, RsvgNode * val);
 
 G_END_DECLS
 #endif
diff --git a/rsvg-mask.c b/rsvg-mask.c
index db58580..dd36a38 100644
--- a/rsvg-mask.c
+++ b/rsvg-mask.c
@@ -1,4 +1,5 @@
-/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* vim: set sw=4 sts=4 ts=4 expandtab: */
 /* 
    rsvg-filter.c: Provides filters
  
diff --git a/rsvg-mask.h b/rsvg-mask.h
index db225b3..ee111cf 100644
--- a/rsvg-mask.h
+++ b/rsvg-mask.h
@@ -1,4 +1,5 @@
-/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* vim: set sw=4 sts=4 ts=4 expandtab: */
 /*
    rsvg-mask.h : Provides Masks
 
diff --git a/rsvg.c b/rsvg.c
index 8c2e51b..fa60723 100644
--- a/rsvg.c
+++ b/rsvg.c
@@ -1,4 +1,5 @@
-/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* vim: set sw=4 sts=4 ts=4 expandtab: */
 /*
    rsvg.c: SAX-based renderer for SVG files into a GdkPixbuf.
 
@@ -98,19 +99,19 @@ rsvg_handle_get_pixbuf_sub (RsvgHandle * handle, const char *id)
     cairo_surface_destroy (surface);
 
     if (rsvg_handle_render_cairo_sub (handle, cr, id)) {
-		rsvg_cairo_to_pixbuf (pixels, rowstride, dimensions.height);
-
-		output = gdk_pixbuf_new_from_data (pixels,
-										   GDK_COLORSPACE_RGB,
-										   TRUE,
-										   8,
-										   dimensions.width,
-										   dimensions.height,
-										   rowstride,
-										   (GdkPixbufDestroyNotify) rsvg_pixmap_destroy, NULL);
+        rsvg_cairo_to_pixbuf (pixels, rowstride, dimensions.height);
+
+        output = gdk_pixbuf_new_from_data (pixels,
+                                           GDK_COLORSPACE_RGB,
+                                           TRUE,
+                                           8,
+                                           dimensions.width,
+                                           dimensions.height,
+                                           rowstride,
+                                           (GdkPixbufDestroyNotify) rsvg_pixmap_destroy, NULL);
 	} else {
-		g_free (pixels);
-		output = NULL;
+        g_free (pixels);
+        output = NULL;
 	}
 
     cairo_destroy (cr);



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