Permalink
Commits on Nov 10, 2010
  1. @abock

    Fully bind MaigreRcStyle as well

    Does the same thing to MaigreRcStyle as the previous commit did
    to MaigreStyle. Also added back a ThemeModule static class with
    Init and Exit methods.
    abock committed Nov 10, 2010
  2. @abock

    Make Maigre.Style a Gtk.Style at the managed level

    Properly matched the managed binding at the class and object level
    to MaigreStyle (native) and Maigre.Style (managed). When the native
    class_init is called, the class is also configured statically on
    the managed side. When the native init is called, the object is
    configured on the managed side.
    
    The GType is now configured on the managed class, so it can be
    a full binding. Essentially Maigre.Style complements the only partial
    binding of the stock Gtk.Style, but is fully compatible now in
    existing managed code.
    abock committed Nov 10, 2010
  3. @abock
  4. @abock

    Marshal GdkWindow as Gdk.Drawable

    In some cases the actual GObject being passed to the theme is a
    GdkPixmap, and so an InvalidCastException may be raised. GdkDrawable
    is the parent class of GdkWindow and GdkPixmap.
    abock committed Nov 10, 2010
  5. @abock
  6. @abock

    Run twf if it's available

    abock committed Nov 10, 2010
  7. @abock
  8. @abock

    Fixed MONO_LIBS typo against 2.8

    abock committed Nov 10, 2010
  9. @abock
  10. @abock

    Added back the run target

    abock committed Nov 10, 2010
  11. @abock

    Updated .gitignore

    abock committed Nov 10, 2010
  12. @abock

    Fixed MD Makefile syncing

    abock committed Nov 10, 2010
  13. @abock

    The build now distchecks

    abock committed Nov 10, 2010
  14. @abock
Commits on Nov 9, 2010
  1. @abock
  2. @abock

    Partially ported to automake

    abock committed Nov 9, 2010
  3. @abock
  4. @abock

    Added a lame configure script

    abock committed Nov 9, 2010
  5. @abock
  6. @abock

    Updated README

    abock committed Nov 9, 2010
  7. @abock

    Updated README

    abock committed Nov 9, 2010
  8. @abock

    Properly support calling into parent draw methods

    The way I was allowing for parent draw method invocation was incorrect,
    since a call to base.DrawFoo on the managed side would not invoke
    parent->draw_foo on the native side until the managed this.DrawFoo
    returned.
    
    Calls to base.DrawFoo now immediately invoke parent->draw_foo as
    expected.
    
    I also cleaned up the code formatting in the generator, building on the
    textwrap module.
    abock committed Nov 9, 2010
  9. @abock

    Restructured the code generator

    Defined actual classes for the parser, methods, arguments, and
    native+managed generators. These classes have a number of utilities
    useful for generation. The previous code generator iteration was a
    sloppy unreadable tangled mess, and I need to do delegate generation
    now. Doing that without a reorg would have made me cry.
    abock committed Nov 9, 2010
Commits on Nov 8, 2010
  1. @abock
  2. @abock

    Updated README

    abock committed Nov 8, 2010
  3. @abock

    More simplification through code generation

    Moved the maigre-codegen project to be a plain generic MD project
    abock committed Nov 8, 2010
  4. @abock

    Cleaned/reorged build

    Moved libmaigre/maigre-gtk-style-generator to its own project,
    maigre-codegen. Fixed up some makefile targets and integration.
    abock committed Nov 8, 2010
  5. @abock

    Big honkin' redesign of Maigre

    The binding generator now fully generates the native and managed side of
    the GtkStyle implementation. All methods and properties are fully
    automatically defined and bound on both sides.
    
    On the managed side, the Maigre.Theme class is now an abstract class,
    and new themes should subclass it. If one wishes to override a drawing
    function, which are now proper virtual methods on Maigre.Theme, then the
    method will be invoked for drawing. If a drawing method is not
    overridden, the base GtkStyle drawing call will be made. Additionally
    calling base.DrawFoo from the managed side will invoke the GtkStyle
    parent method if desired.
    
    All drawing arguments are presented as properties directly on the theme
    object and are cleared and updated before each Draw call. Properties
    that are not applicable to the current draw call will contain a default
    value (e.g. null).
    
    This implementation is much safer, since it's fully generated directly
    from gtkstyle.h, smaller because there is less manual code, faster
    because the native drawing context is blitted and directly marshalled
    from native to managed (no more field_set calls), and properly object
    oriented.
    abock committed Nov 8, 2010
Commits on Nov 7, 2010
  1. @abock

    Added .gitignore

    abock committed Nov 7, 2010
  2. @abock

    Proper Makefiles, MD integration, Cairo

    Added Cairo extension methods/classes, organized the project a little
    more, and added Makefile build support that integrates with the MD
    projects.
    abock committed Nov 7, 2010
Commits on Nov 6, 2010
  1. @abock

    Marshal arguments into a DrawContext structure

    All Draw methods now take a single argument, DrawContext. This structure
    contains properties for all possible Draw methods. Only properties valid
    to the current Draw method will be set to non-default values.
    abock committed Nov 6, 2010
Commits on Nov 5, 2010
  1. @abock

    Added README and COPYING

    abock committed Nov 5, 2010
  2. @abock

    Cleaned up

    abock committed Nov 5, 2010
  3. @abock

    Initial Maigre import

    abock committed Nov 5, 2010