Project

General

Profile

notifyactionsupport.patch

Jean-Alexandre Anglès d'Auriac, June 30, 2013 19:11

View differences:

src/notify/event.c
61 61

  
62 62
static void show_stopped (void)
63 63
{
64
    osd_show (_("Stopped"), _("Audacious is not playing."), "audacious", NULL);
64
    osd_show (_("Stopped"), _("Audacious is not playing."), NULL);
65 65
}
66 66

  
67 67
static void show_playing (void)
68 68
{
69 69
    if (last_title && last_message)
70
        osd_show (last_title, last_message, "audio-x-generic", last_pixbuf);
70
        osd_show (last_title, last_message, last_pixbuf);
71 71
}
72 72

  
73 73
static void playback_update (void)
src/notify/osd.c
74 74

  
75 75
static NotifyNotification * notification = NULL;
76 76

  
77
void osd_show (const char * title, const char * _message, const char * icon,
78
 GdkPixbuf * pixbuf)
77
void osd_show (const char * title, const char * _message, GdkPixbuf * pixbuf)
79 78
{
80 79
    char * message = g_markup_escape_text (_message, -1);
81 80

  
82
    if (pixbuf)
83
        icon = NULL;
84

  
85 81
    if (notification)
86
        notify_notification_update (notification, title, message, icon);
82
        notify_notification_update (notification, title, message, "audacious");
87 83
    else
88 84
    {
89
        notification = notify_notification_new (title, message, icon);
85
        notification = notify_notification_new (title, message, "audacious");
90 86
        osd_setup (notification);
91 87
    }
92 88

  
src/notify/osd.h
19 19

  
20 20
#include <gdk-pixbuf/gdk-pixbuf.h>
21 21

  
22
void osd_show (const char * title, const char * message, const char * icon, GdkPixbuf * pixbuf);
22
void osd_show (const char * title, const char * message, GdkPixbuf * pixbuf);
23 23
void osd_hide (void);