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: Joern Thyssen
Subject: Re: [Bug-gnubg] How do I do this in gtk?
Date: Thu, 24 Oct 2002 17:52:17 +0000
User-agent: Mutt/1.4i

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.

> 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 ( .. )

Jørn

-- 
Joern Thyssen, PhD
Vendsysselgade 3, 3., DK-9000 Aalborg, Denmark
+45 9813 2791 (private) / +45 2818 0183 (mobile) / +45 9633 7036 (work)
Note: new mobile number!




reply via email to

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