Skip to content

Commit 10cd1d5

Browse files
authored
Port to GTK4 (#289)
1 parent 81a8ed1 commit 10cd1d5

16 files changed

Lines changed: 119 additions & 426 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install Dependencies
2424
run: |
2525
apt update
26-
apt install -y libhandy-1-dev gettext libdbus-glib-1-dev libgdk-pixbuf2.0-dev libglib2.0-dev libgranite-dev libwingpanel-dev meson valac
26+
apt install -y libadwaita-1-dev gettext libdbus-glib-1-dev libgdk-pixbuf-2.0-dev libglib2.0-dev libgranite-7-dev libwingpanel-9-dev meson valac
2727
- name: Build
2828
env:
2929
DESTDIR: out

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77

88
You'll need the following dependencies:
99

10-
* libgdk-pixbuf2.0-dev
10+
* libadwaita-1-dev
11+
* libgdk-pixbuf-2.0-dev
1112
* libglib2.0-dev
12-
* libgranite-dev
13-
* libgtk-3-dev
14-
* libwingpanel-dev
13+
* libgranite-7-dev >= 7.7.0
14+
* libgtk-4-dev
15+
* libwingpanel-9-dev
1516
* meson >= 0.58.0
1617
* valac
1718

data/NotificationEntry.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
notification .card {
1+
notification grid.card {
22
border-radius: 6px;
33
padding: 6px;
44
/* Box shadow is clipped to the margin area */
@@ -54,5 +54,5 @@ notification .close {
5454

5555
notification .close image {
5656
color: #fff;
57-
-gtk-icon-shadow: 0 1px 1px alpha (#000, 0.6);
57+
-gtk-icon-shadow: 0 1px 1px alpha(#000, 0.6);
5858
}

data/gresource.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
<file compressed="true">indicator.css</file>
66
<file compressed="true">NotificationEntry.css</file>
77
</gresource>
8-
<gresource prefix="/io/elementary/notifications">
9-
<file alias="image-mask.svg" compressed="true" preprocess="xml-stripblanks">image-mask.svg</file>
10-
</gresource>
118
<gresource prefix="org/elementary/wingpanel/icons">
129
<file alias="24x24/status/notification-disabled-10-symbolic.svg" compressed="true" preprocess="xml-stripblanks">icons/disabled-10.svg</file>
1310
<file alias="24x24/status/notification-disabled-20-symbolic.svg" compressed="true" preprocess="xml-stripblanks">icons/disabled-20.svg</file>

data/image-mask.svg

Lines changed: 0 additions & 235 deletions
This file was deleted.

data/meson.build

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
i18n.merge_file(
22
input: 'notifications.metainfo.xml.in',
3-
output: 'io.elementary.wingpanel.notifications.metainfo.xml',
3+
output: gettext_name + '.metainfo.xml',
44
po_dir: meson.project_source_root() / 'po' / 'extra',
55
type: 'xml',
66
install: true,
77
install_dir: get_option('datadir') / 'metainfo',
88
)
99

10-
install_data('io.elementary.wingpanel.notifications.gschema.xml',
11-
install_dir: get_option('datadir') / 'glib-2.0' / 'schemas',
10+
install_data('notifications.gschema.xml',
11+
install_dir: get_option('datadir') / 'glib-2.0' / 'schemas',
12+
rename: gettext_name + '.gschema.xml'
1213
)

data/io.elementary.wingpanel.notifications.gschema.xml renamed to data/notifications.gschema.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<schemalist>
3-
<schema path="/io/elementary/wingpanel/notifications/" id="io.elementary.wingpanel.notifications">
3+
<schema path="/io/elementary/panel/notifications/" id="io.elementary.panel.notifications">
44
<key name="headers" type="a{sb}">
55
<default>{}</default>
66
<summary>The expanded state of the headers</summary>

data/notifications.metainfo.xml.in

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- Copyright 2019–2023 elementary, Inc. <contact@elementary.io> -->
33
<component type="addon">
4-
<id>io.elementary.wingpanel.notifications</id>
5-
<translation type="gettext">notifications-indicator</translation>
4+
<id>io.elementary.panel.notifications</id>
5+
<translation type="gettext">io.elementary.panel.notifications</translation>
66
<extends>io.elementary.wingpanel</extends>
77
<metadata_license>CC0-1.0</metadata_license>
88
<project_license>GPL-3.0+</project_license>
@@ -14,13 +14,13 @@
1414

1515
<screenshots>
1616
<screenshot type="default">
17-
<image>https://raw.githubusercontent.com/elementary/wingpanel-indicator-notifications/7.1.1/data/screenshot.png</image>
17+
<image>https://raw.githubusercontent.com/elementary/panel-notifications/7.1.1/data/screenshot.png</image>
1818
</screenshot>
1919
</screenshots>
2020

21-
<url type="bugtracker">https://github.com/elementary/wingpanel-indicator-notifications/issues</url>
21+
<url type="bugtracker">https://github.com/elementary/panel-notifications/issues</url>
2222
<url type="donation">https://elementary.io/get-involved#funding</url>
23-
<url type="help">https://github.com/elementary/wingpanel-indicator-notifications/discussions/categories/q-a</url>
23+
<url type="help">https://github.com/elementary/panel-notifications/discussions/categories/q-a</url>
2424
<url type="homepage">https://elementary.io/</url>
2525
<url type="translate">https://l10n.elementary.io/projects/wingpanel/wingpanel-indicator-notifications/</url>
2626

@@ -50,7 +50,7 @@
5050
</ul>
5151
</description>
5252
<issues>
53-
<issue url="https://github.com/elementary/wingpanel-indicator-notifications/issues/9">Replacing a bubble gives two notification entries</issue>
53+
<issue url="https://github.com/elementary/panel-notifications/issues/9">Replacing a bubble gives two notification entries</issue>
5454
</issues>
5555
</release>
5656

@@ -64,9 +64,9 @@
6464
</ul>
6565
</description>
6666
<issues>
67-
<issue url="https://github.com/elementary/wingpanel-indicator-notifications/issues/58">The character ' is not rendered correctly</issue>
68-
<issue url="https://github.com/elementary/wingpanel-indicator-notifications/issues/168">Indicator width changes when there are no notifications</issue>
69-
<issue url="https://github.com/elementary/wingpanel-indicator-notifications/issues/251">Update indicator animation</issue>
67+
<issue url="https://github.com/elementary/panel-notifications/issues/58">The character ' is not rendered correctly</issue>
68+
<issue url="https://github.com/elementary/panel-notifications/issues/168">Indicator width changes when there are no notifications</issue>
69+
<issue url="https://github.com/elementary/panel-notifications/issues/251">Update indicator animation</issue>
7070
</issues>
7171
</release>
7272

0 commit comments

Comments
 (0)