diff options
author | Logan Rathbone <poprocks@gmail.com> | 2021-02-15 15:14:51 -0500 |
---|---|---|
committer | Logan Rathbone <poprocks@gmail.com> | 2021-02-15 15:14:51 -0500 |
commit | 3b9f5f9cfb697814c45cbad7347420811aab8002 (patch) | |
tree | 84c181c14f6e9d4711178c87885c0993a7fbbded /src/notification.c | |
parent | 592e2555c352fdd85643b94030473f7dcd6095c4 (diff) | |
download | zenity-3b9f5f9cfb697814c45cbad7347420811aab8002.tar.gz |
Make icon notification-only.
s/--window-icon/--icon, now only for the notification component.
Update manpage accordingly.
Diffstat (limited to 'src/notification.c')
-rw-r--r-- | src/notification.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/notification.c b/src/notification.c index e5cfe27..a813c1e 100644 --- a/src/notification.c +++ b/src/notification.c @@ -44,7 +44,7 @@ static char *icon_file; static GHashTable *notification_hints; static NotifyNotification * -zenity_notification_new (gchar *message, gchar *icon_file) +zenity_notification_new (char *message, char *icon_file) { NotifyNotification *notif; char **text; @@ -79,10 +79,10 @@ on_notification_default_action (NotifyNotification *n, } static GHashTable * -zenity_notification_parse_hints_array (gchar **hints) +zenity_notification_parse_hints_array (char **hints) { GHashTable *result; - gchar **pair; + char **pair; int i; result = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); @@ -103,10 +103,10 @@ zenity_notification_parse_hints_array (gchar **hints) } static GHashTable * -zenity_notification_parse_hints (gchar *hints) +zenity_notification_parse_hints (char *hints) { GHashTable *result; - gchar **hint_array; + char **hint_array; hint_array = g_strsplit (g_strcompress (hints), "\n", MAX_HINTS); result = zenity_notification_parse_hints_array (hint_array); @@ -387,7 +387,7 @@ zenity_notification (ZenityData *data, notification = zenity_notification_new (notification_data->notification_text, - data->window_icon); + notification_data->icon); if (notification == NULL) exit (1); |