Fixed datePopover behavior when choosing year/month
This commit is contained in:
parent
ba24dc9e9b
commit
a02a4b1614
@ -297,6 +297,10 @@ static void mainWindow_connect_signals(struct mainWindow *mainWindow)
|
|||||||
"day-selected",
|
"day-selected",
|
||||||
(GCallback) mainWindow_calendarSelected,
|
(GCallback) mainWindow_calendarSelected,
|
||||||
mainWindow);
|
mainWindow);
|
||||||
|
g_signal_connect_swapped(mainWindow->calendarRange,
|
||||||
|
"day-selected-double-click",
|
||||||
|
(GCallback) gtk_popover_popdown,
|
||||||
|
mainWindow->popoverDate);
|
||||||
|
|
||||||
g_signal_connect(mainWindow->entryListSelection,
|
g_signal_connect(mainWindow->entryListSelection,
|
||||||
"changed",
|
"changed",
|
||||||
@ -373,8 +377,6 @@ void mainWindow_calendarSelected(GtkWidget *widget, gpointer user_data)
|
|||||||
text = g_strdup_printf("%d-%02d-%02d", year, month, day);
|
text = g_strdup_printf("%d-%02d-%02d", year, month, day);
|
||||||
gtk_entry_set_text(GTK_ENTRY(mainWindow->selectedDateEntry), text);
|
gtk_entry_set_text(GTK_ENTRY(mainWindow->selectedDateEntry), text);
|
||||||
g_free(text);
|
g_free(text);
|
||||||
|
|
||||||
gtk_popover_popdown(GTK_POPOVER(mainWindow->popoverDate));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void mainWindow_entrySelected(GtkWidget *widget, gpointer user_data)
|
void mainWindow_entrySelected(GtkWidget *widget, gpointer user_data)
|
||||||
|
Loading…
Reference in New Issue
Block a user