use a click action on the icon groups to force both button press and release to be on that actor

This commit is contained in:
Tom Beckmann 2014-06-22 17:54:13 +02:00
parent 1f15d25853
commit c9324d31d2

View File

@ -210,6 +210,11 @@ namespace Gala
content = canvas; content = canvas;
dummy_material = new Cogl.Material (); dummy_material = new Cogl.Material ();
var click = new ClickAction ();
click.clicked.connect (() => selected ());
add_action (click);
} }
public override void paint () public override void paint ()
@ -238,13 +243,6 @@ namespace Gala
base.paint (); base.paint ();
} }
public override bool button_release_event (ButtonEvent event)
{
selected ();
return false;
}
public void clear () public void clear ()
{ {
destroy_all_children (); destroy_all_children ();