--- gigedit/trunk/src/gigedit/dimregionchooser.h 2010/11/21 12:38:41 2151 +++ gigedit/trunk/src/gigedit/dimregionchooser.h 2011/03/06 07:51:04 2169 @@ -1,5 +1,5 @@ /* -*- c++ -*- - * Copyright (C) 2006-2010 Andreas Persson + * Copyright (C) 2006-2011 Andreas Persson * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -21,9 +21,10 @@ #define GIGEDIT_DIMREGIONCHOOSER_H #include -#include #include +#include "compat.h" + #include #include @@ -44,14 +45,16 @@ std::set& dimregs) const; protected: +#if (GTKMM_MAJOR_VERSION == 2 && GTKMM_MINOR_VERSION < 90) || GTKMM_MAJOR_VERSION < 2 virtual bool on_expose_event(GdkEventExpose* e); - virtual void on_size_request(GtkRequisition* requisition); +#endif + virtual bool on_draw(const Cairo::RefPtr& cr); virtual bool on_button_press_event(GdkEventButton* event); virtual bool on_button_release_event(GdkEventButton* event); virtual bool on_motion_notify_event(GdkEventMotion* event); virtual bool on_focus(Gtk::DirectionType direction); - Gdk::Color blue, red, black, white, green; + Gdk::RGBA red, black, white; gig::Instrument* instrument; gig::Region* region;