summaryrefslogtreecommitdiff
path: root/ccss-gtk
AgeCommit message (Collapse)AuthorFilesLines
2009-09-09Move struct definitions to private headers.HEADmasterRobert Staudinger2-24/+33
All structs except node-class are removed from the public API. The ccss-node struct is no more embeddable, a new user-data API makes up for that.
2009-09-08[feature] Support for multiple pseudo-classes per node.Robert Staudinger1-1/+1
2009-09-01[function] Make function objects dynamically creatable and ref-counted.Robert Staudinger3-15/+17
2009-08-31[function] Deprecate struct fields.Robert Staudinger1-0/+1
2009-08-31No more expose libcroco in the headers.Robert Staudinger1-0/+2
Move functions to "unstable" headers that can be used at own risk by those wanting to implement custom properties.
2009-08-11[doc] Hide struct padding, visit TODOs.Robert Staudinger1-2/+1
2009-08-10[property] Rename field "property_class" to "vtable".Robert Staudinger1-1/+1
2009-08-10[property] Rename "ccss_property_base_t" to "ccss_property_t".Robert Staudinger3-4/+4
2009-08-10[property] Initialise new "serialize" method in property vtables.Robert Staudinger1-1/+2
2009-08-10[property] Drop "property_" prefix from vtable members.Robert Staudinger1-9/+9
2009-08-09[gtk] Document ccss-gtk.Robert Staudinger1-0/+9
2009-08-07[coding style] Consistently use 'true' and 'false' from stdbool.hRobert Staudinger4-54/+56
2009-08-07Use 'ccss' name consistently, drop 'lib' prefix where possible.Robert Staudinger1-1/+1
2009-08-04[gtk-stylesheet] Handle labels inside gtk-cell-view and gtk-menu-itemRobert Staudinger1-2/+5
Propagate settings to the embedded label, so text shows up in the correct colour.
2009-08-04[gtk-stylesheet] Export bg or base depending on widget, not both.Robert Staudinger1-29/+35
This fixes gtk-entries' selection background colour.
2009-08-04[gtk-stylesheet] Also apply a button's gtkrc settings to its labelRobert Staudinger1-17/+67
Set text/base instead of fg/bg on text widgets while going along.
2009-08-04[ccss-gtk] Add 'dump' option to 'ccss-stylesheet-to-gtkrc'.Robert Staudinger1-23/+71
Also add ability to load stylesheets with 'user-agent', 'user' or 'author' precedence. This requires a new function ccss_grammar_create_stylesheet() for creating an empty stylesheet.
2009-07-03[feature] Support for multiple pseudo-classes per node.Robert Staudinger1-6/+7
2009-06-18[ccss-gtk] Move over stylesheet translation utility from the engine.Robert Staudinger2-1/+81
2009-06-17[gtk-stylesheet] Serialize colors in #rrggbba format.Robert Staudinger1-4/+4
2009-06-17[ccss-gtk] Move over function hooks from the CSS engine.Robert Staudinger6-0/+739
2009-06-17[color] Support function hooks for parsing colors.Robert Staudinger1-1/+1
Color properties can now be parsed through CSS functions provided by the library consumer. This requires "ccss-color-parser.h" to be installed. Also add "--enable-debug --enable-gtk-doc" to the configure line used by "autogen.sh".
2009-06-02[node] Actually use the cached values.Robert Staudinger1-2/+2
Clean up leftover commented code.
2009-04-09Force per library single header inclusion.Robert Staudinger5-13/+24
2009-04-09[build] Use $(NULL) terminators in makefiles.Robert Staudinger1-7/+16
2009-04-03Move property interpretation code back to ccss.Robert Staudinger1-3/+3
The 'background', 'border', 'border-image' and 'color' properties can now be queried in interpreted format without depending on cairo. Also implement a cache for loaded images (cairo surfaces). Cache key is the image file's uri.
2009-04-02Use vim modelines.Robert Staudinger7-0/+14
2008-12-17* ccss-gtk/ccss-gtk-stylesheet.c (accumulate_state), (accumulate),Robert Staudinger1-16/+22
(ccss_gtk_stylesheet_to_gtkrc): export all existing widget-styles, not just ones where color or style-properties are set, the engine can now draw using the fallback selector.
2008-12-17* ccss-gtk/ccss-gtk-stylesheet.c (serialize): export engine-specificRobert Staudinger1-0/+8
gtkrc block with type selector, to fall back when drawing without a widget pointer.
2008-12-11* ccss-doc/ccss-sections.txt:Robert Staudinger1-4/+2
* ccss-doc/tmpl/ccss-unused.sgml: * ccss-doc/tmpl/style.sgml: * ccss-doc/tmpl/stylesheet.sgml: * ccss-gtk/ccss-gtk-stylesheet.c (accumulate_state): * ccss/ccss-style-priv.h: * ccss/ccss-style.h: * ccss/ccss-stylesheet.c (ccss_stylesheet_query_type), (ccss_stylesheet_query): * ccss/ccss-stylesheet.h: * ccss/ccss.sym: * examples/example-1.c (main): * examples/example-2.c (main): * examples/example-3.c (main): * examples/example-4.c (main): * examples/example-5.c (main): Do not expose style constructor, return instance from stylesheet queries.
2008-12-11* ccss-cairo-doc/ccss-cairo-docs.sgml:Robert Staudinger3-47/+0
* ccss-cairo-doc/ccss-cairo-sections.txt: * ccss-cairo-doc/tmpl/ccss.sgml: * ccss-cairo/Makefile.am: * ccss-cairo/ccss-cairo-style-priv.h: * ccss-cairo/ccss-cairo-style.c (lookup_property_r), (ccss_cairo_style_draw_line), (gather_stroke), (gather_join), (gather_outline), (ccss_cairo_style_get_double), (ccss_cairo_style_get_string), (ccss_cairo_style_get_property): * ccss-cairo/ccss-cairo.c: * ccss-cairo/ccss-cairo.sym: * ccss-doc/ccss-docs.sgml: * ccss-doc/ccss-sections.txt: * ccss-doc/tmpl/ccss.sgml: * ccss-gtk/Makefile.am: * ccss-gtk/ccss-gtk.c: * ccss-gtk/ccss-gtk.sym: * ccss/Makefile.am: * ccss/ccss.c: * ccss/ccss.sym: * examples/example-1.c (main): * examples/example-2.c (main): * examples/example-3.c (main): * examples/example-4.c (main): * examples/example-5.c (main): Get rid of _init() and _shutdown() functions.
2008-12-10* ccss-cairo/ccss-background-parser.c:Robert Staudinger9-695/+1075
* ccss-cairo/ccss-border-parser.c: * ccss-cairo/ccss-cairo-grammar.c: * ccss-gtk/Makefile.am: * ccss-gtk/ccss-gtk-grammar.c (ccss_gtk_grammar_create): * ccss-gtk/ccss-gtk-property.c (parse_gboolean), (parse_gchararray), (parse_gfloat), (parse_gint), (parse_guchar), (parse_gdk_color), (parse_gtk_border), (parse_gtk_relief_style), (parse_gtk_requisition), (parse_gtk_shadow_type), (parse_gtk_toolbar_space_style), (parse_gtk_style_property), (property_destroy), (property_convert), (property_factory), (peek_property_class), (ccss_gtk_property_get_property_classes), (ccss_gtk_property_set_fallback_class), (ccss_gtk_property_is_style_property): * ccss-gtk/ccss-gtk-property.h: * ccss-gtk/ccss-gtk-style.c: * ccss-gtk/ccss-gtk-style.h: * ccss-gtk/ccss-gtk-stylesheet.c (get_type), (get_id), (get_pseudo_class), (style_iterator), (accumulate_state), (accumulate), (serialize_state), (serialize), (iter_func), (ccss_gtk_stylesheet_to_gtkrc): * ccss-gtk/ccss-gtk-stylesheet.h: * ccss-gtk/ccss-gtk.h: * ccss-gtk/ccss-gtk.sym: * ccss/ccss-stylesheet.c (ccss_stylesheet_foreach): * ccss/ccss-stylesheet.h: Stylesheet gtkrc serialisation infrastructure.
2008-12-10* ccss-cairo/ccss-cairo-color.h:Robert Staudinger2-25/+110
* ccss-cairo/ccss-cairo.sym: * ccss-gtk/ccss-gtk-grammar.c (parse_gtk_style_property), (property_convert): * ccss-gtk/ccss-gtk-grammar.h: Hook up gtk style property infrastructure.
2008-12-09* ccss-cairo/Makefile.am:Robert Staudinger2-7/+517
* ccss-cairo/ccss-cairo-color-priv.h: * ccss-cairo/ccss-background-parser.c (background_factory): * ccss-cairo/ccss-background.c (ccss_background_fill): * ccss-cairo/ccss-background.h: * ccss-cairo/ccss-border-parser.c (border_color_factory), (border_factory_impl): * ccss-cairo/ccss-border.h: * ccss-cairo/ccss-cairo-color.c (parse_name), (hex), (parse_hex), (ccss_cairo_color_parse), (ccss_cairo_color_create), (ccss_cairo_color_destroy), (ccss_cairo_color_convert), (peek_property_class), (ccss_cairo_color_get_ptable): * ccss-cairo/ccss-cairo-color.h: * ccss-cairo/ccss-cairo-grammar.c (ccss_cairo_grammar_create): * ccss-cairo/ccss-cairo-style.c (ccss_cairo_style_draw_line), (gather_stroke), (gather_background), (ccss_cairo_style_draw_rectangle), (ccss_cairo_style_draw_rectangle_with_gap): * ccss-cairo/ccss-cairo.h: * ccss-cairo/ccss-color.c: * ccss-cairo/ccss-color.h: Split out public ccss-cairo-color.h. * ccss-gtk/ccss-gtk-grammar.c (parse_gboolean), (parse_gchararray), (parse_gfloat), (parse_gint), (parse_guchar), (parse_gdk_color), (parse_gtk_border), (parse_gtk_relief_style), (parse_gtk_requisition), (parse_gtk_shadow_type), (parse_gtk_toolbar_space_style), (parse_gtk_style_property), (property_destroy), (property_factory), (peek_property_class), (ccss_gtk_grammar_create): * ccss-gtk/ccss-gtk-grammar.h: Work towards parsing gtk style properties.
2008-12-04* ccss-gtk/Makefile.am:Robert Staudinger4-76/+65
* ccss-gtk/ccss-gtk-properties.c: * ccss-gtk/ccss-gtk-properties.h: * ccss-gtk/ccss-gtk-grammar.c: Move gtkrc-property handling to ccss-gtk/ccss-gtk-grammar.c. * ccss/ccss-property-generic.c: Implement generic properties through a factory.
2008-12-04* ccss-doc/ccss-sections.txt:Robert Staudinger3-0/+70
* ccss-doc/tmpl/grammar.sgml: * ccss-gtk/Makefile.am: * ccss-gtk/ccss-gtk-properties.c: * ccss-gtk/ccss-gtk-properties.h: * ccss/ccss-grammar.c (ccss_grammar_lookup_property), (ccss_grammar_lookup_function): * ccss/ccss-grammar.h: * ccss/ccss.sym: API to query property- and function-handlers.
2008-12-03* ccss-gtk/Makefile.am:Robert Staudinger8-0/+267
* ccss-gtk/ccss-gtk-grammar.c (ccss_gtk_grammar_create): * ccss-gtk/ccss-gtk-grammar.h: * ccss-gtk/ccss-gtk-style.c (ccss_gtk_style_serialize): * ccss-gtk/ccss-gtk-style.h: * ccss-gtk/ccss-gtk.c (ccss_gtk_init), (ccss_gtk_shutdown): * ccss-gtk/ccss-gtk.h: * ccss-gtk/ccss-gtk.sym: Skeleton implementation for gtk support, not in the build chain yet.
2008-11-24* Makefile.am:Robert Staudinger5-407/+0
* ccss-cairo/Makefile.am: * ccss-cairo/ccss-background-parser.c (bg_attachment_parse), (bg_image_parse), (bg_position_parse), (bg_repeat_parse), (bg_size_parse), (background_factory), (background_attachment_new), (background_attachment_convert), (background_image_new), (background_image_convert), (background_position_new), (background_position_convert), (background_repeat_new), (background_repeat_convert), (background_size_new), (background_size_convert), (peek_property_class), (ccss_background_get_ptable): * ccss-cairo/ccss-background-parser.h: * ccss-cairo/ccss-background.c (create_pattern), (repeat), (repeat_x), (repeat_y), (no_repeat), (ccss_background_fill): * ccss-cairo/ccss-background.h: * ccss-cairo/ccss-border-image-parser.c (parse_tiling), (border_image_new), (border_image_convert), (peek_property_class), (ccss_border_image_get_ptable): * ccss-cairo/ccss-border-image-parser.h: * ccss-cairo/ccss-border-image.c (create_tile), (create_border), (create_middle), (paint), (ccss_border_image_draw): * ccss-cairo/ccss-border-image.h: * ccss-cairo/ccss-border-parser.c (match_style), (lookup_style), (parse_width), (parse_style), (parse_radius), (border_color_factory), (border_style_factory), (border_width_factory), (border_factory_impl), (border_factory), (border_left_factory), (border_top_factory), (border_right_factory), (border_bottom_factory), (border_radius_new), (border_radius_factory), (border_radius_convert), (border_style_new), (border_style_convert), (border_width_new), (border_width_convert), (peek_property_class), (ccss_border_get_ptable): * ccss-cairo/ccss-border-parser.h: * ccss-cairo/ccss-border.c (_pi), (line), (draw_none_line), (draw_dotted_line), (draw_dashed_line), (draw_solid_line), (get_line_draw_func), (join), (draw_none_join), (draw_solid_join), (get_join_draw_func), (ccss_border_clamp_radii), (border), (ccss_border_path), (ccss_border_draw): * ccss-cairo/ccss-border.h: * ccss-cairo/ccss-cairo-property.c (ccss_property_background_attachment), (ccss_property_background_color), (ccss_property_background_image), (ccss_property_background_position), (ccss_property_background_repeat), (ccss_property_background_size), (ccss_property_border_color), (ccss_property_border_style), (ccss_property_border_width), (ccss_property_border_bottom_color), (ccss_property_border_bottom_style), (ccss_property_border_bottom_width), (ccss_property_border_left_color), (ccss_property_border_left_style), (ccss_property_border_left_width), (ccss_property_border_right_color), (ccss_property_border_right_style), (ccss_property_border_right_width), (ccss_property_border_top_color), (ccss_property_border_top_style), (ccss_property_border_top_width), (ccss_property_border_radius), (ccss_property_border_top_left_radius), (ccss_property_border_top_right_radius), (ccss_property_border_bottom_right_radius), (ccss_property_border_bottom_left_radius), (ccss_property_color), (ccss_property_border_image): * ccss-cairo/ccss-cairo-property.h: * ccss-cairo/ccss-cairo-style-priv.h: * ccss-cairo/ccss-cairo-style.c (ccss_style_subsystem_init), (ccss_style_subsystem_shutdown), (lookup_property_r), (ccss_style_draw_line), (gather_stroke), (gather_join), (ccss_style_gather_outline), (ccss_style_gather_background), (ccss_style_draw_outline), (ccss_style_draw_rectangle), (ccss_style_draw_gap): * ccss-cairo/ccss-cairo-style.h: * ccss-cairo/ccss-cairo.c (ccss_cairo_init), (ccss_cairo_shutdown): * ccss-cairo/ccss-cairo.h: * ccss-cairo/ccss-cairo.sym: * ccss-cairo/ccss-color.c (parse_name), (hex), (parse_hex), (ccss_color_parse), (ccss_color_new), (ccss_color_free), (ccss_color_convert), (peek_property_class), (ccss_color_get_ptable): * ccss-cairo/ccss-color.h: * ccss-cairo/ccss-image.c (ccss_image_discard), (load_svg), (load_png), (load_image), (ccss_image_parse): * ccss-cairo/ccss-image.h: * ccss-cairo/ccss-position.c (ccss_position_parse), (ccss_position_get_pos), (ccss_position_get_size), (contain), (cover), (ccss_position_get_hsize), (ccss_position_get_vsize), (ccss_position_serialize): * ccss-cairo/ccss-position.h: * ccss-clutter/Makefile.am: * ccss-clutter/ccss-clutter.h: * ccss-clutter/example-1.c (main): * ccss-gtk/Makefile.am: * ccss-gtk/ccss-gtk-style.c: * ccss-gtk/ccss-gtk-style.h: * ccss-gtk/ccss-gtk.h: * ccss-gtk/ccss-gtk.sym.in: * ccss/Makefile.am: * ccss/ccss-background-parser.c: * ccss/ccss-background-parser.h: * ccss/ccss-background.c: * ccss/ccss-background.h: * ccss/ccss-block-priv.h: * ccss/ccss-block.c: * ccss/ccss-border-image-parser.c: * ccss/ccss-border-image-parser.h: * ccss/ccss-border-image.c: * ccss/ccss-border-image.h: * ccss/ccss-border-parser.c: * ccss/ccss-border-parser.h: * ccss/ccss-border.c: * ccss/ccss-border.h: * ccss/ccss-cairo-property.c: * ccss/ccss-cairo-property.h: * ccss/ccss-color.c: * ccss/ccss-color.h: * ccss/ccss-function-priv.h: * ccss/ccss-function.h: * ccss/ccss-image.c: * ccss/ccss-image.h: * ccss/ccss-parser.c: * ccss/ccss-position.c: * ccss/ccss-position.h: * ccss/ccss-priv.h: * ccss/ccss-property-priv.h: * ccss/ccss-property.c: * ccss/ccss-property.h: * ccss/ccss-style-priv.h: * ccss/ccss-style.c (ccss_style_get_double), (ccss_style_get_string): * ccss/ccss-style.h: * ccss/ccss.c (ccss_init), (ccss_shutdown): * ccss/ccss.sym: * configure.in: * libccss-gtk-1.pc.in: Split out the cairo-dependent code.
2008-11-11* ccss/ccss-stylesheet.c (ccss_stylesheet_add_from_file),Robert Staudinger1-1/+2
(query_node), (query_container_r), (ccss_stylesheet_query): * ccss/ccss-stylesheet.h: * ccss/ccss.sym: * doc/ccss-sections.txt: * doc/tmpl/ccss-unused.sgml: * doc/tmpl/stylesheet.sgml: Better naming consistency.
2008-11-07* Makefile.am:Robert Staudinger1-1/+1
* TODO: * ccss-clutter/Makefile.am: * ccss-clutter/ccss-clutter.c (ccss_clutter_paint): * ccss-clutter/ccss-clutter.h: * ccss-clutter/example-2.c (create_actor): * ccss-gtk/Makefile.am: * ccss/Makefile.am: * configure.in: Fix linking.
2008-11-07* ccss-gtk/Makefile.am:Robert Staudinger2-2/+8
* ccss-gtk/ccss-gtk.sym: * ccss-gtk/ccss-gtk.sym.in: Also export the base libraries' symbols.
2008-11-07* Makefile.am:Robert Staudinger5-0/+400
* cccss/Makefile.am: * ccss-gtk/Makefile.am: * ccss-gtk/ccss-gtk-style.c (ccss_style_draw_gap), (ccss_style_draw_polygon): * ccss-gtk/ccss-gtk-style.h: * ccss-gtk/ccss-gtk.h: * ccss-gtk/ccss-gtk.sym: * ccss/Makefile.am: * ccss/ccss-gtk-style.c: * ccss/ccss-gtk-style.h: * ccss/ccss-gtk.sym.in: * ccss/ccss.sym: * ccss/ccss.sym.in: * configure.in: * examples/Makefile.am: * libccss-gtk-1.pc.in: Library split-up, step 2: split out gtk dependent code into separate library.