Revision: 2735 http://geany.svn.sourceforge.net/geany/?rev=2735&view=rev Author: ntrel Date: 2008-06-30 08:15:02 -0700 (Mon, 30 Jun 2008)
Log Message: ----------- Fix stack corruption (cannot use stack GPtrArray as this is just a base-class for private GRealPtrArray).
Modified Paths: -------------- trunk/ChangeLog trunk/src/ui_utils.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-06-30 11:49:39 UTC (rev 2734) +++ trunk/ChangeLog 2008-06-30 15:15:02 UTC (rev 2735) @@ -4,6 +4,9 @@ Use a dynamic pointer array for document sensitive widgets, so it's easy to group widget names together in the source. Make 'Close other documents' menu item document-sensitive. + * src/ui_utils.c: + Fix stack corruption (cannot use stack GPtrArray as this is just a + base-class for private GRealPtrArray).
2008-06-28 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/ui_utils.c =================================================================== --- trunk/src/ui_utils.c 2008-06-30 11:49:39 UTC (rev 2734) +++ trunk/src/ui_utils.c 2008-06-30 15:15:02 UTC (rev 2735) @@ -572,10 +572,8 @@
static void init_document_widgets(void) { - static GPtrArray document_buttons = {NULL, 0}; + widgets.document_buttons = g_ptr_array_new();
- widgets.document_buttons = &document_buttons; - /* Cache the document-sensitive widgets so we don't have to keep looking them up * when using ui_document_buttons_update(). */ add_doc_widget("menu_close1");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.