Age | Commit message (Collapse) | Author | Files | Lines |
|
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.
|
|
|
|
|
|
|
|
Move functions to "unstable" headers that can be used at own
risk by those wanting to implement custom properties.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Propagate settings to the embedded label, so text shows up in the
correct colour.
|
|
This fixes gtk-entries' selection background colour.
|
|
Set text/base instead of fg/bg on text widgets while going along.
|
|
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.
|
|
|
|
|
|
|
|
|
|
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".
|
|
Clean up leftover commented code.
|
|
|
|
|
|
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.
|
|
|
|
(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.
|
|
gtkrc block with type selector, to fall back when drawing without a
widget pointer.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
(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.
|
|
* 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.
|
|
* ccss-gtk/ccss-gtk.sym:
* ccss-gtk/ccss-gtk.sym.in:
Also export the base libraries' symbols.
|
|
* 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.
|