File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,9 @@ public class Notifications.AbstractBubble : Gtk.Window {
7777 halign = Gtk . Align . END ,
7878 hexpand = true
7979 };
80- carousel. append (revealer);
8180 carousel. append (new Gtk .Grid ());
81+ carousel. append (revealer);
82+ carousel. scroll_to (revealer, false );
8283
8384 child = carousel;
8485 default_height = 0 ;
@@ -89,8 +90,11 @@ public class Notifications.AbstractBubble : Gtk.Window {
8990 can_focus = false ;
9091 set_titlebar (new Gtk .Grid ());
9192
92- // we have only one real page, so we don't need to check the index
93- carousel. page_changed. connect (() = > closed (Notifications . Server . CloseReason . DISMISSED ));
93+ carousel. page_changed. connect ((index) = > {
94+ if (index == 0 ) {
95+ closed (Notifications . Server . CloseReason . DISMISSED );
96+ }
97+ });
9498 close_button. clicked. connect (() = > closed (Notifications . Server . CloseReason . DISMISSED ));
9599 closed. connect (close);
96100
You can’t perform that action at this time.
0 commit comments