--- gigedit/trunk/src/gigedit/regionchooser.h 2008/02/03 14:10:47 1661 +++ gigedit/trunk/src/gigedit/regionchooser.h 2010/11/21 12:38:41 2151 @@ -1,5 +1,5 @@ /* -*- c++ -*- - * Copyright (C) 2006-2008 Andreas Persson + * Copyright (C) 2006-2010 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 @@ -23,7 +23,6 @@ #include #include -#include #include #include #include @@ -80,7 +79,6 @@ Gtk::HBox m_VirtKeybPropsBox; protected: - virtual void on_realize(); virtual bool on_expose_event(GdkEventExpose* e); virtual void on_size_request(GtkRequisition* requisition); virtual bool on_button_press_event(GdkEventButton* event); @@ -89,7 +87,6 @@ gig::Region* get_region(int key); - Glib::RefPtr gc; Gdk::Color activeKeyColor, red, grey1, white, black; sigc::signal region_selected; @@ -109,7 +106,7 @@ SortedRegions regions; bool is_black_key(int key); - void draw_region(int from, int to, const Gdk::Color& color); + void draw_key(int key, const Gdk::Color& color); void draw_digit(int key); void motion_resize_region(int x, int y); void motion_move_region(int x, int y);