X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdropdown.cpp;h=47496f4bc385121d7c5c2862cec06947427cb799;hb=2accd84fb2f8cc96efea8b3f27e381c2d2749160;hp=cab6d918e536210190a256b67b7965c0851c2f1b;hpb=4ab33a06c9f8a85b193d7db8bc6ee9b8895aab09;p=libs%2Fgltk.git diff --git a/source/dropdown.cpp b/source/dropdown.cpp index cab6d91..47496f4 100644 --- a/source/dropdown.cpp +++ b/source/dropdown.cpp @@ -97,14 +97,14 @@ void Dropdown::button_press(int x, int y, unsigned btn) if(!click_focus) { dropped = false; - state &= ~ACTIVE; + clear_state(ACTIVE); signal_ungrab_pointer.emit(); } } else if(btn==1) { dropped = true; - state |= ACTIVE; + set_state(ACTIVE); signal_grab_pointer.emit(); } } @@ -160,7 +160,7 @@ void Dropdown::list_item_selected(unsigned index, const std::string &item) if(dropped) { dropped = false; - state &= ~ACTIVE; + clear_state(ACTIVE); signal_ungrab_pointer.emit(); }