fix typos: waylans → wayland, SINLGE → SINGLE

parent 2581e697
......@@ -62,7 +62,7 @@ namespace XimperShellNotificationCenter {
if (!GtkLayerShell.is_supported ()) {
stderr.printf ("GTKLAYERSHELL IS NOT SUPPORTED!\n");
stderr.printf ("Ximper Shell Notification Center only works on Wayland!\n");
stderr.printf ("If running waylans session, try running:\n");
stderr.printf ("If running wayland session, try running:\n");
stderr.printf ("\tGDK_BACKEND=wayland ximper-shell-notification-center\n");
Process.exit (1);
}
......
......@@ -298,7 +298,7 @@ namespace XimperShellNotificationCenter.Widgets {
case "Return" :
if (group != null) {
var noti = group.get_latest_notification ();
if (group.state == NotificationGroupState.SINLGE && noti != null) {
if (group.state == NotificationGroupState.SINGLE && noti != null) {
noti.click_default_action ();
break;
}
......@@ -309,7 +309,7 @@ namespace XimperShellNotificationCenter.Widgets {
case "BackSpace" :
if (group != null && n_groups > 0) {
unowned Notification ?noti = group.get_latest_notification ();
if (group.state == NotificationGroupState.SINLGE && noti != null) {
if (group.state == NotificationGroupState.SINGLE && noti != null) {
noti.request_dismiss_notification (ClosedReasons.DISMISSED, false);
break;
}
......
namespace XimperShellNotificationCenter {
public enum NotificationGroupState {
EMPTY = 0,
SINLGE = 1,
SINGLE = 1,
MANY = 2;
}
......@@ -256,7 +256,7 @@ namespace XimperShellNotificationCenter {
private void update_state () {
state = group.n_children >
NotificationGroupState.SINLGE ? NotificationGroupState.MANY :
NotificationGroupState.SINGLE ? NotificationGroupState.MANY :
(NotificationGroupState) group.n_children;
group.set_sensitive (!dismissed &&
......@@ -355,7 +355,7 @@ namespace XimperShellNotificationCenter {
// otherwise, animate the whole group (collapsed single-notification)
if (state == NotificationGroupState.MANY) {
yield notification.remove_notification (!dismissed_by_swipe);
} else if (state == NotificationGroupState.SINLGE) {
} else if (state == NotificationGroupState.SINGLE) {
dismissed = true;
if (!yield play_remove_animation (!notification.dismissed_by_swipe)) {
debug ("Trying to play group removal animation twice. Ignoring");
......@@ -368,7 +368,7 @@ namespace XimperShellNotificationCenter {
group.remove (notification);
update_state ();
if (state == NotificationGroupState.SINLGE) {
if (state == NotificationGroupState.SINGLE) {
set_expanded (false);
on_expand_change (false);
}
......@@ -383,7 +383,7 @@ namespace XimperShellNotificationCenter {
// Skip animation if the notification was dismissed by swipe
bool dismissed_by_swipe = this.dismissed_by_swipe;
if (state == NotificationGroupState.SINLGE) {
if (state == NotificationGroupState.SINGLE) {
unowned Notification ?noti = (Notification ?) group.get_first_widget ();
if (noti != null) {
dismissed_by_swipe |= noti.dismissed_by_swipe;
......
......@@ -20,7 +20,7 @@ namespace XimperShellNotificationCenter {
if (!GtkLayerShell.is_supported ()) {
stderr.printf ("GTKLAYERSHELL IS NOT SUPPORTED!\n");
stderr.printf ("Ximper Shell Notification Center only works on Wayland!\n");
stderr.printf ("If running waylans session, try running:\n");
stderr.printf ("If running wayland session, try running:\n");
stderr.printf ("\tGDK_BACKEND=wayland ximper-shell-notification-center\n");
Process.exit (1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment