changeset 1740:8a1aa99345fa

Move "Add Keyword" menu item at top of Keywords bar contextual menu. Suggested by Lars T¸«£uber.
author zas_
date Thu, 10 Dec 2009 17:48:43 +0000
parents 70f58b0dd4aa
children 9b5eb41f4311
files src/bar_keywords.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/bar_keywords.c	Thu Dec 10 17:44:31 2009 +0000
+++ b/src/bar_keywords.c	Thu Dec 10 17:48:43 2009 +0000
@@ -1096,6 +1096,10 @@
 
 	menu = popup_menu_short_lived();
 
+	menu_item_add_stock(menu, _("Add keyword"), GTK_STOCK_EDIT, G_CALLBACK(bar_pane_keywords_add_dialog_cb), pkd);
+	
+	menu_item_add_divider(menu);
+
 	if (pkd->click_tpath)
 		{
 		/* for the entry */
@@ -1166,10 +1170,6 @@
 	menu_item_add_check(submenu, _("Collapse unchecked"), pkd->collapse_unchecked, G_CALLBACK(bar_pane_keywords_collapse_unchecked_toggle_cb), pkd);
 	menu_item_add_check(submenu, _("Hide unchecked"), pkd->hide_unchecked, G_CALLBACK(bar_pane_keywords_hide_unchecked_toggle_cb), pkd);
 
-	menu_item_add_divider(menu);
-
-	menu_item_add_stock(menu, _("Add keyword"), GTK_STOCK_EDIT, G_CALLBACK(bar_pane_keywords_add_dialog_cb), pkd);
-	
 	gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, GDK_CURRENT_TIME);
 }