bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] How do I do this in gtk?


From: Jim Segrave
Subject: Re: [Bug-gnubg] How do I do this in gtk?
Date: Fri, 25 Oct 2002 15:34:29 +0200
User-agent: Mutt/1.4i

On Thu 24 Oct 2002 (17:52 +0000), Joern Thyssen wrote:
> On Tue, Oct 22, 2002 at 05:36:42PM +0200, Jim Segrave wrote
> > 
> > My question is - how can one de-activate a page in a notebook or a
> > vbox within a page (for the chequer play)?
> 
> For all widgets you can call gtk_widget_set_sensitive
> 
> Since the notebook pages are widgets you can add code like:
> 
> gtk_widget_set_sensitive ( 
>    GTK_WIDGET ( gtk_notebook_get_nth_page ( GTK_NOTEBOOK ( pwNotebook ), 4 ), 
>    FALSE );
 
> to "disable" page 4 in the notebook.

Excellent - I'd tested just casting the page to a gtk button but, not
surprisingly, that didn't work.
 
> > Can you change the titles on the tabs once the widget has been
> > displayed, so that, for example, the player 0 and player 0 late tabs 
> > become 'both players' and 'both players later' or some such?
> > 
> You can change the label with
> 
> gtk_notebook_set_menu_Tabel ( .. )

OK - thanks.

I've done (untested) code to do text mode set and show of a more
complete rolloutcontext (with some code to suppress any unused eval
contexts (so it won't list both the cube and chequer settings if they
are the same or bother with separate listings for player 0 and player
1 if the players are the same. I'll try to do the rollout page this
weekend. Actually using the evals is the simplest part of the whole
task, so I don't expect that to take long once I've got the set and
show code working.

-- 
Jim Segrave           address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]