Backport upstream patch to fix C compatibility issue

Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
This commit is contained in:
Florian Weimer 2024-01-20 23:16:22 +01:00
parent 01eb2281d3
commit 47bde83ae9
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,32 @@
commit 13c939659a844049ddc68e90c7830bf96ebe174d
Author: Marco Melorio <marco.melorio@protonmail.com>
Date: Thu Oct 5 19:21:39 2023 +0200
misc: Fix incompatible type warnings
diff --git a/panels/datetime/cc-datetime-panel.c b/panels/datetime/cc-datetime-panel.c
index 3544411d04431411..204b8ce44dc3ddd6 100644
--- a/panels/datetime/cc-datetime-panel.c
+++ b/panels/datetime/cc-datetime-panel.c
@@ -695,7 +695,7 @@ list_box_row_activated (CcDateTimePanel *self,
}
else if (row == GTK_LIST_BOX_ROW (self->timezone_row))
{
- present_window (self, self->timezone_dialog);
+ present_window (self, GTK_WINDOW (self->timezone_dialog));
}
}
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index c4792e194ef76499..dbc79b7466339c87 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -773,7 +773,7 @@ net_device_wifi_dispose (GObject *object)
NetDeviceWifi *self = NET_DEVICE_WIFI (object);
if (self->hotspot_dialog) {
- gtk_window_destroy (self->hotspot_dialog);
+ gtk_window_destroy (GTK_WINDOW (self->hotspot_dialog));
self->hotspot_dialog = NULL;
}

View File

@ -22,6 +22,7 @@ Summary: Utilities to configure the GNOME desktop
License: GPL-2.0-or-later AND CC0-1.0
URL: https://gitlab.gnome.org/GNOME/gnome-control-center/
Source0: https://download.gnome.org/sources/%{name}/45/%{name}-%{tarball_version}.tar.xz
Patch0: gnome-control-center-c99.patch
Patch: 0001-keyboard-Use-new-gnome-desktop-api-for-getting-defau.patch