Fixed a few bugs

This commit is contained in:
Alexander Rosenberg 2022-09-09 16:33:59 -07:00
parent e29b478de3
commit 7f01f53f66
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730
3 changed files with 2 additions and 1 deletions

View File

@ -439,6 +439,7 @@ static gboolean mini_window_delete_event(TimerMiniWindow *win, GdkEvent *evt, Ti
if (resp != GTK_RESPONSE_NO) { if (resp != GTK_RESPONSE_NO) {
main->miniWindowMode = FALSE; main->miniWindowMode = FALSE;
gtk_widget_destroy(GTK_WIDGET(main)); gtk_widget_destroy(GTK_WIDGET(main));
return TRUE;
} }
} }
main->miniWindowMode = FALSE; main->miniWindowMode = FALSE;

View File

@ -60,5 +60,4 @@ void timer_mini_window_class_init(TimerMiniWindowClass *class) {
void timer_mini_window_init(TimerMiniWindow *self) { void timer_mini_window_init(TimerMiniWindow *self) {
gtk_widget_init_template(GTK_WIDGET(self)); gtk_widget_init_template(GTK_WIDGET(self));
gtk_widget_set_sensitive(self->resetButton, FALSE);
} }

View File

@ -70,6 +70,7 @@
<object class="GtkButton" id="saveButton"> <object class="GtkButton" id="saveButton">
<property name="label" translatable="yes">Save</property> <property name="label" translatable="yes">Save</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can-focus">True</property> <property name="can-focus">True</property>
<property name="receives-default">True</property> <property name="receives-default">True</property>
</object> </object>