diff --git a/TimerMainWindow.c b/TimerMainWindow.c index 646385b..59a65ad 100644 --- a/TimerMainWindow.c +++ b/TimerMainWindow.c @@ -367,7 +367,7 @@ void timer_main_window_read_mini_window_pos(TimerMainWindow *self, int *x, int * *y = g_key_file_get_integer(self->keyFile, "Cache", "smallY", NULL); } -static gboolean window_configure_callback(TimerMainWindow *win, GdkEventConfigure event, gpointer ptr) { +static gboolean window_configure_callback(TimerMainWindow *win, GdkEvent *event, gpointer ptr) { int x, y, w, h; gtk_window_get_size(GTK_WINDOW(win), &w, &h); gtk_window_get_position(GTK_WINDOW(win), &x, &y); @@ -408,7 +408,7 @@ static gboolean window_delete_event(TimerMainWindow *win, GdkEvent *evt, gpointe return FALSE; } -static gboolean mini_window_configure_callback(TimerMiniWindow *win, GdkEventConfigure event, TimerMainWindow *main) { +static gboolean mini_window_configure_callback(TimerMiniWindow *win, GdkEvent *event, TimerMainWindow *main) { if (main->miniWindowMode) { int x, y; gtk_window_get_position(GTK_WINDOW(win), &x, &y); diff --git a/TimerMiniWindow.c b/TimerMiniWindow.c index d29982c..3884a8b 100644 --- a/TimerMiniWindow.c +++ b/TimerMiniWindow.c @@ -46,4 +46,5 @@ 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); }