From 78db57f7f2fcb5258a1ed7b24de2c3fafc629c77 Mon Sep 17 00:00:00 2001 From: Christian Hammond Date: Fri, 20 Jan 2006 06:11:53 +0000 Subject: [PATCH] Rename notify_notification_set_icon_data_from_pixbuf to notify_notification_set_icon_from_pixbuf. --- libnotify/notification.c | 4 ++-- libnotify/notification.h | 2 +- tests/test-image.c | 11 +++++++++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/libnotify/notification.c b/libnotify/notification.c index b358018..5bf5caf 100644 --- a/libnotify/notification.c +++ b/libnotify/notification.c @@ -626,8 +626,8 @@ _gvalue_array_append_byte_array(GValueArray *array, guchar *bytes, gsize len) } gboolean -notify_notification_set_icon_data_from_pixbuf( - NotifyNotification *notification, GdkPixbuf *icon) +notify_notification_set_icon_from_pixbuf(NotifyNotification *notification, + GdkPixbuf *icon) { gint width; gint height; diff --git a/libnotify/notification.h b/libnotify/notification.h index 1ca9e03..6cbd3cd 100644 --- a/libnotify/notification.h +++ b/libnotify/notification.h @@ -114,7 +114,7 @@ gboolean notify_notification_set_category(NotifyNotification *notification, gboolean notify_notification_set_urgency(NotifyNotification *notification, NotifyUrgency l); -gboolean notify_notification_set_icon_data_from_pixbuf( +gboolean notify_notification_set_icon_from_pixbuf( NotifyNotification *notification, GdkPixbuf *icon); gboolean notify_notification_set_hint_int32(NotifyNotification *notification, diff --git a/tests/test-image.c b/tests/test-image.c index e7b845e..dc5a521 100644 --- a/tests/test-image.c +++ b/tests/test-image.c @@ -62,6 +62,13 @@ main(int argc, char *argv[]) notify_notification_set_hint_int32(n, "x", 300); notify_notification_set_hint_int32(n, "y", 24); notify_notification_set_timeout(n, NOTIFY_TIMEOUT_NEVER); + helper = gtk_button_new(); + icon = gtk_widget_render_icon(helper, + GTK_STOCK_DIALOG_QUESTION, + GTK_ICON_SIZE_DIALOG, + NULL); + + notify_notification_set_icon_from_pixbuf(n, icon); if (!notify_notification_show(n, NULL)) { @@ -99,9 +106,9 @@ main(int argc, char *argv[]) icon = gtk_widget_render_icon(helper, GTK_STOCK_DIALOG_QUESTION, GTK_ICON_SIZE_DIALOG, - ""); + NULL); - notify_notification_set_icon_data_from_pixbuf(n, icon); + notify_notification_set_icon_from_pixbuf(n, icon); if (!notify_notification_show(n, NULL)) {