GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Tue Sep 02, 2014 6:48 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: disable forward button in druid
PostPosted: Wed Nov 15, 2006 10:48 am 
Offline
Familiar Face

Joined: Tue Nov 14, 2006 6:06 am
Posts: 7
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 3:32 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
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/ ... -sensitive

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 16, 2006 5:40 am 
Offline
Familiar Face

Joined: Tue Nov 14, 2006 6:06 am
Posts: 7
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 16, 2006 5:12 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
Using gnome_druid_set_buttons_sensitive works fine for me...

Code:
        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);

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group