how to access a widget ?

2004-08-29 Thread edward hage
Hello, I have made a program which shows a table with buttons, created like this .. for (i=0; i vertical - 1; i++) { . etc. ...etc. etc... for (j=1; j vertical; j++) { if (i j) { button = gtk_button_new (); gtk_button_set_label ( (GtkButton

Re: how to access a widget ?

2004-08-29 Thread Tiago Cogumbreiro
On Sun, 2004-08-29 at 22:54, edward hage wrote: Hello, I have made a program which shows a table with buttons, created like this .. for (i=0; i vertical - 1; i++) { . etc. ...etc. etc... for (j=1; j vertical; j++) { if (i j) {

GObject tutorial next version

2004-08-29 Thread Ryan McDougall
This covers everything except signals, which is the last thing to do. Warning currently its in plain text format since I haven't gotten around to fancifying it yet, however it WILL be prettied up. I'd appreciate feedback on technical, spelling, grammar, or style points. Cheers, Ryan GObject

Re: g_value_new Macro?

2004-08-29 Thread muppet
On Aug 26, 2004, at 10:56 PM, Ryan McDougall wrote: Perhaps its my ignorance of GValue, why is memory allocation GValue's problem, thus necessitating an unset function. Shouldn't I dealloc my own pointers? GValues are used in code that runs a *lot* (marshaling code for signals, property

Re: g_value_new Macro?

2004-08-29 Thread James Henstridge
On 27/08/04 10:56, Ryan McDougall wrote: I spotted where the docs say it must be zero init'd, but I can't see in the source *why* thats needed. I guess so you don't call init on a value that has already been init'd without calling reset first. Well, the code in g_value_init() is checking

Can panel applets be threaded?

2004-08-29 Thread Marc Singer
I've seen the reference to g_thread_enter() and leave() for general GTK programming. In a panel applet, there doesn't appear to be such a place to make these calls around. Since none of the standard gnome desktop applets seem to be threaded, I wonder if this is considered an option. Any

About Hiding Widget

2004-08-29 Thread srinivas
Hai All experts, I have a big problem in hiding a widget, I use gtk_widget_hide(window) method, I donno i will not hide the window always, I mean it works some times and it does'nt .. I donno why? Pl guide me in this regard. This is one of the biggest problem in my application. My application