[gtk+/box-shadow: 2/5] themingengine: export _cairo_round_rectangle_sides() in a private header



commit 102022560e4bb4560388e15c8909f345af6f19d7
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Jun 1 20:59:50 2011 -0400

    themingengine: export _cairo_round_rectangle_sides() in a private header

 gtk/Makefile.am               |    1 +
 gtk/gtkthemingengine.c        |   11 +-------
 gtk/gtkthemingengineprivate.h |   47 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 50 insertions(+), 9 deletions(-)
---
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 19b187a..bb1087b 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -444,6 +444,7 @@ gtk_private_h_sources =		\
 	gtktexttagprivate.h	\
 	gtktexttypes.h		\
 	gtktextutil.h		\
+	gtkthemingengineprivate.h \
 	gtktimeline.h		\
 	gtktoolpaletteprivate.h	\
 	gtktreedatalist.h	\
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 014e47b..026b941 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -31,6 +31,7 @@
 #include "gtkpango.h"
 #include "gtkshadowprivate.h"
 #include "gtkcsstypesprivate.h"
+#include "gtkthemingengineprivate.h"
 
 /**
  * SECTION:gtkthemingengine
@@ -56,14 +57,6 @@
 typedef struct GtkThemingEnginePrivate GtkThemingEnginePrivate;
 
 enum {
-  SIDE_LEFT   = 1,
-  SIDE_BOTTOM = 1 << 1,
-  SIDE_RIGHT  = 1 << 2,
-  SIDE_TOP    = 1 << 3,
-  SIDE_ALL    = 0xF
-};
-
-enum {
   PROP_0,
   PROP_NAME
 };
@@ -1385,7 +1378,7 @@ _cairo_ellipsis (cairo_t *cr,
   cairo_restore (cr);
 }
 
-static void
+void
 _cairo_round_rectangle_sides (cairo_t                  *cr,
                               const GtkCssBorderRadius *border_radius,
                               gdouble                   x,
diff --git a/gtk/gtkthemingengineprivate.h b/gtk/gtkthemingengineprivate.h
new file mode 100644
index 0000000..606fe8f
--- /dev/null
+++ b/gtk/gtkthemingengineprivate.h
@@ -0,0 +1,47 @@
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 2010 Carlos Garnacho <carlosg gnome org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __GTK_THEMING_ENGINE_PRIVATE_H__
+#define __GTK_THEMING_ENGINE_PRIVATE_H__
+
+#include <glib-object.h>
+
+#include "gtkborder.h"
+#include "gtkcsstypesprivate.h"
+#include "gtkenums.h"
+
+G_BEGIN_DECLS
+
+enum {
+  SIDE_LEFT   = 1,
+  SIDE_BOTTOM = 1 << 1,
+  SIDE_RIGHT  = 1 << 2,
+  SIDE_TOP    = 1 << 3,
+  SIDE_ALL    = 0xF
+};
+
+void _cairo_round_rectangle_sides (cairo_t                  *cr,
+                                   const GtkCssBorderRadius *border_radius,
+                                   gdouble                   x,
+                                   gdouble                   y,
+                                   gdouble                   width,
+                                   gdouble                   height,
+                                   guint                     sides);
+
+#endif /* __GTK_THEMING_ENGINE_PRIVATE_H__ */



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