Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] lxpanel: patch panel size under GTK3
@ 2023-01-09 23:18 kruceter
  2023-01-11  0:17 ` [PR PATCH] [Merged]: " sgn
  0 siblings, 1 reply; 2+ messages in thread
From: kruceter @ 2023-01-09 23:18 UTC (permalink / raw)
  To: ml

[-- 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"

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: lxpanel: patch panel size under GTK3
  2023-01-09 23:18 [PR PATCH] lxpanel: patch panel size under GTK3 kruceter
@ 2023-01-11  0:17 ` sgn
  0 siblings, 0 replies; 2+ messages in thread
From: sgn @ 2023-01-11  0:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 328 bytes --]

There's a merged pull request on the void-packages repository

lxpanel: patch panel size under GTK3
https://github.com/void-linux/void-packages/pull/41552

Description:
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**


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-11  0:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-09 23:18 [PR PATCH] lxpanel: patch panel size under GTK3 kruceter
2023-01-11  0:17 ` [PR PATCH] [Merged]: " sgn

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).