[Xfce4-commits] [apps/xfdashboard] 09/10: Rename touch utility function and add return value to documentation

noreply at xfce.org noreply at xfce.org
Wed Oct 4 10:28:23 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 a4564d3291e5e67d86c990570de9348aad28b772
Author: TheZoq2 <frans.skarman at gmail.com>
Date:   Wed Oct 4 09:28:34 2017 +0200

    Rename touch utility function and add return value to documentation
---
 libxfdashboard/button.c                  | 2 +-
 libxfdashboard/click-action.c            | 5 ++++-
 libxfdashboard/click-action.h            | 2 +-
 libxfdashboard/live-window.c             | 2 +-
 libxfdashboard/live-workspace.c          | 2 +-
 libxfdashboard/popup-menu-item-button.c  | 2 +-
 libxfdashboard/quicklaunch.c             | 2 +-
 libxfdashboard/search-result-container.c | 2 +-
 8 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/libxfdashboard/button.c b/libxfdashboard/button.c
index b0834ad..791461f 100644
--- a/libxfdashboard/button.c
+++ b/libxfdashboard/button.c
@@ -85,7 +85,7 @@ static void _xfdashboard_button_clicked(XfdashboardClickAction *inAction,
 	/* Only emit any of these signals if click was perform with left button 
 	 * or is a short touchscreen touch event.
 	 */
-	if(xfdashboard_click_action_is_left_button_or_touch(inAction))
+	if(xfdashboard_click_action_is_left_button_or_tap(inAction))
 	{
 		/* Emit 'clicked' signal */
 		g_signal_emit(self, XfdashboardButtonSignals[SIGNAL_CLICKED], 0);
diff --git a/libxfdashboard/click-action.c b/libxfdashboard/click-action.c
index af121fa..c0312e0 100644
--- a/libxfdashboard/click-action.c
+++ b/libxfdashboard/click-action.c
@@ -893,8 +893,11 @@ void xfdashboard_click_action_release(XfdashboardClickAction *self)
  * @self: A #XfdashboardClickAction
  *
  * Checks if the specified click action is either a left button press or a single touch 'tap'
+ *
+ * Return value: Returns %TRUE if the click action event is a left button press or a single 
+ * touch tap, otherwise %FALSE
  */
-gboolean xfdashboard_click_action_is_left_button_or_touch(XfdashboardClickAction *self)
+gboolean xfdashboard_click_action_is_left_button_or_tap(XfdashboardClickAction *self)
 {
 	XfdashboardClickActionPrivate *priv;
 	g_return_val_if_fail(XFDASHBOARD_IS_CLICK_ACTION(self), FALSE);
diff --git a/libxfdashboard/click-action.h b/libxfdashboard/click-action.h
index a1f02b5..eedad7c 100644
--- a/libxfdashboard/click-action.h
+++ b/libxfdashboard/click-action.h
@@ -128,7 +128,7 @@ void xfdashboard_click_action_get_coords(XfdashboardClickAction *self, gfloat *o
 
 void xfdashboard_click_action_release(XfdashboardClickAction *self);
 
-gboolean xfdashboard_click_action_is_left_button_or_touch(XfdashboardClickAction *self);
+gboolean xfdashboard_click_action_is_left_button_or_tap(XfdashboardClickAction *self);
 
 G_END_DECLS
 
diff --git a/libxfdashboard/live-window.c b/libxfdashboard/live-window.c
index 9c86068..6af3af4 100644
--- a/libxfdashboard/live-window.c
+++ b/libxfdashboard/live-window.c
@@ -360,7 +360,7 @@ static void _xfdashboard_live_window_on_clicked(XfdashboardLiveWindow *self,
 	/* Only emit any of these signals if click was perform with left button 
 	 * or is a short touchscreen touch event.
 	 */
-	if(!xfdashboard_click_action_is_left_button_or_touch(action))
+	if(!xfdashboard_click_action_is_left_button_or_tap(action))
 	{
 		return;
 	}
diff --git a/libxfdashboard/live-workspace.c b/libxfdashboard/live-workspace.c
index 6d6294f..646361b 100644
--- a/libxfdashboard/live-workspace.c
+++ b/libxfdashboard/live-workspace.c
@@ -348,7 +348,7 @@ static void _xfdashboard_live_workspace_on_clicked(XfdashboardLiveWorkspace *sel
 	/* Only emit any of these signals if click was perform with left button 
 	 * or is a short touchscreen touch event.
 	 */
-	if(xfdashboard_click_action_is_left_button_or_touch(action))
+	if(xfdashboard_click_action_is_left_button_or_tap(action))
 	{
 		/* Emit "clicked" signal */
 		g_signal_emit(self, XfdashboardLiveWorkspaceSignals[SIGNAL_CLICKED], 0);
diff --git a/libxfdashboard/popup-menu-item-button.c b/libxfdashboard/popup-menu-item-button.c
index 60ee08f..163e8c9 100644
--- a/libxfdashboard/popup-menu-item-button.c
+++ b/libxfdashboard/popup-menu-item-button.c
@@ -66,7 +66,7 @@ static void _xfdashboard_popup_menu_item_button_clicked(XfdashboardClickAction *
 	/* Only emit any of these signals if click was perform with left button 
 	 * or is a short touchscreen touch event.
 	 */
-	if(xfdashboard_click_action_is_left_button_or_touch(inAction))
+	if(xfdashboard_click_action_is_left_button_or_tap(inAction))
 	{
 		xfdashboard_popup_menu_item_activate(XFDASHBOARD_POPUP_MENU_ITEM(self));
 	}
diff --git a/libxfdashboard/quicklaunch.c b/libxfdashboard/quicklaunch.c
index 9779458..7770a23 100644
--- a/libxfdashboard/quicklaunch.c
+++ b/libxfdashboard/quicklaunch.c
@@ -674,7 +674,7 @@ static void _xfdashboard_quicklaunch_on_favourite_popup_menu(XfdashboardQuicklau
 	/* Only emit any of these signals if click was perform with left button 
 	 * or is a short touchscreen touch event.
 	 */
-	if(xfdashboard_click_action_is_left_button_or_touch(action))
+	if(xfdashboard_click_action_is_left_button_or_tap(action))
 	{
 		ClutterActor							*popup;
 		ClutterActor							*menuItem;
diff --git a/libxfdashboard/search-result-container.c b/libxfdashboard/search-result-container.c
index baff87e..90d4c17 100644
--- a/libxfdashboard/search-result-container.c
+++ b/libxfdashboard/search-result-container.c
@@ -396,7 +396,7 @@ static void _xfdashboard_search_result_container_on_result_item_actor_clicked(Xf
 	/* Only emit any of these signals if click was perform with left button 
 	 * or is a short touchscreen touch event.
 	 */
-	if(xfdashboard_click_action_is_left_button_or_touch(inAction))
+	if(xfdashboard_click_action_is_left_button_or_tap(inAction))
 	{
 		/* Activate result item by actor clicked */
 		_xfdashboard_search_result_container_activate_result_item_by_actor(self, inActor);

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


More information about the Xfce4-commits mailing list