[gtksourceview] Add warning comment about big buffers present in a Private struct



commit 89a1f0c5104075bd8bbcb210990076f8ec8b34c2
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Sep 15 15:22:09 2014 +0200

    Add warning comment about big buffers present in a Private struct

 gtksourceview/gtksourcefileloader.c |    3 +++
 gtksourceview/gtksourcefilesaver.c  |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourcefileloader.c b/gtksourceview/gtksourcefileloader.c
index 4a63d26..e18dbb5 100644
--- a/gtksourceview/gtksourcefileloader.c
+++ b/gtksourceview/gtksourcefileloader.c
@@ -101,6 +101,9 @@ struct _GtkSourceFileLoaderPrivate
        gpointer progress_cb_data;
        GDestroyNotify progress_cb_notify;
 
+       /* Warning: type instances' private data are limited to a total of 64 KiB.
+        * See the GType documentation.
+        */
        gchar chunk_buffer[READ_CHUNK_SIZE];
        gssize chunk_bytes_read;
 
diff --git a/gtksourceview/gtksourcefilesaver.c b/gtksourceview/gtksourcefilesaver.c
index d5a65e2..04b0ad1 100644
--- a/gtksourceview/gtksourcefilesaver.c
+++ b/gtksourceview/gtksourcefilesaver.c
@@ -107,6 +107,9 @@ struct _GtkSourceFileSaverPrivate
        gpointer progress_cb_data;
        GDestroyNotify progress_cb_notify;
 
+       /* Warning: type instances' private data are limited to a total of 64 KiB.
+        * See the GType documentation.
+        */
        gchar chunk_buffer[WRITE_CHUNK_SIZE];
        gssize chunk_bytes_read;
        gssize chunk_bytes_written;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]