[gtk] calendar: Emit {next,prev}-{month,year} signals



commit 08501c9510621b6e57b13118f670e5961c900c7d
Author: Timm Bäder <mail baedert org>
Date:   Sat Feb 15 11:19:25 2020 +0100

    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]