[Xfce4-commits] [apps/xfdashboard] 04/05: Remove trailing separator because no other menu items will follow - never.

noreply at xfce.org noreply at xfce.org
Fri Oct 27 11:52:20 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 276205099956c4e4ba9e7728c8d3107dc8057cc6
Author: Stephan Haller <nomad at froevel.de>
Date:   Fri Oct 27 11:24:14 2017 +0200

    Remove trailing separator because no other menu items will follow - never.
    
    This commit addresses issue GH #160
---
 libxfdashboard/applications-search-provider.c | 8 +-------
 libxfdashboard/applications-view.c            | 8 +-------
 2 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/libxfdashboard/applications-search-provider.c b/libxfdashboard/applications-search-provider.c
index 3eaf219..5286aea 100644
--- a/libxfdashboard/applications-search-provider.c
+++ b/libxfdashboard/applications-search-provider.c
@@ -851,13 +851,7 @@ static void _xfdashboard_applications_search_provider_on_popup_menu(XfdashboardA
 		g_object_unref(appTracker);
 
 		/* Add application actions */
-		if(xfdashboard_application_button_add_popup_menu_items_for_actions(button, XFDASHBOARD_POPUP_MENU(popup))>0)
-		{
-			/* Add a separator to split windows from other actions in pop-up menu */
-			menuItem=xfdashboard_popup_menu_item_separator_new();
-			clutter_actor_set_x_expand(menuItem, TRUE);
-			xfdashboard_popup_menu_add_item(XFDASHBOARD_POPUP_MENU(popup), XFDASHBOARD_POPUP_MENU_ITEM(menuItem));
-		}
+		xfdashboard_application_button_add_popup_menu_items_for_actions(button, XFDASHBOARD_POPUP_MENU(popup));
 
 		/* Set style class as pop-up menu has no source set to create style
 		 * class automatically because this class is not derived from an actor
diff --git a/libxfdashboard/applications-view.c b/libxfdashboard/applications-view.c
index 6d09274..a705bd7 100644
--- a/libxfdashboard/applications-view.c
+++ b/libxfdashboard/applications-view.c
@@ -429,13 +429,7 @@ static void _xfdashboard_applications_view_on_popup_menu(XfdashboardApplications
 		g_object_unref(appTracker);
 
 		/* Add application actions */
-		if(xfdashboard_application_button_add_popup_menu_items_for_actions(button, XFDASHBOARD_POPUP_MENU(popup))>0)
-		{
-			/* Add a separator to split windows from other actions in pop-up menu */
-			menuItem=xfdashboard_popup_menu_item_separator_new();
-			clutter_actor_set_x_expand(menuItem, TRUE);
-			xfdashboard_popup_menu_add_item(XFDASHBOARD_POPUP_MENU(popup), XFDASHBOARD_POPUP_MENU_ITEM(menuItem));
-		}
+		xfdashboard_application_button_add_popup_menu_items_for_actions(button, XFDASHBOARD_POPUP_MENU(popup));
 
 		/* Activate pop-up menu */
 		xfdashboard_popup_menu_activate(XFDASHBOARD_POPUP_MENU(popup));

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


More information about the Xfce4-commits mailing list