# HG changeset patch # User zas_ # Date 1260467323 0 # Node ID 8a1aa99345fa8c12e5d07c758da95232098b6a5d # Parent 70f58b0dd4aa4c1299d2b0ec6830a3dabe0dcd41 Move "Add Keyword" menu item at top of Keywords bar contextual menu. Suggested by Lars T¸«£uber. diff -r 70f58b0dd4aa -r 8a1aa99345fa src/bar_keywords.c --- 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); }