Re: gtk-app-devel-list digest, Vol 1 #1950 - 2 msgs



On 22 Mar 2004, Aman Hardikar Muppidi wrote:
how to load a file into gtk window.
like a html file on the disk into a window tt we can get by clicking a
button ?
Hello Aman,
I'm not sure what you wanna do. If you want to display text files (in
case of html show the HMTL-source code) you should have a look at the text
widget in gtk-demo.
If you want to display HTML pages like a webbrowser does there is some
kind of a html-widget. It is not included in the GTK+ distribution, so you
have to google for it.

and is there an way to load time changing ( adding ) files like log
files to load into a gtk window or using a c program ???
Well, are you asking how to read text files in general or are you just
looking for a way how your program will know when there is new data to
read? In the latter case have a look at g_io_create_watch().

also can anyone tell me which book i need to follow to do gtk
programming ?
I learned GTK with the tutorial (http://gtk.org/tutorial/). You should
fully read it to understand how GTK works and to get an overview what
kinds of widgets there are. Try to understand the examples and prove
yourself by modifying them. After you have that basic understanding the
API reference will be you friend to find out more details. Also have a
look at the gtk-demo program. It shows you examples how different things
can be done together with the source code.

Regards,
                      Peter
-- 
====================================================================
Peter Krüger

applied software solutions (appss) GmbH
Sandtorstr. 23
D-39106 Magdeburg
Germany

Phone:  +49-(0)391-54486-19388
Fax:    +49-(0)391-54486-19222
email:  krueger appss de
URL:    http://www.appss.de

Managing Director: Uwe Hess, Dietmar Schäfer
Register: HRB12386, AG Mageburg

"Virtual business becomes reality!"

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
====================================================================




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]