View Full Version : a question in GTK+


maslan
hi guys
i just wanna to know a online book for using Gtk+
i got all Gtk,Gdk at glade but it'snot so good
i just found liitle things on them.

& when i use the gtk_text_view_new() & set the buffer & show it.
it doesn't appear so any 1 gonna to help.

another thing i recieve warning when using
gtk_window_set_default_size()
i save the height at a public gint called winheight
i save the width at a public gint called winwidth
i just put them before main()
so i recieve warnings i don't remember them.

salamo 3aliko
:)

maslan
oh i want uniball opinion also
he is a goog programmer at C,Gtk+
you know guys i always use assembly even a GUI programing
at windows(sorry for telling that name).
:)

ErrorMsg
http://www.gtk.org/tutorial/
and in
http://eddy.writelinux.com/
you can find a gtk api and tutorial

uniball
gcc -o foo foo.c `pkg-config gtk+-2.0 --cflags --libs`


#include <gtk/gtk.h>

int main(int argc, char *argv[])
{
GtkWidget *win, *area;

gtk_init(&argc, &argv);

win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
area = gtk_text_view_new();
gtk_container_add (GTK_CONTAINER (win), area);

gtk_window_set_default_size(GTK_WINDOW(win), 200, 200);

gtk_widget_show_all(win);
g_signal_connect(G_OBJECT(win), "destroy", G_CALLBACK(gtk_main_quit), NULL);
gtk_main();

return 0;
}


I think the above code answers all your questions ? ;-)
When you ask about a problem, post your code and/or any warnings/errors you
get.

I don't knw about any Gtk 2.x book, However you can have a look at the taturial
"I personally hate it", The reference manual is fine, You may also have a look
at the gtk examples
<whisper>
I keep an uncompressed tarball of the gtk source code in /usr/src as i have to
look at the internal of some API calls

maslan
:)
Thanks uniball it really do what i want to know
Thanks

maslan
hi uniball
i want to know ur e-mail address because something personal
i want to tell you
don't forget
:)

maslan
i want ur e-mail because
i have redirected ur website to http://www.uniball13.cjb.net
so i want to send u the password so you can change it as u like
i redirected it by this site http://www.cjb.com
i gave you free forum at your site
http://forum.cjb.net/cgi-bin/forum.cgi?forum=uniball13

& free guestbook at
http://guestbook.cjb.net/cgi-bin/guestbook.cgi?view=uniball13
any 1 can sign it up at
http://guestbook.cjb.net/cgi-bin/guestbook.cgi?sign=uniball13

you also have e-mail forwarding
it will forward any e-mail send to any address@uniball13.cjb.net
to your real e-mail address
i use uniball13@yahoo.com as ur real address but u can change it

so send me ur e-mail address to send u the password

^freind^ ha?
bye

:)

your website now :

http://www.uniball13.cjb.net
bye


;)

uniball
Hey thanks!
Don't know why this wasn't pushed onto my head stack ;)
i think that having 1 forum "this" is enough.

I think the URL is the greatest of all ;-)

uniball[at]gmx[dot]net
or
uniball[at]linux-egypt[dot]org

Don't know what to tell you :)

maslan
don't tell any thing uniball
just use ur new site
hey u gonna like it
bye
;)

maslan
oh i forgot something
thanks 4 the code
bye
:p