Re: Code migration.

2006-07-09 Thread John Cupitt
Hi Bill, It sounds like you have some problems with your installation. I'd try to get a gtk2 "hello world" program going first. On 7/9/06, William D. Tallman <[EMAIL PROTECTED]> wrote: > 1. Code written for Gtk+-1.2 will, or will not, compile and run > correctly under Gtk-2.0. y/nt.. No, some

Re: Help, How to mange the id returned by g_timeout_add

2006-07-09 Thread Anna
In C, I handle it by creating file-scoped variables. not quite global, but not local either. If you want to remove as much risk as possible, I'd recommend declaring a file-scoped variable in a file with only the few functions that actually need to access the variable directly. (then, call it a "m

Re: I did not know this leak memory or not (gtk_object_set_data)

2006-07-09 Thread J. Ali Harlow
On 2006-07-08 02:16:14 PM, chao yeaj wrote: [please choose _one_ list and stick to it.] > Hello everyone > I use function``gtk_object_set_data'' to set data to object > > my code like this: > > > /***/ > gu

Code migration.

2006-07-09 Thread William D. Tallman
Hello, I've been writing a small application in gtk-1.2 that works fine as far as I've gotten. On a whim, I tried migrating this to gtk-2.0, and I suspect I've found that the code will have to be rewritten, though to what extent I'm unable to determine. I'm running Slackware-10.0 and have gtk+-1

I did not know this leak memory or not (gtk_object_set_data)

2006-07-09 Thread chao yeaj
Hello everyone I use function``gtk_object_set_data'' to set data to object my code like this: /***/ guint *p = NULL; p = g_malloc0(sizeof(guint)): gtk_object_set_data(GTK_OBJECT(button),"key",p); /**

About gtk_object_set_data()

2006-07-09 Thread chao yeaj
Hello everyone I have a check button and the check button may have an associated data,which is an source id returned by g_timeout_add() function I do this,because,the check button may be need a function periodically changing its attributes to manage the source i

How to keep the check button' checked state

2006-07-09 Thread chao yeaj
Hello ,everyone i have a check button i want to manage the check button's check state using source code and i want no matter how the user click the check button , the check button keeps its state i connected to the check button's clicked signal,and ac

Re: Why gtk_bin_get_child() does not work?

2006-07-09 Thread chao yeaj
Yes, if i create radio button widget with label, my application is ok. Thank you!!! On 7/8/06, J. Ali Harlow <[EMAIL PROTECTED]> wrote: > On 2006-07-08 02:26:46 AM, Micah Carrick wrote: > > This should work: > > > > GtkWidget *radio > > > > /* > > More code here to get or create 'radio' as > > a