Skip to content

Commit

Permalink
Base Version: Updating from 3.36.0 -> 43.1 (Fedora 41)
Browse files Browse the repository at this point in the history
- Added "License verified" statement to the changelog.
  • Loading branch information
v-smalavathu committed Dec 5, 2024
1 parent ec144b0 commit a684bc7
Show file tree
Hide file tree
Showing 8 changed files with 2,558 additions and 12 deletions.
4 changes: 2 additions & 2 deletions SPECS-EXTENDED/libwnck3/libwnck3.signatures.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Signatures": {
"libwnck-3.36.0.tar.xz": "bc508150b3ed5d22354b0e6774ad4eee465381ebc0ace45eb0e2d3a4186c925f"
"libwnck-43.1.tar.xz": "634b4587b7367a493d3818c4b57740dac06153cf8f25cd64f5af16b657dd6845"
}
}
}
29 changes: 21 additions & 8 deletions SPECS-EXTENDED/libwnck3/libwnck3.spec
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
Vendor: Microsoft Corporation
Distribution: Azure Linux
# SPDX-License-Identifier: LGPL-2.0-or-later
%global source_name libwnck

Summary: Window Navigator Construction Kit
Name: libwnck3
Version: 3.36.0
Release: 3%{?dist}
Version: 43.1
Release: 1%{?dist}
URL: http://download.gnome.org/sources/%{source_name}/
Source0: http://download.gnome.org/sources/%{source_name}/3.36/%{source_name}-%{version}.tar.xz
License: GPLv2
Source0: http://download.gnome.org/sources/%{source_name}/43/%{source_name}-%{version}.tar.xz
License: LGPL-2.0-or-later

# https://gitlab.gnome.org/GNOME/libwnck/-/merge_requests/10
Patch1: libwnck_0001-Expose-window-scaling-factor_v43.1.patch
Patch2: libwnck_0002-icons-Use-cairo-surfaces-to-render-icons_v43.1.patch
Patch3: libwnck_0003-xutils-Change-icons-to-being-cairo-surfaces_v43.1.patch
Patch4: libwnck_0004-icons-Mark-GdkPixbuf-icons-as-deprecated_v43.1.patch
Patch5: libwnck_0005-tasklist-Add-surface-loader-function_v43.1.patch

BuildRequires: %{_bindir}/xsltproc
BuildRequires: gcc
BuildRequires: meson
BuildRequires: gettext
BuildRequires: glib2-devel
BuildRequires: gobject-introspection-devel
BuildRequires: gtk3-devel
BuildRequires: gtk-doc
BuildRequires: libXres-devel
BuildRequires: pango-devel
BuildRequires: startup-notification-devel
Expand All @@ -38,11 +46,11 @@ developing applications that use %{name}.


%prep
%setup -q -n %{source_name}-%{version}
%autosetup -n %{source_name}-%{version} -p1


%build
%meson -Dgtk_doc=false
%meson -Dgtk_doc=true
%meson_build


Expand All @@ -58,7 +66,7 @@ developing applications that use %{name}.
%files -f %{source_name}-3.0.lang
%license COPYING
%doc AUTHORS README NEWS
%{_libdir}/%{source_name}-3.so.*
%{_libdir}/%{source_name}-3.so.0*
%{_bindir}/wnck-urgency-monitor
%{_libdir}/girepository-1.0/Wnck-3.0.typelib

Expand All @@ -68,9 +76,14 @@ developing applications that use %{name}.
%{_libdir}/pkgconfig/*
%{_includedir}/%{source_name}-3.0/
%{_datadir}/gir-1.0/Wnck-3.0.gir
%doc %{_datadir}/gtk-doc


%changelog
* Mon Nov 18 2024 Sreenivasulu Malavathula <[email protected]> - 43.1-1
- Update Azure-Linux import from Fedora 41 (license: LGPL-2.0-r-later).
- License verified.

* Mon Mar 21 2022 Pawel Winogrodzki <[email protected]> - 3.36.0-3
- Adding BR on '%%{_bindir}/xsltproc'.
- Disabled gtk doc generation to remove network dependency during build-time.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
From 18398f3a78b3fe71e99b2da9258cb793b0809bad Mon Sep 17 00:00:00 2001
From: Victor Kareh <[email protected]>
Date: Tue, 6 Aug 2019 09:59:59 -0400
Subject: [PATCH 1/5] Expose window scaling factor

---
libwnck/private.h | 2 ++
libwnck/util.c | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+)

diff --git a/libwnck/private.h b/libwnck/private.h
index bf87619..0d88ddd 100644
--- a/libwnck/private.h
+++ b/libwnck/private.h
@@ -37,6 +37,8 @@ G_BEGIN_DECLS

WnckHandle *_wnck_get_handle (void);

+int _wnck_get_window_scaling_factor (void);
+
void _wnck_application_process_property_notify (WnckApplication *app,
XEvent *xevent);
void _wnck_window_process_property_notify (WnckWindow *window,
diff --git a/libwnck/util.c b/libwnck/util.c
index 83659dc..a58a99e 100644
--- a/libwnck/util.c
+++ b/libwnck/util.c
@@ -164,6 +164,27 @@ _wnck_get_handle (void)
return wnck_handle;
}

+/**
+ * _wnck_get_window_scaling_factor:
+ *
+ * Retrieves the internal scale factor that maps from window coordinates to the
+ * actual device pixels. On traditional systems this is 1, on high density
+ * outputs, it can be a higher value (typically 2).
+ */
+int
+_wnck_get_window_scaling_factor (void)
+{
+ GdkScreen *screen;
+ GValue value = G_VALUE_INIT;
+
+ g_value_init (&value, G_TYPE_INT);
+
+ screen = gdk_screen_get_default ();
+ if (gdk_screen_get_setting (screen, "gdk-window-scaling-factor", &value))
+ return g_value_get_int (&value);
+ return 1;
+}
+
/**
* wnck_set_default_icon_size:
* @size: the default size for windows and application standard icons.
--
2.46.1

Loading

0 comments on commit a684bc7

Please sign in to comment.