ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
There is less than 24 hours left to vote in the 2015 LinuxQuestions.org Members Choice Awards. Click here to go to the polls. Vote now and make sure your voice is heard!
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
/* This line gets a pointer to the text widget */
GtkWidget * textview = lookup_widget(GTK_WIDGET(button), "textview1");
/* ...and thils line prints the the text into the text box */
gtk_text_buffer_set_text (gtk_text_view_get_buffer (GTK_TEXT_VIEW (textview)), _(text_2_be_printed), -1);
working on something similar myself. Hope this helps
I've read the API with the link that u gave. I just want to ask if there is anything that i should add in my main.c inorder to use this function.
I'm also confused on where to put this function, is it in callbacks.c, interface.c or main.c.
Thank you very much for ur help, i just badly need it.
thanks again, i can already view the contents of the file into the textview provided that the log file or any file will be place in the src folder of my project folder.
i would have wanted to display a log file from any directory (e.g. from /var/log/messages.log) without copying this to my src file. would that be possible?
I can already display the contents of any file when i inserted g_file_get_contents()in my interface.c
But when i tried to have it in my main.c or callbacks.c, its compilation is successful but when i run the program, it would display an error like this:
The Application "myFilename" has quit unexpectedly.