mirror of
https://github.com/elementary/gala.git
synced 2024-11-23 20:07:21 +03:00
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:
parent
1f15d25853
commit
c9324d31d2
@ -210,6 +210,11 @@ namespace Gala
|
||||
content = canvas;
|
||||
|
||||
dummy_material = new Cogl.Material ();
|
||||
|
||||
var click = new ClickAction ();
|
||||
click.clicked.connect (() => selected ());
|
||||
|
||||
add_action (click);
|
||||
}
|
||||
|
||||
public override void paint ()
|
||||
@ -238,13 +243,6 @@ namespace Gala
|
||||
base.paint ();
|
||||
}
|
||||
|
||||
public override bool button_release_event (ButtonEvent event)
|
||||
{
|
||||
selected ();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public void clear ()
|
||||
{
|
||||
destroy_all_children ();
|
||||
|
Loading…
Reference in New Issue
Block a user