I have a problem which is really bugging me! its one of those small annoying things i cant seem to get working!!! grrrrrr!!!
anyway, here it goes....
i have a textview and associated text buffer.
bacially i want to save what is in the textview to a file, which i have working.
now i am adding some error handeling which is....
if there is nothing in the textview (i.e its empty) then generate a message
to the users telling them there is nothing to save.
okay...here is a snipet of my code....
if (widget->buffer2 != NULL)
infile = fopen("/Desktop/file.txt", "a+");
gtk_text_buffer_set_text (widget->buffer3, "No text to save", -1);
please somebody put me out of my misery!!!!
thanks a mill :)