Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project('sway-notificaton-center', ['c', 'vala'],
project('sway-notification-center', ['c', 'vala'],
version: '0.12.6',
meson_version: '>= 0.60.0',
default_options: [ 'warning_level=2' ],
Expand Down
2 changes: 1 addition & 1 deletion src/blankWindow/blankWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace SwayNotificationCenter {
if (!GtkLayerShell.is_supported ()) {
stderr.printf ("GTKLAYERSHELL IS NOT SUPPORTED!\n");
stderr.printf ("Swaync 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 swaync\n");
Process.exit (1);
}
Expand Down
4 changes: 2 additions & 2 deletions src/configModel/configModel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -568,12 +568,12 @@ namespace SwayNotificationCenter {
}

/**
* Wether or not the windows should be opened as layer-shell surfaces
* Whether or not the windows should be opened as layer-shell surfaces
*/
public bool layer_shell { get; set; default = true; }

/**
* Wether or not the windows should cover the whole screen when
* Whether or not the windows should cover the whole screen when
* layer-shell is used.
*/
public bool layer_shell_cover_screen { get; set; default = true; }
Expand Down
4 changes: 2 additions & 2 deletions src/controlCenter/widgets/notifications/notifications.vala
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ namespace SwayNotificationCenter.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;
}
Expand All @@ -309,7 +309,7 @@ namespace SwayNotificationCenter.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;
}
Expand Down
10 changes: 5 additions & 5 deletions src/notificationGroup/notificationGroup.vala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace SwayNotificationCenter {
public enum NotificationGroupState {
EMPTY = 0,
SINLGE = 1,
SINGLE = 1,
MANY = 2;
}

Expand Down Expand Up @@ -256,7 +256,7 @@ namespace SwayNotificationCenter {

private void update_state () {
state = group.n_children >
NotificationGroupState.SINLGE ? NotificationGroupState.MANY :
NotificationGroupState.SINGLE ? NotificationGroupState.MANY :
(NotificationGroupState) group.n_children;

group.set_sensitive (!dismissed &&
Expand Down Expand Up @@ -355,7 +355,7 @@ namespace SwayNotificationCenter {
// 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");
Expand All @@ -368,7 +368,7 @@ namespace SwayNotificationCenter {
group.remove (notification);

update_state ();
if (state == NotificationGroupState.SINLGE) {
if (state == NotificationGroupState.SINGLE) {
set_expanded (false);
on_expand_change (false);
}
Expand All @@ -383,7 +383,7 @@ namespace SwayNotificationCenter {

// 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;
Expand Down
2 changes: 1 addition & 1 deletion src/notificationWindow/notificationWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace SwayNotificationCenter {
if (!GtkLayerShell.is_supported ()) {
stderr.printf ("GTKLAYERSHELL IS NOT SUPPORTED!\n");
stderr.printf ("Swaync 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 swaync\n");
Process.exit (1);
}
Expand Down
Loading