[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 07/10: Fix icon view skipping first row.
noreply at xfce.org
noreply at xfce.org
Tue Dec 31 11:39:56 CET 2019
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 2ab1c54ff4e1194d4c209d63977c5cfc0bb1cc68
Author: Graeme Gott <graeme at gottcode.org>
Date: Tue Dec 24 11:21:33 2019 -0500
Fix icon view skipping first row.
---
panel-plugin/window.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/panel-plugin/window.cpp b/panel-plugin/window.cpp
index 481addb..80fdf48 100644
--- a/panel-plugin/window.cpp
+++ b/panel-plugin/window.cpp
@@ -846,7 +846,13 @@ gboolean WhiskerMenu::Window::on_key_press_event(GtkWidget* widget, GdkEvent* ev
GtkWidget* search = GTK_WIDGET(m_search_entry);
if ((widget == search) || (gtk_window_get_focus(m_window) == search))
{
+ GtkTreePath* path = page->get_view()->get_cursor();
+ if (path)
+ {
+ page->get_view()->select_path(path);
+ }
gtk_widget_grab_focus(view);
+ return true;
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list