Add stock close buttons to notebook tab popup menu.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4310 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2009-10-14 12:04:05 +00:00
parent a50c65602b
commit d2a93f351d
2 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,8 @@
* src/keybindings.c:
Don't include trailing newlines when using reflow command.
* src/notebook.c:
Add stock close buttons to notebook tab popup menu.
2009-10-13 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -210,12 +210,12 @@ static void show_tab_bar_popup_menu(GdkEventButton *event)
gtk_widget_show(menu_item);
gtk_container_add(GTK_CONTAINER(menu), menu_item);
menu_item = gtk_menu_item_new_with_mnemonic(_("Close Ot_her Documents"));
menu_item = ui_image_menu_item_new(GTK_STOCK_CLOSE, _("Close Ot_her Documents"));
gtk_widget_show(menu_item);
gtk_container_add(GTK_CONTAINER(menu), menu_item);
g_signal_connect(menu_item, "activate", G_CALLBACK(on_close_other_documents1_activate), NULL);
menu_item = gtk_menu_item_new_with_mnemonic(_("C_lose All"));
menu_item = ui_image_menu_item_new(GTK_STOCK_CLOSE, _("C_lose All"));
gtk_widget_show(menu_item);
gtk_container_add(GTK_CONTAINER(menu), menu_item);
g_signal_connect(menu_item, "activate", G_CALLBACK(on_close_all1_activate), NULL);