Author: pierre Date: Tue Oct 6 06:08:29 2020 New Revision: 4198 Log: Patch lxpanel for gtk3
Added: trunk/lxpanel/lxpanel-0.10.0-gtk3_fix-1.patch Added: trunk/lxpanel/lxpanel-0.10.0-gtk3_fix-1.patch ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ trunk/lxpanel/lxpanel-0.10.0-gtk3_fix-1.patch Tue Oct 6 06:08:29 2020 (r4198) @@ -0,0 +1,45 @@ +Submitted By: Pierre Labastie <pierre_dot_labastie_AT_neuf_DOT_fr> +Date: 2020-10-06 +Initial Package Version: 0.10.0 +Upstream Status: Not applicable. +Origin: https://sourceforge.net/p/lxde/bugs/773 +Description: This patch fixes the panel layout when + the pager applet is in use with GTK+-3. + +From b46e3a39786a5be04bf9cc3844dd184308cd7495 Mon Sep 17 00:00:00 2001 +From: Ben Walsh <[email protected]> +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 + -- http://lists.linuxfromscratch.org/listinfo/patches FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
