I figured it out.
I detached the textview from the table.(Removed the highlighted in red)
view = gtk_text_view_new ();
//gtk_table_attach_defaults(GTK_TABLE(table), view, 1, 9, 2, 5);...
Type: Posts; User: Annonymous
I figured it out.
I detached the textview from the table.(Removed the highlighted in red)
view = gtk_text_view_new ();
//gtk_table_attach_defaults(GTK_TABLE(table), view, 1, 9, 2, 5);...
The previos post has code that had a ton or errors and bugs. I have been at it since that last post and fixed everything. I removed the array and fread function. It was causing the text output in the...
I re-wrote my file to array function from C specific to GTK specific and it works with no problems now.
FROM THIS:
file = fopen("/home/amboxer21/Documents/netstat.txt", "r+");
if(file ==...
Yeah no matter how I code it, returns
Invalid or incomplete multibyte or wide character -->
(warning:8757): Gtk-CRITICAL **: IA__gtk_text_buffer_insert: assertion `text != NULL' failed
...
Can someone povide an example on how to use bytes_read and bytes_written with g_convert?
I figured out how to load a file into the textview widget but it only works if characters like /ca /ma...
Your right @phantomotap! lol It is work a lot of the time but it is fun. I'll keep at it then. So, I can read the file into a buffer with C, no problem. The GTK way is what's the problem. i have a...
This is relevant to both C programming and Linux. I decided to post here.
I Have that port monitor UI I wrote and that i am building on. Now I wanted to load a file into a gtktextview widget.
...