[Glade-users] when done editing field

Arthur Shats ashats at hotmail.com
Thu Sep 16 09:30:14 EDT 2010


Yes, calling gtk_widget_get_toplevel(GTK_WIDGET(entry)) is not necessary. I thought I would first need to get a pointer to the window that contains all the entry fields in order for me to access any of the fields and then use that pointer as argument in lookup_widget.
But I tried without gtk_widget_get_toplevel and it worked too.
thanks,
Arthur.
 
> Date: Wed, 15 Sep 2010 18:19:05 -0300
> From: john at jcoppens.com
> To: glade-users at lists.ximian.com
> Subject: Re: [Glade-users] when done editing field
> 
> On Wed, 15 Sep 2010 21:02:42 +0000
> Arthur Shats <ashats at hotmail.com> wrote:
> 
> > This puts the cursor and focus to the field I specified. Is it the right way to do this kind of thing?
> 
> I'm not sure there is _one_ right way to do things (programming would
> be boring, wouldn't it?)
> 
> I believe the first line:
> 
> win = gtk_widget_get_toplevel(GTK_WIDGET(entry));
> 
> may not be necessary - ever tried to give 'entry' as reference to
> lookup_widget immediately?
> 
> But, maybe easier, would be to use Tab instead of Enter to go to the
> next field. Tab is the correct way to jump widgets, and you wouldn't
> have to administer the sequence in your program.
> 
> John
> _______________________________________________
> Glade-users maillist - Glade-users at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-users
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20100916/01507744/attachment.html 


More information about the Glade-users mailing list