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

noreply at xfce.org noreply at xfce.org
Mon Feb 16 23:52:55 CET 2015


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

gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 33a80581c501405887fd869397a1b8a0ba425dc2
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