s/sumary/summary/g

This commit is contained in:
Mike Blumenkrantz 2014-07-30 19:18:24 -04:00
parent 4d9646b40e
commit 290e2369d3
7 changed files with 11 additions and 11 deletions

View File

@ -21,7 +21,7 @@ _notification_free(E_Notification_Notify *notify)
eina_stringshare_del(notify->icon.icon);
if (notify->icon.icon_path)
eina_stringshare_del(notify->icon.icon_path);
eina_stringshare_del(notify->sumary);
eina_stringshare_del(notify->summary);
if (notify->icon.raw.data)
free(notify->icon.raw.data);
free(notify);
@ -82,7 +82,7 @@ notify_cb(const Eldbus_Service_Interface *iface EINA_UNUSED, const Eldbus_Messag
n = E_OBJECT_ALLOC(E_Notification_Notify, E_NOTIFICATION_TYPE, _notification_free);
n->urgency = E_NOTIFICATION_NOTIFY_URGENCY_NORMAL;
if (!eldbus_message_arguments_get(msg, "susssasa{sv}i", &n->app_name,
&n->replaces_id, &n->icon.icon, &n->sumary,
&n->replaces_id, &n->icon.icon, &n->summary,
&n->body, &actions_iter, &hints_iter,
&n->timeout))
{
@ -99,7 +99,7 @@ notify_cb(const Eldbus_Service_Interface *iface EINA_UNUSED, const Eldbus_Messag
eldbus_message_iter_dict_iterate(hints_iter, "sv", hints_dict_iter, n);
n->app_name = eina_stringshare_add(n->app_name);
n->icon.icon = eina_stringshare_add(n->icon.icon);
n->sumary = eina_stringshare_add(n->sumary);
n->summary = eina_stringshare_add(n->summary);
n->body = eina_stringshare_add(n->body);
e_object_ref(E_OBJECT(n));
@ -321,7 +321,7 @@ notification_client_dbus_send(E_Notification_Notify *notify, E_Notification_Clie
notify->app_name ? : "",
notify->replaces_id,
notify->icon.icon ? : "",
notify->sumary ? : "",
notify->summary ? : "",
notify->body ? : "",
&actions))
goto error;
@ -411,7 +411,7 @@ e_notification_client_send(E_Notification_Notify *notify, E_Notification_Client_
copy->app_name = eina_stringshare_add(notify->app_name);
copy->body = eina_stringshare_add(notify->body);
copy->sumary = eina_stringshare_add(notify->sumary);
copy->summary = eina_stringshare_add(notify->summary);
copy->icon.icon = eina_stringshare_add(notify->icon.icon);
if (notify->icon.icon_path)
copy->icon.icon_path = eina_stringshare_add(notify->icon.icon_path);

View File

@ -26,7 +26,7 @@ typedef struct _E_Notification_Notify
unsigned int id;
const char *app_name;
unsigned replaces_id;
const char *sumary;
const char *summary;
const char *body;
int timeout;
E_Notification_Notify_Urgency urgency;

View File

@ -453,7 +453,7 @@ _battery_warning_popup(Instance *inst, int t, double percent)
n.app_name = _("Battery");
n.replaces_id = 0;
n.icon.icon = "battery-low";
n.sumary = _("Your battery is low!");
n.summary = _("Your battery is low!");
n.body = _("AC power is recommended.");
n.timeout = battery_config->alert_timeout * 1000;
e_notification_client_send(&n, _battery_warning_popup_cb, inst);

View File

@ -152,7 +152,7 @@ _e_mod_notify_refresh(Ind_Notify_Win *nwin)
edje_object_part_swallow(nwin->o_base, "e.swallow.icon", nwin->o_icon);
}
edje_object_part_text_set(nwin->o_base, "e.text.title", nwin->notify->sumary);
edje_object_part_text_set(nwin->o_base, "e.text.title", nwin->notify->summary);
edje_object_part_text_set(nwin->o_base, "e.text.message", nwin->notify->body);

View File

@ -55,7 +55,7 @@ _mixer_notify(const float val, E_Mixer_Instance *inst)
n.app_name = _("Mixer");
n.replaces_id = inst->notification_id;
n.icon.icon = icon;
n.sumary = _("Volume changed");
n.summary = _("Volume changed");
n.body = buf;
n.timeout = 2000;
e_notification_client_send(&n, _mixer_notify_cb, inst);

View File

@ -34,7 +34,7 @@ _notification_show_common(const char *summary,
n.app_name = "enlightenment";
n.replaces_id = replaces_id;
n.icon.icon = "enlightenment";
n.sumary = summary;
n.summary = summary;
n.body = body;
e_notification_client_send(&n, NULL, NULL);
}

View File

@ -530,7 +530,7 @@ _notification_format_message(Popup_Data *popup)
Evas_Object *o = popup->theme;
Eina_Strbuf *buf = eina_strbuf_new();
edje_object_part_text_set(o, "notification.text.title",
popup->notif->sumary);
popup->notif->summary);
/* FIXME: Filter to only include allowed markup? */
/* We need to replace \n with <br>. FIXME: We need to handle all the
* newline kinds, and paragraph separator. ATM this will suffice. */