Patch to gdmgreeter: new userlist type, new combo custom widget



Hello GDM folks--

I'd like to offer the attached patch for gdmgreeter.  I'm
afraid this is against GDM 2.4.4.7, since I don't have GNOME
2.6.

It has 3 changes:

	*Added a new kind of user list, which is a dropdown
	combo box that appears in place of the user-pw-entry
	GtkEntry whenever the username selection is active.

	To enable this, use XML similar to the following:
		<item type="entry" id="user-pw-entry" dropdown="fullname">
	where the legal choices for dropdown are "none",
"fullname",
	"login", or "both".

	When the dropdown is enabled, the user will be able to pick
their
	name from a GtkCombo instead of typing.

	It's not recommended for a theme to use both the dropdown
form of
	user-pw-entry at the same time as using the existing
userlist.

	*Added a new widget type, a custom combo list.  Use
	XML similar to the following:

		<item type="combo" id="custom-combo">
			<pos anchor="nw" x="10%" width="80%" height="24"/>
			<normal color="#0000FF" font="Utopia 12"/>
			<listitem id="One"><text>Item One</text></listitem>
			<listitem id="Two"><text>Item Two</text></listitem>
			<listitem id="Three"><text>Item Three</text></listitem>
			<listitem id="Four"><text>Item Four</text></listitem>
			<listitem id="Five"><text>Item Five</text></listitem>
		</item>

	*Re-worked the popup menu (accessible via F10 from the
	user-pw-entry widget).  Same behavior from the user's
perspective,
	but the code is a little cleaner.

Hope you find this useful,
--Howdy

  =============================
  Howdy Pierce
  Managing Partner
  Cardinal Peak, LLC

  email: howdy cardinalpeak com
  work:  (303) 665-3962
  web:   www.cardinalpeak.com
  =============================

Attachment: gdm.patch
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]