Revision: 4281 http://geany.svn.sourceforge.net/geany/?rev=4281&view=rev Author: ntrel Date: 2009-10-01 16:10:33 +0000 (Thu, 01 Oct 2009)
Log Message: ----------- Simplify file menu signal connection a little.
Modified Paths: -------------- trunk/src/templates.c
Modified: trunk/src/templates.c =================================================================== --- trunk/src/templates.c 2009-10-01 15:56:51 UTC (rev 4280) +++ trunk/src/templates.c 2009-10-01 16:10:33 UTC (rev 4281) @@ -503,9 +503,9 @@ g_object_ref(new_with_template_menu); { GtkWidget *item = ui_lookup_widget(main_widgets.window, "file1"); - /* reparent the menu as needed */ - g_signal_connect(item, "activate", G_CALLBACK(on_menu_new_with_template1_show), NULL); + /* reparent the template menu as needed */ item = gtk_menu_item_get_submenu(GTK_MENU_ITEM(item)); + g_signal_connect(item, "show", G_CALLBACK(on_menu_new_with_template1_show), NULL); g_signal_connect(item, "hide", G_CALLBACK(on_menu_new_with_template1_hide), NULL); } }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.