[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 04/28: Fix arrow keys not changing selection in search results.

noreply at xfce.org noreply at xfce.org
Sat Aug 20 18:33:00 CEST 2016


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

gottcode pushed a commit to annotated tag v1.0.1
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit d318b3b4984017b19a3a0e2ded0a37fc79935609
Author: Graeme Gott <graeme at gottcode.org>
Date:   Fri Jun 21 14:13:12 2013 -0400

    Fix arrow keys not changing selection in search results.
---
 src/menu.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/menu.cpp b/src/menu.cpp
index 722ac2e..5db3226 100644
--- a/src/menu.cpp
+++ b/src/menu.cpp
@@ -483,7 +483,11 @@ gboolean Menu::on_key_press_event(GtkWidget* widget, GdkEventKey* event)
 	if ((event->keyval == GDK_KEY_Up) || (event->keyval == GDK_KEY_Down))
 	{
 		GtkWidget* widget = nullptr;
-		if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(m_favorites_button)))
+		if (gtk_widget_get_visible(m_search_results->get_widget()))
+		{
+			widget = m_search_results->get_view()->get_widget();
+		}
+		else if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(m_favorites_button)))
 		{
 			widget = m_favorites->get_view()->get_widget();
 		}

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


More information about the Xfce4-commits mailing list