diff options
Diffstat (limited to 'plugins/itip-formatter/itip-view.c')
-rw-r--r-- | plugins/itip-formatter/itip-view.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/plugins/itip-formatter/itip-view.c b/plugins/itip-formatter/itip-view.c index 3734b74d92..a8a8a1e979 100644 --- a/plugins/itip-formatter/itip-view.c +++ b/plugins/itip-formatter/itip-view.c @@ -1048,6 +1048,29 @@ itip_view_add_upper_info_item (ItipView *view, ItipViewInfoItemType type, const return item->id; } +guint +itip_view_add_upper_info_item_printf (ItipView *view, ItipViewInfoItemType type, const char *format, ...) +{ + ItipViewPrivate *priv; + va_list args; + char *message; + guint id; + + g_return_val_if_fail (view != NULL, 0); + g_return_val_if_fail (ITIP_IS_VIEW (view), 0); + + priv = view->priv; + + va_start (args, format); + message = g_strdup_vprintf (format, args); + va_end (args); + + id = itip_view_add_upper_info_item (view, type, message); + g_free (message); + + return id; +} + void itip_view_remove_upper_info_item (ItipView *view, guint id) { @@ -1123,6 +1146,29 @@ itip_view_add_lower_info_item (ItipView *view, ItipViewInfoItemType type, const return item->id; } +guint +itip_view_add_lower_info_item_printf (ItipView *view, ItipViewInfoItemType type, const char *format, ...) +{ + ItipViewPrivate *priv; + va_list args; + char *message; + guint id; + + g_return_val_if_fail (view != NULL, 0); + g_return_val_if_fail (ITIP_IS_VIEW (view), 0); + + priv = view->priv; + + va_start (args, format); + message = g_strdup_vprintf (format, args); + va_end (args); + + id = itip_view_add_lower_info_item (view, type, message); + g_free (message); + + return id; +} + void itip_view_remove_lower_info_item (ItipView *view, guint id) { |