Rename notify_notification_set_icon_data_from_pixbuf to notify_notification_set_icon_from_pixbuf.
This commit is contained in:
parent
3dac8b3d66
commit
78db57f7f2
|
@ -626,8 +626,8 @@ _gvalue_array_append_byte_array(GValueArray *array, guchar *bytes, gsize len)
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
notify_notification_set_icon_data_from_pixbuf(
|
notify_notification_set_icon_from_pixbuf(NotifyNotification *notification,
|
||||||
NotifyNotification *notification, GdkPixbuf *icon)
|
GdkPixbuf *icon)
|
||||||
{
|
{
|
||||||
gint width;
|
gint width;
|
||||||
gint height;
|
gint height;
|
||||||
|
|
|
@ -114,7 +114,7 @@ gboolean notify_notification_set_category(NotifyNotification *notification,
|
||||||
gboolean notify_notification_set_urgency(NotifyNotification *notification,
|
gboolean notify_notification_set_urgency(NotifyNotification *notification,
|
||||||
NotifyUrgency l);
|
NotifyUrgency l);
|
||||||
|
|
||||||
gboolean notify_notification_set_icon_data_from_pixbuf(
|
gboolean notify_notification_set_icon_from_pixbuf(
|
||||||
NotifyNotification *notification, GdkPixbuf *icon);
|
NotifyNotification *notification, GdkPixbuf *icon);
|
||||||
|
|
||||||
gboolean notify_notification_set_hint_int32(NotifyNotification *notification,
|
gboolean notify_notification_set_hint_int32(NotifyNotification *notification,
|
||||||
|
|
|
@ -62,6 +62,13 @@ main(int argc, char *argv[])
|
||||||
notify_notification_set_hint_int32(n, "x", 300);
|
notify_notification_set_hint_int32(n, "x", 300);
|
||||||
notify_notification_set_hint_int32(n, "y", 24);
|
notify_notification_set_hint_int32(n, "y", 24);
|
||||||
notify_notification_set_timeout(n, NOTIFY_TIMEOUT_NEVER);
|
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))
|
if (!notify_notification_show(n, NULL))
|
||||||
{
|
{
|
||||||
|
@ -99,9 +106,9 @@ main(int argc, char *argv[])
|
||||||
icon = gtk_widget_render_icon(helper,
|
icon = gtk_widget_render_icon(helper,
|
||||||
GTK_STOCK_DIALOG_QUESTION,
|
GTK_STOCK_DIALOG_QUESTION,
|
||||||
GTK_ICON_SIZE_DIALOG,
|
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))
|
if (!notify_notification_show(n, NULL))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue