[Xfce4-commits] [apps/xfdashboard] 05/10: add touch handling to popup-menu
noreply at xfce.org
noreply at xfce.org
Wed Oct 4 10:28:19 CEST 2017
This is an automated email from the git hooks/post-receive script.
n o m a d 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 apps/xfdashboard.
commit 1b8d11a9dee9c7b762b47e2a8beb1b1e01df5090
Author: TheZoq2 <frans.skarman at gmail.com>
Date: Tue Oct 3 15:55:17 2017 +0200
add touch handling to popup-menu
---
libxfdashboard/popup-menu-item-button.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/libxfdashboard/popup-menu-item-button.c b/libxfdashboard/popup-menu-item-button.c
index 31a4af5..6287297 100644
--- a/libxfdashboard/popup-menu-item-button.c
+++ b/libxfdashboard/popup-menu-item-button.c
@@ -63,8 +63,11 @@ static void _xfdashboard_popup_menu_item_button_clicked(XfdashboardClickAction *
g_return_if_fail(XFDASHBOARD_IS_CLICK_ACTION(inAction));
g_return_if_fail(XFDASHBOARD_IS_POPUP_MENU_ITEM_BUTTON(self));
- /* Only activate item if click was perform with left button */
- if(xfdashboard_click_action_get_button(inAction)==XFDASHBOARD_CLICK_ACTION_LEFT_BUTTON)
+ /* Only emit any of these signals if click was perform with left button
+ * or is a short touchscreen touch event.
+ */
+ if(xfdashboard_click_action_get_button(inAction)!=XFDASHBOARD_CLICK_ACTION_LEFT_BUTTON &&
+ xfdashboard_click_action_get_button(inAction)!=0) return;
{
xfdashboard_popup_menu_item_activate(XFDASHBOARD_POPUP_MENU_ITEM(self));
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list