summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Staudinger <robsta@gnome.org>2009-08-31 15:04:45 +0200
committerRobert Staudinger <robsta@gnome.org>2009-08-31 15:04:45 +0200
commit0d8349bd33025294b1d6f5dddb086dd3b2d9bb97 (patch)
treeb0d1eaf0eb8781acb310f391e4eba71cb0eee4c8
parenta65485b7d087da78d3d7d174570e42e3f13fc3bd (diff)
[padding] Deprecate struct fields.
-rw-r--r--ccss/Makefile.am1
-rw-r--r--ccss/ccss-padding.c33
-rw-r--r--ccss/ccss-padding.h7
3 files changed, 39 insertions, 2 deletions
diff --git a/ccss/Makefile.am b/ccss/Makefile.am
index 4f9b5a4..dd1ef42 100644
--- a/ccss/Makefile.am
+++ b/ccss/Makefile.am
@@ -41,6 +41,7 @@ libccss_1_la_SOURCES = \
ccss-grammar-priv.h \
ccss-node.c \
ccss-node-priv.h \
+ ccss-padding.c \
ccss-padding-parser.c \
ccss-padding-parser.h \
ccss-position.c \
diff --git a/ccss/ccss-padding.c b/ccss/ccss-padding.c
new file mode 100644
index 0000000..d4468eb
--- /dev/null
+++ b/ccss/ccss-padding.c
@@ -0,0 +1,33 @@
+/* vim: set ts=8 sw=8 noexpandtab: */
+
+/* The `C' CSS Library.
+ * Copyright (C) 2009 Intel Corporation.
+ *
+ * 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., 51 Franklin St, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+
+#include <glib.h>
+#include "ccss-padding.h"
+#include "config.h"
+
+double
+ccss_padding_get_padding (ccss_padding_t const *self)
+{
+ g_return_val_if_fail (self, 0);
+
+ return self->padding;
+}
+
diff --git a/ccss/ccss-padding.h b/ccss/ccss-padding.h
index db89cc7..55d6d46 100644
--- a/ccss/ccss-padding.h
+++ b/ccss/ccss-padding.h
@@ -28,11 +28,14 @@
CCSS_BEGIN_DECLS
typedef struct {
- ccss_property_t base;
+ CCSS_DEPRECATED (ccss_property_t base);
- double padding;
+ CCSS_DEPRECATED (double padding);
} ccss_padding_t;
+double
+ccss_padding_get_padding (ccss_padding_t const *self);
+
CCSS_END_DECLS
#endif /* CCSS_PADDING_H */