1. 09 Jan, 2012 12 commits
  2. 17 Nov, 2011 2 commits
    • 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.
    • 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
      If the old non-context calls are used we just hardcode a size
      of 100x100.
  3. 19 Jul, 2011 1 commit
  4. 13 Jun, 2011 1 commit
  5. 02 Jun, 2011 8 commits
  6. 22 May, 2011 1 commit
  7. 21 May, 2011 4 commits
  8. 18 May, 2011 3 commits
    • Benjamin Otte's avatar
      css: Make property parsing functions take a css parser · d2ef7162
      Benjamin Otte authored
      Instead of reading a string and then passing that in, let the parse
      functions use the full power of the parser.
    • Benjamin Otte's avatar
      css: Rewrite the parser · 7ccb9db7
      Benjamin Otte authored
      Instead of relying on GScanner and its idea of syntax, code up a parser
      that obeys the CSS spec.
      This also has the great side effect of reporting correct line numbers
      and positions.
      Also included is a reorganization of the returned error values. Instead
      of error values describing what type of syntax error was returned, the
      code just returns SYNTAX_ERROR. Other messages exist for when actual
      values don't work or when errors shouldn't be fatal due to backwards
    • Benjamin Otte's avatar
      css: Overhaul value parsing · a94ea9a4
      Benjamin Otte authored
      Value parsing only sometimes emitted errors. Sometimes it didn't emit
      errors but ignored the value, sometimes it took a default, sometimes it
      converted it to something it deemed suitable.
      While refactoring, I moved the whole GValue <=> char * conversion
      routines to a separate file, to make navigating the core css provider