RE: gtk_text_buffer_get_* should return length? (1.3.6)



This isn't bug this is feature.

-----Original Message-----
From: gtk-app-devel-list-admin gnome org
[mailto:gtk-app-devel-list-admin gnome org]On Behalf Of Joshua N Pritikin
Sent: Tuesday, August 07, 2001 9:06 PM
To: gtk-app-devel-list gnome org
Subject: gtk_text_buffer_get_* should return length? (1.3.6)


The APIs in question are:

 gchar*      gtk_text_buffer_get_text        (GtkTextBuffer *buffer,
                                              const GtkTextIter *start,
                                              const GtkTextIter *end,
                                              gboolean
include_hidden_chars);
 gchar*      gtk_text_buffer_get_slice       (GtkTextBuffer *buffer,
                                              const GtkTextIter *start,
                                              const GtkTextIter *end,
                                              gboolean
include_hidden_chars);

Why don't these APIs return the length?  It seems dumb to do a strlen()
when _gtk_text_btree_get_text() actually had the data nicely wrapped
in a GString.

Shall i file this request in bugzilla?
-----Original Message-----

---
 Dmitry Ponomaryov





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