summaryrefslogtreecommitdiffstats
path: root/desktop/lxpanel/patches/lxpanel-0.10.1-fix-pager-panel-width.patch
diff options
context:
space:
mode:
author Matteo Bernardini <ponce@slackbuilds.org>2024-05-14 23:04:00 +0200
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2024-05-18 06:55:48 +0700
commitb31e104a92e47ef15154e261ec9f2db12fe5db95 (patch)
treea32c56f4b40b3ca2ff549fb7e2e002d2ab6fb73a /desktop/lxpanel/patches/lxpanel-0.10.1-fix-pager-panel-width.patch
parent9c914427efccafa4057dd0be380c6f5bb17879d6 (diff)
downloadslackbuilds-b31e104a92e47ef15154e261ec9f2db12fe5db95.tar.gz
slackbuilds-b31e104a92e47ef15154e261ec9f2db12fe5db95.tar.xz
desktop/lxpanel: Updated for version 20230918_633a2d4.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to '')
-rw-r--r--desktop/lxpanel/patches/lxpanel-0.10.1-fix-pager-panel-width.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/desktop/lxpanel/patches/lxpanel-0.10.1-fix-pager-panel-width.patch b/desktop/lxpanel/patches/lxpanel-0.10.1-fix-pager-panel-width.patch
new file mode 100644
index 0000000000..4d53fc8f78
--- /dev/null
+++ b/desktop/lxpanel/patches/lxpanel-0.10.1-fix-pager-panel-width.patch
@@ -0,0 +1,37 @@
+From b46e3a39786a5be04bf9cc3844dd184308cd7495 Mon Sep 17 00:00:00 2001
+From: Ben Walsh <b@wumpster.com>
+Date: Sat, 6 Jun 2020 10:38:15 +0100
+Subject: [PATCH] Specify GTK_REQUEST_CONSTANT_SIZE. Fixes #773.
+
+---
+ src/panel.c | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/src/panel.c b/src/panel.c
+index da9e718b..b52fc796 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
+--
+2.27.0
+