GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

disable forward button in druid

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
srikanth
Familiar Face


Joined: 14 Nov 2006
Posts: 7

PostPosted: Wed Nov 15, 2006 10:48 am    Post subject: disable forward button in druid Reply with quote

how to disable forward button in Gnome druid ? I have 4 screens in gnomedruid . In the second screen i want the forward button to be disabled , dependng on certain actions i want to enable the forward button . Is that possible ...



Thanks
Back to top
openldev
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 386
Location: Fairfax, Virginia

PostPosted: Wed Nov 15, 2006 3:32 pm    Post subject: Reply with quote

I do seriously recommend using GtkAssistant to remove the dependency on libgnomeui, but if you must use GnomeDruid, check this out:

http://developer.gnome.org/doc/API/2.0/libgnomeui/GnomeDruid.html#gnome-druid-set-buttons-sensitive
Back to top
srikanth
Familiar Face


Joined: 14 Nov 2006
Posts: 7

PostPosted: Thu Nov 16, 2006 5:40 am    Post subject: Reply with quote

I agree that by using GtkAssistant we cam remove the dependency on libgnomeui , but i am asked to work on Gtk 2.8 which comes with suse 10.1 . GtkAssistant comes with Gtk 10 right .

I have tried uinsg gnome-druid-set-buttons-sensitive , but failed . Can yoou help me out in using it .Do you have any sample.


Thanks.
Back to top
Micah Carrick
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 496
Location: Portland, OR USA

PostPosted: Thu Nov 16, 2006 5:12 pm    Post subject: Reply with quote

Using gnome_druid_set_buttons_sensitive works fine for me...

Code: (Plaintext)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

        GtkWidget      *gnomedruid1=NULL;
        GladeXML       *gxml=NULL;

        /* get druid from glade XML file */
       
        gxml = glade_xml_new ("gui.glade", NULL, NULL);
        gnomedruid1 = glade_xml_get_widget (gxml, "gnomedruid1");

        /* disable "forward" button-- only "cancel" is enabled */

        gnome_druid_set_buttons_sensitive (GNOME_DRUID(gnomedruid1),
                        FALSE,          /* back button */
                        FALSE,          /* next button */
                        TRUE,           /* cancel button */
                        FALSE );        /* help button */


void
gnome_druid_set_buttons_sensitive ( GnomeDruid *druid,
gboolean back_sensitive,
gboolean next_sensitive,
gboolean cancel_sensitive,
gboolean help_sensitive);
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP