Skip to content

Commit 76fd1b9

Browse files
authored
Merge branch 'main' into lenemter/add-portal-backend
2 parents 50d7d2e + badc062 commit 76fd1b9

File tree

10 files changed

+65
-46
lines changed

10 files changed

+65
-46
lines changed

po/extra/be.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ msgstr ""
88
"Project-Id-Version: extra\n"
99
"Report-Msgid-Bugs-To: \n"
1010
"POT-Creation-Date: 2025-10-05 17:49+0000\n"
11-
"PO-Revision-Date: 2025-07-28 13:55+0000\n"
12-
"Last-Translator: lenify <[email protected]>\n"
11+
"PO-Revision-Date: 2025-10-06 17:55+0000\n"
12+
"Last-Translator: anonymous <[email protected]>\n"
1313
"Language-Team: Belarusian <https://l10n.elementaryos.org/projects/desktop/"
1414
"notifications-extra/be/>\n"
1515
"Language: be\n"
@@ -34,7 +34,7 @@ msgstr "Сервер апавяшчэнняў для Pantheon"
3434

3535
#: data/notifications.metainfo.xml.in:30
3636
msgid "elementary, Inc."
37-
msgstr ""
37+
msgstr "elementary, Inc."
3838

3939
#: data/notifications.metainfo.xml.in:38 data/notifications.metainfo.xml.in:50
4040
#: data/notifications.metainfo.xml.in:63 data/notifications.metainfo.xml.in:78

po/extra/ie.po

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ msgstr ""
88
"Project-Id-Version: extra\n"
99
"Report-Msgid-Bugs-To: \n"
1010
"POT-Creation-Date: 2025-10-05 17:49+0000\n"
11-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12-
"Last-Translator: Automatically generated\n"
13-
"Language-Team: none\n"
11+
"PO-Revision-Date: 2025-10-06 17:55+0000\n"
12+
"Last-Translator: anonymous <[email protected]>\n"
13+
"Language-Team: Occidental <https://l10n.elementaryos.org/projects/desktop/"
14+
"notifications-extra/ie/>\n"
1415
"Language: ie\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"
19+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
20+
"X-Generator: Weblate 5.11.4\n"
1821

1922
#: data/notifications.metainfo.xml.in:10
2023
msgid "Notifications"
@@ -30,7 +33,7 @@ msgstr ""
3033

3134
#: data/notifications.metainfo.xml.in:30
3235
msgid "elementary, Inc."
33-
msgstr ""
36+
msgstr "elementary, Inc."
3437

3538
#: data/notifications.metainfo.xml.in:38 data/notifications.metainfo.xml.in:50
3639
#: data/notifications.metainfo.xml.in:63 data/notifications.metainfo.xml.in:78

po/extra/nb.po

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ msgstr ""
88
"Project-Id-Version: extra\n"
99
"Report-Msgid-Bugs-To: \n"
1010
"POT-Creation-Date: 2025-10-05 17:49+0000\n"
11-
"PO-Revision-Date: 2023-07-08 01:10+0000\n"
12-
"Last-Translator: Allan Nordhøy <[email protected]>\n"
13-
"Language-Team: Norwegian Bokmål <https://l10n.elementary.io/projects/desktop/"
14-
"notifications-extra/nb/>\n"
11+
"PO-Revision-Date: 2025-10-06 17:55+0000\n"
12+
"Last-Translator: anonymous <[email protected]>\n"
13+
"Language-Team: Norwegian Bokmål <https://l10n.elementaryos.org/projects/"
14+
"desktop/notifications-extra/nb/>\n"
1515
"Language: nb\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=2; plural=n != 1;\n"
20-
"X-Generator: Weblate 4.17\n"
20+
"X-Generator: Weblate 5.11.4\n"
2121

2222
#: data/notifications.metainfo.xml.in:10
2323
msgid "Notifications"
@@ -32,7 +32,6 @@ msgid "A notification server for Pantheon"
3232
msgstr ""
3333

3434
#: data/notifications.metainfo.xml.in:30
35-
#, fuzzy
3635
msgid "elementary, Inc."
3736
msgstr "elementary, Inc."
3837

po/extra/sco.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ msgstr ""
88
"Project-Id-Version: extra\n"
99
"Report-Msgid-Bugs-To: \n"
1010
"POT-Creation-Date: 2025-10-05 17:49+0000\n"
11-
"PO-Revision-Date: 2025-04-16 14:55+0000\n"
12-
"Last-Translator: Ben Gordon Agnew <[email protected]>\n"
11+
"PO-Revision-Date: 2025-10-06 17:55+0000\n"
12+
"Last-Translator: anonymous <[email protected]>\n"
1313
"Language-Team: Scots <https://l10n.elementaryos.org/projects/desktop/"
1414
"notifications-extra/sco/>\n"
1515
"Language: sco\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=2; plural=n != 1;\n"
20-
"X-Generator: Weblate 5.10.4\n"
20+
"X-Generator: Weblate 5.11.4\n"
2121

2222
#: data/notifications.metainfo.xml.in:10
2323
msgid "Notifications"
@@ -33,7 +33,7 @@ msgstr ""
3333

3434
#: data/notifications.metainfo.xml.in:30
3535
msgid "elementary, Inc."
36-
msgstr ""
36+
msgstr "elementary, Inc."
3737

3838
#: data/notifications.metainfo.xml.in:38 data/notifications.metainfo.xml.in:50
3939
#: data/notifications.metainfo.xml.in:63 data/notifications.metainfo.xml.in:78

po/extra/szl.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ msgstr ""
88
"Project-Id-Version: extra\n"
99
"Report-Msgid-Bugs-To: \n"
1010
"POT-Creation-Date: 2025-10-05 17:49+0000\n"
11-
"PO-Revision-Date: 2024-08-07 18:17+0000\n"
11+
"PO-Revision-Date: 2025-10-06 17:55+0000\n"
1212
"Last-Translator: anonymous <[email protected]>\n"
13-
"Language-Team: Silesian <https://l10n.elementary.io/projects/desktop/"
13+
"Language-Team: Silesian <https://l10n.elementaryos.org/projects/desktop/"
1414
"notifications-extra/szl/>\n"
1515
"Language: szl\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
2020
"|| n%100>=20) ? 1 : 2;\n"
21-
"X-Generator: Weblate 5.6.2\n"
21+
"X-Generator: Weblate 5.11.4\n"
2222

2323
#: data/notifications.metainfo.xml.in:10
2424
msgid "Notifications"
@@ -34,7 +34,7 @@ msgstr ""
3434

3535
#: data/notifications.metainfo.xml.in:30
3636
msgid "elementary, Inc."
37-
msgstr ""
37+
msgstr "elementary, Inc."
3838

3939
#: data/notifications.metainfo.xml.in:38 data/notifications.metainfo.xml.in:50
4040
#: data/notifications.metainfo.xml.in:63 data/notifications.metainfo.xml.in:78

po/extra/uz.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ msgstr ""
88
"Project-Id-Version: extra\n"
99
"Report-Msgid-Bugs-To: \n"
1010
"POT-Creation-Date: 2025-10-05 17:49+0000\n"
11-
"PO-Revision-Date: 2025-01-11 04:16+0000\n"
11+
"PO-Revision-Date: 2025-10-06 17:55+0000\n"
1212
"Last-Translator: anonymous <[email protected]>\n"
13-
"Language-Team: Uzbek <https://l10n.elementary.io/projects/desktop/"
13+
"Language-Team: Uzbek <https://l10n.elementaryos.org/projects/desktop/"
1414
"notifications-extra/uz/>\n"
1515
"Language: uz\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=2; plural=n != 1;\n"
20-
"X-Generator: Weblate 5.9.2\n"
20+
"X-Generator: Weblate 5.11.4\n"
2121

2222
#: data/notifications.metainfo.xml.in:10
2323
msgid "Notifications"
@@ -33,7 +33,7 @@ msgstr ""
3333

3434
#: data/notifications.metainfo.xml.in:30
3535
msgid "elementary, Inc."
36-
msgstr ""
36+
msgstr "elementary Inc."
3737

3838
#: data/notifications.metainfo.xml.in:38 data/notifications.metainfo.xml.in:50
3939
#: data/notifications.metainfo.xml.in:63 data/notifications.metainfo.xml.in:78

src/AbstractBubble.vala

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public class Notifications.AbstractBubble : Gtk.Window {
4141

4242
private Gtk.Revealer close_revealer;
4343
private Gtk.Box draw_area;
44+
private Gtk.Overlay overlay;
4445

4546
private uint timeout_id;
4647

@@ -82,7 +83,7 @@ public class Notifications.AbstractBubble : Gtk.Window {
8283
overflow = VISIBLE
8384
};
8485

85-
var overlay = new Gtk.Overlay () {
86+
overlay = new Gtk.Overlay () {
8687
child = draw_area
8788
};
8889
overlay.add_overlay (close_revealer);
@@ -102,11 +103,7 @@ public class Notifications.AbstractBubble : Gtk.Window {
102103
can_focus = false;
103104
set_titlebar (new Gtk.Grid ());
104105

105-
carousel.page_changed.connect ((index) => {
106-
if (index == 0) {
107-
closed (CloseReason.DISMISSED);
108-
}
109-
});
106+
carousel.page_changed.connect (on_page_changed);
110107
close_button.clicked.connect (() => closed (CloseReason.DISMISSED));
111108

112109
var motion_controller = new Gtk.EventControllerMotion ();
@@ -124,18 +121,7 @@ public class Notifications.AbstractBubble : Gtk.Window {
124121
}
125122
});
126123

127-
carousel.notify["position"].connect (() => {
128-
current_swipe_progress = carousel.position;
129-
130-
if (desktop_panel != null) {
131-
int left, right;
132-
get_blur_margins (out left, out right);
133-
134-
desktop_panel.add_blur (left, right, 16, 16, 9);
135-
} else if (Gdk.Display.get_default () is Gdk.X11.Display) {
136-
x11_update_mutter_hints ();
137-
}
138-
});
124+
carousel.notify["position"].connect (update_swipe_progress);
139125

140126
transparency_settings.changed["use-transparency"].connect (update_transparency);
141127
update_transparency ();
@@ -149,6 +135,27 @@ public class Notifications.AbstractBubble : Gtk.Window {
149135
}
150136
}
151137

138+
private void on_page_changed (Adw.Carousel carousel, uint index) {
139+
if (carousel.get_nth_page (index) != overlay) {
140+
closed (CloseReason.DISMISSED);
141+
}
142+
}
143+
144+
private void update_swipe_progress (Object obj, ParamSpec pspec) {
145+
var carousel = (Adw.Carousel) obj;
146+
147+
current_swipe_progress = carousel.position;
148+
149+
if (desktop_panel != null) {
150+
int left, right;
151+
get_blur_margins (out left, out right);
152+
153+
desktop_panel.add_blur (left, right, 16, 16, 9);
154+
} else if (Gdk.Display.get_default () is Gdk.X11.Display) {
155+
x11_update_mutter_hints ();
156+
}
157+
}
158+
152159
public new void present () {
153160
if (timeout_id != 0) {
154161
Source.remove (timeout_id);

src/Application.vala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ public class Notifications.Application : Gtk.Application {
8787
CanberraGtk4.context_get ().play_full (0, props);
8888
}
8989

90+
public static void play_sound (string sound_name) {
91+
Canberra.Proplist props;
92+
Canberra.Proplist.create (out props);
93+
94+
props.sets (Canberra.PROP_CANBERRA_CACHE_CONTROL, "volatile");
95+
props.sets (Canberra.PROP_EVENT_ID, sound_name);
96+
97+
CanberraGtk4.context_get ().play_full (0, props);
98+
}
99+
90100
public static int main (string[] args) {
91101
var app = new Application ();
92102
return app.run (args);

src/Bubble.vala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2023 elementary, Inc. (https://elementary.io)
2+
* Copyright 2019-2025 elementary, Inc. (https://elementary.io)
33
* SPDX-License-Identifier: GPL-3.0-or-later
44
*/
55

@@ -56,7 +56,7 @@ public class Notifications.Bubble : AbstractBubble {
5656
notification.app_info.launch_uris_async.begin (null, null, null, (obj, res) => {
5757
try {
5858
((AppInfo) obj).launch_uris_async.end (res);
59-
closed (UNDEFINED);
59+
closed (CloseReason.UNDEFINED);
6060
} catch (Error e) {
6161
warning ("Unable to launch app: %s", e.message);
6262
}

src/FdoActionGroup.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 elementary, Inc. (https://elementary.io)
2+
* Copyright 2023-2025 elementary, Inc. (https://elementary.io)
33
* SPDX-License-Identifier: GPL-3.0-or-later
44
*
55
* Author: Gustavo Marques <[email protected]>

0 commit comments

Comments
 (0)