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

"Manuel Amador (Rudd-O)" <[email protected]> Thu, 11 Mar 2004 14:13:38 -0500
Newsgroups gmane.network.directoryadmin
Message-ID <[email protected]>
Look at the code used to set the proper primary group when the user
dialog loads up.  That should help you find out how to select an item
from the list.  GTK+ is EXTREMELY, EXTREMELY verbose.  I think I'll sue
'em for carpal tunnel syndrome.   When I get it =).

El jue, 11-03-2004 a las 12:39, Graham Leggett escribió:
> 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
> _______________________________________________
> Directoryadmin-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/directoryadmin-list
-- 
	Manuel Amador (Rudd-O)
	GPG key ID: 0xC1033CAD at keyserver.net
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQBAULpiWyznNMEDPK0RAj5nAJ9KyJuGReCfRGX6XWXd9mGMQh9kLwCfc8Ah
So8I1jr8IzTYWyZoBcgvZT0=
=grWn
-----END PGP SIGNATURE-----