[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 04/09: Fix categories remaining scrolled when hidden.

noreply at xfce.org noreply at xfce.org
Sat Jan 18 16:26:26 CET 2020


This is an automated email from the git hooks/post-receive script.

g   o   t   t   c   o   d   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       a   n   n   o   t   a   t   e   d       t   a   g       v   2   .   3   .   5   
   in repository panel-plugins/xfce4-whiskermenu-plugin.

commit a765b803f7fac32e000be44ce04b61b882aa9763
Author: Graeme Gott <graeme at gottcode.org>
Date:   Wed Jan 8 07:15:40 2020 -0500

    Fix categories remaining scrolled when hidden.
---
 panel-plugin/window.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/panel-plugin/window.cpp b/panel-plugin/window.cpp
index 67de030..df97984 100644
--- a/panel-plugin/window.cpp
+++ b/panel-plugin/window.cpp
@@ -291,6 +291,10 @@ void WhiskerMenu::Window::hide()
 {
 	ungrab_pointer();
 
+	// Scroll categories to top
+	GtkAdjustment* adjustment = gtk_scrolled_window_get_vadjustment(m_sidebar);
+	gtk_adjustment_set_value(adjustment, gtk_adjustment_get_lower(adjustment));
+
 	// Reset any pressed category buttons
 	unset_pressed_category();
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list