summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixSysNotify.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2020-09-24 03:04:19 (GMT)
committerKevin Walzer <kw@codebykevin.com>2020-09-24 03:04:19 (GMT)
commitebc1677c589d03c1bd29d1f9d4e974db70b49949 (patch)
tree36c103508dd0daaa87077cdfc366c9b3452cdb65 /unix/tkUnixSysNotify.c
parentb16d74095addf24d70e346fe19148bca4db0c46f (diff)
downloadtk-ebc1677c589d03c1bd29d1f9d4e974db70b49949.zip
tk-ebc1677c589d03c1bd29d1f9d4e974db70b49949.tar.gz
tk-ebc1677c589d03c1bd29d1f9d4e974db70b49949.tar.bz2
Notifications work now, just needed chars
Diffstat (limited to 'unix/tkUnixSysNotify.c')
-rwxr-xr-xunix/tkUnixSysNotify.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/unix/tkUnixSysNotify.c b/unix/tkUnixSysNotify.c
index a0dae18..4b93010 100755
--- a/unix/tkUnixSysNotify.c
+++ b/unix/tkUnixSysNotify.c
@@ -78,27 +78,13 @@ static int SysNotifyCmd (ClientData clientData, Tcl_Interp * interp,
char *title;
char *message;
- char *notiftitle;
- char *notifmessage;
-
- Tcl_DString msgdst;
- Tcl_DString titledst;
-
+
title = (char *) argv[1];
message = (char *) argv[2];
- if (title !=NULL) {
- notiftitle = (char *) Tcl_UtfToExternalDString(NULL, title, -1, & titledst);
- Tcl_DStringFree( & titledst);
- }
-
- if (message !=NULL){
- notifmessage = (char *) Tcl_UtfToExternalDString(NULL, message, -1, & msgdst);
- Tcl_DStringFree( & msgdst);
- }
NotifyNotification *notif;
- notif = notify_notification_new(notiftitle, notifmessage, NULL);
+ notif = notify_notification_new(title, message, NULL);
notify_notification_show(notif, NULL);