Re: [Patch] Updated patch for Samba v3.0

Graham Leggett <[email protected]> Thu, 11 Mar 2004 19:39:33 +0200
Newsgroups gmane.network.directoryadmin
Message-ID <[email protected]>
Graham Leggett wrote:

> I managed to figure out the glade stuff, so now you can choose the 
> domain you are a member of via a dropdown box.

Spoke too soon.

I am populating multiple domains into the domains drop down box like so. 
This works fine.

     gtk_combo_set_popdown_strings (GTK_COMBO (lookup_widget
                                             (modifyuserdialog,
                                             "sambaDomainNameDropdown")),
                             app_get_sambadomains_from_ldap(usethisone));
     gtk_toggle_button_set_active ((GtkToggleButton *)
                                   lookup_widget (modifyuserdialog,
                                         "sambaDomainNameDropdown"),
                                   hasSamba);

I then try to place the default value of the domain, which happens to be 
the _second_ option on the list, like so:

gtk_entry_set_text (GTK_ENTRY (lookup_widget (modifyuserdialog, 
"sambaDomainName")), sambaDomainName);

But when the dialog box is rendered, the _first_ option in the dropdown 
is listed as the currently selected value, instead of the _second_ 
option, which is totally wrong.

Can anyone tell me what I am doing wrong here? I am still very new to 
this code, so I am not sure what the problem is.

Regards,
Graham
--



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click