From 89441016f3d9e975f1a336b44240b54b0ae93e2b Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Mon, 3 Jan 2005 19:00:02 +0000 Subject: utility routine to make it easier to add info items 2005-01-03 JP Rosevear * itip-view.c (itip_view_add_upper_info_item_printf): utility routine to make it easier to add info items (itip_view_add_lower_info_item_printf): ditto * itip-view.h: new protos * itip-formatter.c: use new printf routines everyhwere it makes sense svn path=/trunk/; revision=28220 --- plugins/itip-formatter/itip-view.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins/itip-formatter/itip-view.h') diff --git a/plugins/itip-formatter/itip-view.h b/plugins/itip-formatter/itip-view.h index 24b167dd31..d71f0796eb 100644 --- a/plugins/itip-formatter/itip-view.h +++ b/plugins/itip-formatter/itip-view.h @@ -23,6 +23,8 @@ #ifndef _ITIP_VIEW_H_ #define _ITIP_VIEW_H_ +#include +#include #include #include #include @@ -118,11 +120,13 @@ const struct tm *itip_view_get_start (ItipView *view); void itip_view_set_end (ItipView *view, struct tm *end); const struct tm *itip_view_get_end (ItipView *view); -guint itip_view_add_upper_info_item (ItipView *view, ItipViewInfoItemType, const char *message); +guint itip_view_add_upper_info_item (ItipView *view, ItipViewInfoItemType type, const char *message); +guint itip_view_add_upper_info_item_printf (ItipView *view, ItipViewInfoItemType, const char *format, ...) G_GNUC_PRINTF (3, 4); void itip_view_remove_upper_info_item (ItipView *view, guint id); void itip_view_clear_upper_info_items (ItipView *view); -guint itip_view_add_lower_info_item (ItipView *view, ItipViewInfoItemType, const char *message); +guint itip_view_add_lower_info_item (ItipView *view, ItipViewInfoItemType type, const char *message); +guint itip_view_add_lower_info_item_printf (ItipView *view, ItipViewInfoItemType type, const char *format, ...) G_GNUC_PRINTF (3, 4); void itip_view_remove_lower_info_item (ItipView *view, guint id); void itip_view_clear_lower_info_items (ItipView *view); -- cgit v1.2.3