Fix stack corruption (cannot use stack GPtrArray as this is just a

base-class for private GRealPtrArray).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2735 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2008-06-30 15:15:02 +00:00
parent dc306e94b3
commit 4dfcad1186
2 changed files with 4 additions and 3 deletions

View File

@ -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>

View File

@ -572,9 +572,7 @@ void ui_save_buttons_toggle(gboolean enable)
static void init_document_widgets(void)
{
static GPtrArray document_buttons = {NULL, 0};
widgets.document_buttons = &document_buttons;
widgets.document_buttons = g_ptr_array_new();
/* Cache the document-sensitive widgets so we don't have to keep looking them up
* when using ui_document_buttons_update(). */