From: kruceter <kruceter@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] lxpanel: patch panel size under GTK3
Date: Tue, 10 Jan 2023 00:18:44 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41552@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 481 bytes --]
There is a new pull request by kruceter against master on the void-packages repository
https://github.com/kruceter/void-packages lxpanel
https://github.com/void-linux/void-packages/pull/41552
lxpanel: patch panel size under GTK3
The provided patch fixes panel width not taking size of the screen.
Fixes #41479.
#### Testing the changes
- I tested the changes in this PR: **YES**
A patch file from https://github.com/void-linux/void-packages/pull/41552.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-lxpanel-41552.patch --]
[-- Type: text/x-diff, Size: 2322 bytes --]
From 3e72163d85e5b2a4be479a97bc828342c00ddb0a Mon Sep 17 00:00:00 2001
From: Krul Ceter <kruceter@proton.me>
Date: Tue, 10 Jan 2023 01:56:41 +0300
Subject: [PATCH] lxpanel: patch panel size under GTK3
The provided patch fixes panel width not taking size of the screen.
---
srcpkgs/lxpanel/patches/fix-panel-size.patch | 36 ++++++++++++++++++++
srcpkgs/lxpanel/template | 2 +-
2 files changed, 37 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/lxpanel/patches/fix-panel-size.patch
diff --git a/srcpkgs/lxpanel/patches/fix-panel-size.patch b/srcpkgs/lxpanel/patches/fix-panel-size.patch
new file mode 100644
index 000000000000..15ffccd0f9fc
--- /dev/null
+++ b/srcpkgs/lxpanel/patches/fix-panel-size.patch
@@ -0,0 +1,36 @@
+https://github.com/lxde/lxpanel/pull/38
+
+From 12576de7b83c634437217e23d74954070a1be2d5 Mon Sep 17 00:00:00 2001
+From: Ben Walsh <b@wumpster.com>
+Date: Sat, 6 Jun 2020 10:38:15 +0100
+Subject: [PATCH] Correct panel size under GTK3. Fixes Sourceforge #773.
+
+---
+ src/panel.c | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/src/panel.c b/src/panel.c
+index 45188dbe..2b5fc9be 100644
+--- a/src/panel.c
++++ b/src/panel.c
+@@ -293,6 +293,12 @@ lxpanel_get_preferred_height (GtkWidget *widget,
+ if (natural_height)
+ *natural_height = requisition.height;
+ }
++
++static GtkSizeRequestMode
++lxpanel_get_request_mode (GtkWidget *widget)
++{
++ return GTK_SIZE_REQUEST_CONSTANT_SIZE;
++}
+ #endif
+
+ static void lxpanel_size_allocate(GtkWidget *widget, GtkAllocation *a)
+@@ -413,6 +419,7 @@ static void lxpanel_class_init(PanelToplevelClass *klass)
+ #if GTK_CHECK_VERSION(3, 0, 0)
+ widget_class->get_preferred_width = lxpanel_get_preferred_width;
+ widget_class->get_preferred_height = lxpanel_get_preferred_height;
++ widget_class->get_request_mode = lxpanel_get_request_mode;
+ #else
+ widget_class->size_request = lxpanel_size_request;
+ #endif
diff --git a/srcpkgs/lxpanel/template b/srcpkgs/lxpanel/template
index 6dff9ac554f9..8db84312da09 100644
--- a/srcpkgs/lxpanel/template
+++ b/srcpkgs/lxpanel/template
@@ -1,7 +1,7 @@
# Template file for 'lxpanel'
pkgname=lxpanel
version=0.10.1
-revision=1
+revision=2
build_style=gnu-configure
configure_args="--enable-gtk3"
hostmakedepends="pkg-config intltool"
next reply other threads:[~2023-01-09 23:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-09 23:18 kruceter [this message]
2023-01-11 0:17 ` [PR PATCH] [Merged]: " sgn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41552@inbox.vuxu.org \
--to=kruceter@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).