reminders-section: Introduce 15 minute reminder
10 minute reminder is too little advanced notice. 30 minutes is too much. Say hello to 15 minute reminder.
This commit is contained in:
@@ -38,6 +38,7 @@ struct _GcalRemindersSection
|
||||
|
||||
GtkWidget *five_minutes_button;
|
||||
GtkWidget *ten_minutes_button;
|
||||
GtkWidget *fifteen_minutes_button;
|
||||
GtkWidget *thirty_minutes_button;
|
||||
GtkWidget *one_hour_button;
|
||||
GtkWidget *one_day_button;
|
||||
@@ -81,6 +82,7 @@ struct
|
||||
} minutes_button[] = {
|
||||
{ 5, OFFSET (five_minutes_button) },
|
||||
{ 10, OFFSET (ten_minutes_button) },
|
||||
{ 15, OFFSET (fifteen_minutes_button) },
|
||||
{ 30, OFFSET (thirty_minutes_button) },
|
||||
{ 60, OFFSET (one_hour_button) },
|
||||
{ 1440, OFFSET (one_day_button) },
|
||||
@@ -441,6 +443,7 @@ gcal_reminders_section_class_init (GcalRemindersSectionClass *klass)
|
||||
gtk_widget_class_bind_template_child (widget_class, GcalRemindersSection, one_hour_button);
|
||||
gtk_widget_class_bind_template_child (widget_class, GcalRemindersSection, one_week_button);
|
||||
gtk_widget_class_bind_template_child (widget_class, GcalRemindersSection, ten_minutes_button);
|
||||
gtk_widget_class_bind_template_child (widget_class, GcalRemindersSection, fifteen_minutes_button);
|
||||
gtk_widget_class_bind_template_child (widget_class, GcalRemindersSection, thirty_minutes_button);
|
||||
gtk_widget_class_bind_template_child (widget_class, GcalRemindersSection, three_days_button);
|
||||
gtk_widget_class_bind_template_child (widget_class, GcalRemindersSection, two_days_button);
|
||||
|
||||
@@ -65,6 +65,15 @@
|
||||
<signal name="clicked" handler="on_add_alarm_button_clicked_cb" object="GcalRemindersSection" swapped="no" />
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkModelButton" id="fifteen_minutes_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="text" translatable="yes">15 minutes</property>
|
||||
<signal name="clicked" handler="on_add_alarm_button_clicked_cb" object="GcalRemindersSection" swapped="no" />
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkModelButton" id="thirty_minutes_button">
|
||||
<property name="visible">True</property>
|
||||
|
||||
Reference in New Issue
Block a user