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

noreply at xfce.org noreply at xfce.org
Wed Jan 8 20:17:10 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       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 5e881beb3b57047e722723fe4fff05b621dc91cf
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 14a0da0..fd629d0 100644
--- a/panel-plugin/window.cpp
+++ b/panel-plugin/window.cpp
@@ -286,6 +286,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