madsovenielsen Familiar Face
Joined: 14 Mar 2010 Posts: 5
|
Posted: Sun Mar 14, 2010 4:09 pm Post subject: Itterating over char |
|
|
Hey all.
i am having some trouble getting a integer to increment based on how many chars there is in the textbox. heres the code
int filesize = 0;
char filename[128] = "untitled.c";
row = gtk_text_iter_get_line(&iter);
col = gtk_text_iter_get_line_offset(&iter);
filesize = gtk_text_iter_get_char(&iter); <= is the problem here ?
msg = g_strdup_printf("File Name: %s %iKb Col %d Ln %d", filename, filesize+8, col+1, row+1);
gtk_statusbar_push(statusbar, 0, msg);
g_free(msg);
Any help is greatly appriciated.
/mads |
|