popupbutton (used for the curve editors) now use only the left mouse button ; may be enhanced later with more common GTK's widget if necessary and if possible

This commit is contained in:
Hombre
2010-12-11 02:13:43 +01:00
parent 529831e10b
commit e70b89ee0c
4 changed files with 22 additions and 15 deletions

View File

@@ -31,6 +31,7 @@ class PopUpCommon {
public:
typedef sigc::signal<void, int> type_signal_changed;
type_signal_changed signal_changed();
Gtk::HBox* buttonGroup; // this is the widget to be packed
PopUpCommon (Gtk::Button* button, const Glib::ustring& label = "");
~PopUpCommon ();
@@ -45,7 +46,7 @@ private:
type_signal_changed message;
/*
TODO: MenuItem::get_label() seems to be buggy : it doesn't return any string, or an empty string !?
TODO: MenuItem::get_label() doesn't return any string, or an empty string !?
That's why we store entries strings in sItems, but it would be nice to get ride of it...
*/
std::vector<Glib::ustring> sItems;
@@ -54,7 +55,6 @@ private:
std::vector<Gtk::ImageMenuItem*> items;
Glib::ustring buttonHint;
Gtk::Image* buttonImage;
Gtk::Image* menuSymbol;
Gtk::HBox* imageContainer;
Gtk::Menu* menu;
Gtk::Button* button;