!49 修复托盘区域获取托盘位置图标,更改分辨率后错误

From: @wangxiaoqing987 
Reviewed-by: @liubuguiii 
Signed-off-by: @liubuguiii
This commit is contained in:
openeuler-ci-bot 2022-08-30 06:59:24 +00:00 committed by Gitee
commit ce54320fbb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,33 @@
From b2dc162c8ebaea927582a423b7467fd00023ab98 Mon Sep 17 00:00:00 2001
From: wangxiaoqing <wangxiaoqing@kylinsec.com.cn>
Date: Tue, 30 Aug 2022 11:22:55 +0800
Subject: [PATCH] fix(tray):Fix the icon location error when system resolution
change
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修复托盘区域获取托盘位置图标,更改分辨率后错误问题
Releated #I5O77O
Signed-off-by: wangxiaoqing <wangxiaoqing@kylinsec.com.cn>
---
src/tray/kiran-tray.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tray/kiran-tray.c b/src/tray/kiran-tray.c
index 2e7d1b9..c169a1e 100644
--- a/src/tray/kiran-tray.c
+++ b/src/tray/kiran-tray.c
@@ -992,7 +992,7 @@ get_widget_geometry(GtkWidget *widget)
{
window = gtk_widget_get_window(parent);
{
- gdk_window_get_position(window, &x, &y);
+ gdk_window_get_origin(window, &x, &y);
}
parent = gtk_widget_get_parent(parent);
}
--
2.36.1

View File

@ -1,6 +1,6 @@
Name: kiran-menu
Version: 2.3.0
Release: 8
Release: 9
Summary: Applets for mate panel from Kiran Desktop
License: MulanPSL-2.0
@ -14,6 +14,7 @@ Patch1004: 0001-fix-connect-Fix-some-possible-crash-problems-caused-.patch
Patch1005: 0002-fix-coredump-Fix-the-coredump-problem-caused-by-null.patch
Patch1006: 0001-fix-coredump-Fix-the-coredump-problem-caused-by-Rece.patch
Patch1007: 0002-feature-gitlab-Add-.gitlab-ci.yml.patch
Patch1008: 0001-fix-tray-Fix-the-icon-location-error-when-system-res.patch
BuildRequires: cmake > 3.0
@ -94,6 +95,9 @@ gtk-update-icon-cache -f /usr/share/icons/hicolor/
%changelog
* Tue Aug 30 2022 wangxiaoqing <wangxiaoqing@kylinsec.com.cn> - 2.3.0-9
- KYOS-B: Fix the icon location error when system resolution change.
* Thu Aug 25 2022 tangjie02 <tangjie02@kylinsec.com.cn> - 2.3.0-8
- KYOS-B: Fix the coredump problem caused by RecentFilesListBox::load