Fixed datePopover behavior when choosing year/month

This commit is contained in:
Markus Koch 2017-02-03 17:27:12 +01:00
parent ba24dc9e9b
commit a02a4b1614

View File

@ -297,6 +297,10 @@ static void mainWindow_connect_signals(struct mainWindow *mainWindow)
"day-selected",
(GCallback) mainWindow_calendarSelected,
mainWindow);
g_signal_connect_swapped(mainWindow->calendarRange,
"day-selected-double-click",
(GCallback) gtk_popover_popdown,
mainWindow->popoverDate);
g_signal_connect(mainWindow->entryListSelection,
"changed",
@ -373,8 +377,6 @@ void mainWindow_calendarSelected(GtkWidget *widget, gpointer user_data)
text = g_strdup_printf("%d-%02d-%02d", year, month, day);
gtk_entry_set_text(GTK_ENTRY(mainWindow->selectedDateEntry), text);
g_free(text);
gtk_popover_popdown(GTK_POPOVER(mainWindow->popoverDate));
}
void mainWindow_entrySelected(GtkWidget *widget, gpointer user_data)