1. 09 Jan, 2012 8 commits
  2. 22 Dec, 2011 1 commit
  3. 17 Nov, 2011 4 commits
    • Alexander Larsson's avatar
      Add initial cut at win32 theme support for CSS · abe6598a
      Alexander Larsson authored
      We now support -gtk-win32-theme-part(class,part,state) in background
      and border-image CSS properties. This renders the corresponding
      theme part using DrawThemeBackground() and acts as a base for a
      CSS based windows theme.
      
      Note that we build the parsing code even on non-win32 so that
      all themese will parse the same on all arches. We draw pink instead
      of the actual theme parts on non-win32 though.
      abe6598a
    • Alexander Larsson's avatar
      make _gtk_style_property_resolve copy the result to an output value · 8b644b40
      Alexander Larsson authored
      This is preparation for allowing it to return a newly created
      value, rather than just copying one.
      8b644b40
    • Alexander Larsson's avatar
      Remove _gtk_style_properties_peek_property · 7104b4b5
      Alexander Larsson authored
      We want to move to a world where getting style properties can
      allocate a new value, depending on the style property context.
      In this world we can't expose "peeking" a property, as we neet
      to return a ref to the property that is newly created.
      
      So, we move the peek code into get_property and use get_property
      from get_valist.
      7104b4b5
    • Alexander Larsson's avatar
      Add GtkStylePropertyContext and use it in when getting style properties · c09148ca
      Alexander Larsson authored
      At the toplevel we have _gtk_theming_engine_get, which lets us pass
      in a property context with (atm) the size to get the property for.
      Then there is a lot of plumbing to push this down into the lower
      layers of the style property code until finally hitting
      the property resolvers.
      
      I need this because I will be adding a property resolver for win32
      theme parts, and they render differently depending on the size
      (i.e. they don't scale linearly). The idea is that the code
      to get the background properties will pass in the final size
      and we will resolve the theme part specification to that particular
      size.
      
      If the old non-context calls are used we just hardcode a size
      of 100x100.
      c09148ca
  4. 15 Oct, 2011 1 commit
  5. 19 Jul, 2011 1 commit
  6. 13 Jun, 2011 1 commit
  7. 09 Jun, 2011 1 commit
    • Cosimo Cecchi's avatar
      styleproperty: turn border-image into a shorthand property · e3dd437b
      Cosimo Cecchi authored
      It's composed by
      - border-image-source: a cairo_pattern_t holding an image from file or a
        gradient
      - border-image-slice: a GtkBorder containing the slice offsets to apply
        on the image
      - border-image-repeat: a GtkRepeatType for the image
      
      We deviate from pure CSS3 in the following ways:
      
      * border-image-width is assumed to be always 1, i.e. always equal to
        what's specified by border-width. I don't think it's a particularly
        useful property to have, but we could add it later if needed.
      * border-image-outset is absent, as we can't render outside of the
        allocation yet.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=651194
      e3dd437b
  8. 02 Jun, 2011 9 commits
  9. 30 May, 2011 1 commit
  10. 27 May, 2011 1 commit
  11. 21 May, 2011 12 commits