fix typos: waylans → wayland, SINLGE → SINGLE

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