month-cell: show +X in overflow label
Instead of "Other X Events".
This commit is contained in:
@@ -62,12 +62,12 @@
|
|||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can-focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="spacing">6</property>
|
<child>
|
||||||
<child type="center">
|
|
||||||
<object class="GtkLabel" id="overflow_label">
|
<object class="GtkLabel" id="overflow_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can-focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="ellipsize">end</property>
|
<property name="ellipsize">end</property>
|
||||||
|
<property name="xalign">0.0</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|||||||
@@ -563,7 +563,7 @@ gcal_month_cell_set_overflow (GcalMonthCell *self,
|
|||||||
|
|
||||||
self->n_overflow = n_overflow;
|
self->n_overflow = n_overflow;
|
||||||
|
|
||||||
text = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, "Other event", "Other %d events", n_overflow), n_overflow);
|
text = g_strdup_printf ("+%d", n_overflow);
|
||||||
gtk_label_set_text (GTK_LABEL (self->overflow_label), text);
|
gtk_label_set_text (GTK_LABEL (self->overflow_label), text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user