Changeset 5181


Ignore:
Timestamp:
Mar 2, 2008, 4:14:46 PM (14 years ago)
Author:
charles
Message:

(gtk) #749: libnotify tweaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/notify.c

    r5126 r5181  
    88 * the Transmission project.
    99 *
    10  * $Id:$
     10 * $Id$
    1111 */
    1212
     
    5656{
    5757    const tr_info * info = tr_torrent_info( tor );
    58     char * buf = g_strdup_printf( "%s was downloaded", info->name );
    59     NotifyNotification * n = notify_notification_new( "Torrent Complete", buf, "transmission", NULL );
     58    NotifyNotification * n = notify_notification_new( "Torrent Complete", info->name, "transmission", NULL );
    6059 
    6160    if (info->fileCount == 1)
     
    6564                                    NOTIFY_ACTION_CALLBACK(notifyCallback), tor, NULL );
    6665    notify_notification_show( n, NULL );
    67 
    68     g_free( buf );
    6966}
    7067
Note: See TracChangeset for help on using the changeset viewer.