Commit d4153280 authored by Erik Reider's avatar Erik Reider

Fixed alt action shortcut not actually activating the button

parent 5158f41e
namespace SwayNotificationCenter { namespace SwayNotificationCenter {
public class NotificationCloseButton : Adw.Bin { public class NotificationCloseButton : Adw.Bin {
Gtk.Revealer revealer; Gtk.Revealer revealer;
Gtk.Button button; Gtk.Button button;
...@@ -465,9 +464,16 @@ namespace SwayNotificationCenter { ...@@ -465,9 +464,16 @@ namespace SwayNotificationCenter {
unowned Gtk.Widget? button = null; unowned Gtk.Widget? button = null;
int i = 0; int i = 0;
foreach (unowned Gtk.Widget child in base_box.get_children ()) { for (unowned Gtk.Widget ? child = alt_actions_box.get_first_child ();
child != null;
child = child.get_next_sibling ()) {
if (!(child is Gtk.FlowBoxChild)) {
continue;
}
unowned Gtk.FlowBoxChild f_child = (Gtk.FlowBoxChild) child;
if (i == index) { if (i == index) {
button = child; button = f_child.child;
break;
} }
i++; i++;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment