From 08501c9510621b6e57b13118f670e5961c900c7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 15 Feb 2020 11:19:25 +0100 Subject: [PATCH] calendar: Emit {next,prev}-{month,year} signals Fixes #833 --- gtk/gtkcalendar.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index 5525b4263d..70b34ff84c 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -827,6 +827,8 @@ calendar_set_month_prev (GtkCalendar *calendar) gtk_calendar_select_day (calendar, new_date); g_date_time_unref (new_date); + + g_signal_emit (calendar, gtk_calendar_signals[PREV_MONTH_SIGNAL], 0); } static void @@ -839,6 +841,8 @@ calendar_set_month_next (GtkCalendar *calendar) gtk_calendar_select_day (calendar, new_date); g_date_time_unref (new_date); + + g_signal_emit (calendar, gtk_calendar_signals[NEXT_MONTH_SIGNAL], 0); } static void @@ -851,6 +855,8 @@ calendar_set_year_prev (GtkCalendar *calendar) gtk_calendar_select_day (calendar, new_date); g_date_time_unref (new_date); + + g_signal_emit (calendar, gtk_calendar_signals[PREV_YEAR_SIGNAL], 0); } static void @@ -863,6 +869,8 @@ calendar_set_year_next (GtkCalendar *calendar) gtk_calendar_select_day (calendar, new_date); g_date_time_unref (new_date); + + g_signal_emit (calendar, gtk_calendar_signals[NEXT_YEAR_SIGNAL], 0); } static void