Revision: 4947 http://geany.svn.sourceforge.net/geany/?rev=4947&view=rev Author: eht16 Date: 2010-05-23 07:52:45 +0000 (Sun, 23 May 2010)
Log Message: ----------- Fix duplicate accelerators for Clear and Copy in the Messages Window popup menu.
Modified Paths: -------------- trunk/ChangeLog trunk/src/msgwindow.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-05-22 19:40:12 UTC (rev 4946) +++ trunk/ChangeLog 2010-05-23 07:52:45 UTC (rev 4947) @@ -1,3 +1,10 @@ +2010-05-23 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * src/msgwindow.c: + Fix duplicate accelerators for Clear and Copy in the + Messages Window popup menu. + + 2010-05-22 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/ui_utils.c:
Modified: trunk/src/msgwindow.c =================================================================== --- trunk/src/msgwindow.c 2010-05-22 19:40:12 UTC (rev 4946) +++ trunk/src/msgwindow.c 2010-05-23 07:52:45 UTC (rev 4947) @@ -511,7 +511,7 @@
static GtkWidget *create_message_popup_menu(gint type) { - GtkWidget *message_popup_menu, *clear, *copy, *image; + GtkWidget *message_popup_menu, *clear, *copy, *copy_all, *image;
message_popup_menu = gtk_menu_new();
@@ -521,19 +521,22 @@ g_signal_connect(clear, "activate", G_CALLBACK(on_message_treeview_clear_activate), GINT_TO_POINTER(type));
- copy = gtk_image_menu_item_new_from_stock("gtk-copy", NULL); + copy = gtk_image_menu_item_new_with_mnemonic(_("C_opy")); gtk_widget_show(copy); gtk_container_add(GTK_CONTAINER(message_popup_menu), copy); + image = gtk_image_new_from_stock("gtk-copy", GTK_ICON_SIZE_MENU); + gtk_widget_show(image); + gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(copy), image); g_signal_connect(copy, "activate", G_CALLBACK(on_compiler_treeview_copy_activate), GINT_TO_POINTER(type));
- copy = gtk_image_menu_item_new_with_mnemonic(_("Copy _All")); - gtk_widget_show(copy); - gtk_container_add(GTK_CONTAINER(message_popup_menu), copy); + copy_all = gtk_image_menu_item_new_with_mnemonic(_("Copy _All")); + gtk_widget_show(copy_all); + gtk_container_add(GTK_CONTAINER(message_popup_menu), copy_all); image = gtk_image_new_from_stock("gtk-copy", GTK_ICON_SIZE_MENU); gtk_widget_show(image); - gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(copy), image); - g_signal_connect(copy, "activate", + gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(copy_all), image); + g_signal_connect(copy_all, "activate", G_CALLBACK(on_compiler_treeview_copy_all_activate), GINT_TO_POINTER(type));
msgwin_menu_add_common_items(GTK_MENU(message_popup_menu));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.