From 7f01f53f6615072257fd97f1a95d47367705da3b Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Fri, 9 Sep 2022 16:33:59 -0700 Subject: [PATCH] Fixed a few bugs --- TimerMainWindow.c | 1 + TimerMiniWindow.c | 1 - ui/mini-window.glade | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TimerMainWindow.c b/TimerMainWindow.c index 0ef12cb..dc97060 100644 --- a/TimerMainWindow.c +++ b/TimerMainWindow.c @@ -439,6 +439,7 @@ static gboolean mini_window_delete_event(TimerMiniWindow *win, GdkEvent *evt, Ti if (resp != GTK_RESPONSE_NO) { main->miniWindowMode = FALSE; gtk_widget_destroy(GTK_WIDGET(main)); + return TRUE; } } main->miniWindowMode = FALSE; diff --git a/TimerMiniWindow.c b/TimerMiniWindow.c index 04bbe89..5a0ddbf 100644 --- a/TimerMiniWindow.c +++ b/TimerMiniWindow.c @@ -60,5 +60,4 @@ void timer_mini_window_class_init(TimerMiniWindowClass *class) { void timer_mini_window_init(TimerMiniWindow *self) { gtk_widget_init_template(GTK_WIDGET(self)); - gtk_widget_set_sensitive(self->resetButton, FALSE); } diff --git a/ui/mini-window.glade b/ui/mini-window.glade index 701a5a3..d14ee41 100644 --- a/ui/mini-window.glade +++ b/ui/mini-window.glade @@ -70,6 +70,7 @@ Save True + False True True