File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -430,10 +430,10 @@ public class MainWindow : Adw.ApplicationWindow {
430430 });
431431
432432 var window_gesture = new Gtk .GestureClick ();
433- toast_overlay .add_controller (window_gesture );
433+ view_stack .add_controller (window_gesture );
434434 window_gesture.pressed.connect ((n_press , x , y ) => {
435435 if (Services . EventBus . get_default (). item_edit_active) {
436- var target = toast_overlay . pick (x, y, Gtk . PickFlags . DEFAULT );
436+ var target = view_stack . pick (x, y, Gtk . PickFlags . DEFAULT );
437437
438438 bool clicked_on_editing_task = false ;
439439 var widget = target;
Original file line number Diff line number Diff line change @@ -209,18 +209,14 @@ public class Views.Today : Adw.Bin {
209209
210210 var today_header_box = new Gtk .Box (Gtk . Orientation . HORIZONTAL , 0 ) {
211211 margin_start = 24 ,
212- margin_end = 24
213- };
214- today_header_box.append (today_label );
215-
216- var today_box = new Gtk .Box (Gtk . Orientation . VERTICAL , 6 ) {
212+ margin_end = 24 ,
217213 margin_top = 12
218214 };
219- today_box .append (today_header_box );
215+ today_header_box .append (today_label );
220216
221217 today_revealer = new Gtk .Revealer () {
222218 transition_type = SLIDE_DOWN ,
223- child = today_box
219+ child = today_header_box
224220 };
225221
226222 listbox = new Gtk .ListBox () {
@@ -437,10 +433,10 @@ public class Views.Today : Adw.Bin {
437433 headerbar. revealer_title_box (scrolled_window. vadjustment. value >= Constants . HEADERBAR_TITLE_SCROLL_THRESHOLD );
438434 })] = scrolled_window. vadjustment;
439435
440- signal_map[Services.EventBus.get_default ().dim_content.connect ((active , focused_item_id ) => {
436+ signal_map[Services.EventBus.get_default ().dim_content.connect ((active ) => {
441437 title_box. sensitive = ! active;
442- today_box . sensitive = ! active;
443- overdue_box . sensitive = ! active;
438+ today_header_box . sensitive = ! active;
439+ overdue_header_box . sensitive = ! active;
444440 })] = Services.EventBus.get_default ();
445441 }
446442
You can’t perform that action at this time.
0 commit comments