Changeset 2434

Show
Ignore:
Timestamp:
01/19/06 01:35:17
Author:
chipx86
Message:

Make notify-send work again when a body isn't specified.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libnotify/ChangeLog

    r2433 r2434  
     1Thu Jan 19 01:34:57 PST 2006  Christian Hammond <chipx86@chipx86.com> 
     2 
     3    * tools/notify-send.c: 
     4      - Make notify-send work again when a body isn't specified. 
     5 
    16Wed Jan 18 22:24:10 PST 2006  Christian Hammond <chipx86@chipx86.com> 
    27 
  • trunk/libnotify/tools/notify-send.c

    r2408 r2434  
    3333{ 
    3434    const gchar *summary = NULL; 
    35     const gchar *body = NULL
     35    const gchar *body = ""
    3636    const gchar *type = NULL; 
    3737    char *urgency_str = NULL; 
     
    4343    poptContext opt_ctx; 
    4444    const char **args; 
    45         NotifyNotification *notify; 
     45   NotifyNotification *notify; 
    4646 
    4747    struct poptOption options[] = 
     
    6565    }; 
    6666 
    67         g_type_init ();  
     67   g_type_init ();  
    6868 
    6969    opt_ctx = poptGetContext("notify-send", argc, argv, options, 0); 
     
    129129        exit(1); 
    130130 
     131    notify  = notify_notification_new(summary, body, icon_str, NULL); 
     132    notify_notification_set_category(notify, type); 
     133    notify_notification_set_urgency(notify, urgency); 
     134    notify_notification_set_timeout(notify, expire_timeout); 
    131135 
    132     notify  = notify_notification_new (summary, body, icon_str, NULL);  
    133     notify_notification_set_category (notify, type); 
    134     notify_notification_set_urgency (notify, urgency); 
    135     notify_notification_set_timeout (notify, expire_timeout); 
    136  
    137     notify_notification_show_and_forget (notify, NULL); 
     136    notify_notification_show_and_forget(notify, NULL); 
    138137 
    139138    poptFreeContext(opt_ctx);