Hello,
You need to use the insert_text callback. For example:
void YourEntryWidget_insert_text(GtkEditable *editable, gchar *new_text,
gint new_text_length, gint *position, gpointer user_data)
{
int idx = 0;
static char file[45];
idx = (int)(*position);
if( idx < 45 )
file[idx] = *new_text;
else
{
printf("\nERROR: The file name is greater than 45 characters!\n");
g_print("ERROR: File name: %s \n", file);
printf("ERROR: Exiting .....\n\n");
gtk_exit(0);
}
printf("File: %s \n", file);
}
Hope that helps.....
_______________________________________________
Glade-devel maillist - [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/glade-devel