diff options
Diffstat (limited to 'gtk/gtkentrybuffer.c')
-rw-r--r-- | gtk/gtkentrybuffer.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gtk/gtkentrybuffer.c b/gtk/gtkentrybuffer.c index 00158e3a0c..f90afe72dd 100644 --- a/gtk/gtkentrybuffer.c +++ b/gtk/gtkentrybuffer.c @@ -70,7 +70,7 @@ typedef struct _GtkEntryBufferPrivate GtkEntryBufferPrivate; struct _GtkEntryBufferPrivate { /* Only valid if this class is not derived */ - gchar *normal_text; + char *normal_text; gsize normal_text_size; gsize normal_text_bytes; guint normal_text_chars; @@ -90,15 +90,15 @@ G_DEFINE_TYPE_WITH_PRIVATE (GtkEntryBuffer, gtk_entry_buffer, G_TYPE_OBJECT) /* Overwrite a memory that might contain sensitive information. */ static void -trash_area (gchar *area, +trash_area (char *area, gsize len) { - volatile gchar *varea = (volatile gchar *)area; + volatile char *varea = (volatile char *)area; while (len-- > 0) *varea++ = 0; } -static const gchar* +static const char * gtk_entry_buffer_normal_get_text (GtkEntryBuffer *buffer, gsize *n_bytes) { @@ -124,7 +124,7 @@ gtk_entry_buffer_normal_get_length (GtkEntryBuffer *buffer) static guint gtk_entry_buffer_normal_insert_text (GtkEntryBuffer *buffer, guint position, - const gchar *chars, + const char *chars, guint n_chars) { GtkEntryBufferPrivate *pv = gtk_entry_buffer_get_instance_private (buffer); @@ -137,7 +137,7 @@ gtk_entry_buffer_normal_insert_text (GtkEntryBuffer *buffer, /* Need more memory */ if (n_bytes + pv->normal_text_bytes + 1 > pv->normal_text_size) { - gchar *et_new; + char *et_new; prev_size = pv->normal_text_size; @@ -211,7 +211,7 @@ gtk_entry_buffer_normal_delete_text (GtkEntryBuffer *buffer, static void gtk_entry_buffer_real_inserted_text (GtkEntryBuffer *buffer, guint position, - const gchar *chars, + const char *chars, guint n_chars) { g_object_notify_by_pspec (G_OBJECT (buffer), entry_buffer_props[PROP_TEXT]); @@ -436,7 +436,7 @@ gtk_entry_buffer_class_init (GtkEntryBufferClass *klass) * Returns: A new GtkEntryBuffer object. **/ GtkEntryBuffer* -gtk_entry_buffer_new (const gchar *initial_chars, +gtk_entry_buffer_new (const char *initial_chars, int n_initial_chars) { GtkEntryBuffer *buffer = g_object_new (GTK_TYPE_ENTRY_BUFFER, NULL); @@ -504,7 +504,7 @@ gtk_entry_buffer_get_bytes (GtkEntryBuffer *buffer) * storage in the buffer and must not be freed, modified or * stored. **/ -const gchar* +const char * gtk_entry_buffer_get_text (GtkEntryBuffer *buffer) { GtkEntryBufferClass *klass; @@ -532,7 +532,7 @@ gtk_entry_buffer_get_text (GtkEntryBuffer *buffer) **/ void gtk_entry_buffer_set_text (GtkEntryBuffer *buffer, - const gchar *chars, + const char *chars, int n_chars) { g_return_if_fail (GTK_IS_ENTRY_BUFFER (buffer)); @@ -617,7 +617,7 @@ gtk_entry_buffer_get_max_length (GtkEntryBuffer *buffer) guint gtk_entry_buffer_insert_text (GtkEntryBuffer *buffer, guint position, - const gchar *chars, + const char *chars, int n_chars) { GtkEntryBufferPrivate *pv = gtk_entry_buffer_get_instance_private (buffer); @@ -706,7 +706,7 @@ gtk_entry_buffer_delete_text (GtkEntryBuffer *buffer, void gtk_entry_buffer_emit_inserted_text (GtkEntryBuffer *buffer, guint position, - const gchar *chars, + const char *chars, guint n_chars) { g_return_if_fail (GTK_IS_ENTRY_BUFFER (buffer)); |