Finish mini window
This commit is contained in:
parent
d02e75689b
commit
c60d798d7e
@ -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);
|
*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;
|
int x, y, w, h;
|
||||||
gtk_window_get_size(GTK_WINDOW(win), &w, &h);
|
gtk_window_get_size(GTK_WINDOW(win), &w, &h);
|
||||||
gtk_window_get_position(GTK_WINDOW(win), &x, &y);
|
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;
|
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) {
|
if (main->miniWindowMode) {
|
||||||
int x, y;
|
int x, y;
|
||||||
gtk_window_get_position(GTK_WINDOW(win), &x, &y);
|
gtk_window_get_position(GTK_WINDOW(win), &x, &y);
|
||||||
|
@ -46,4 +46,5 @@ 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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user