mirror of
https://github.com/elementary/gala.git
synced 2024-11-27 15:45:31 +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;
|
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 ();
|
||||||
|
Loading…
Reference in New Issue
Block a user