[Gtk-sharp-list] Adding Gtk.ComboBox.Button

Mathias Hasselmann mathias.hasselmann@gmx.de
Wed, 6 Nov 2002 01:31:09 +0100 (CET)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--8323328-765656354-1036542669=:22829
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,

	I like it to set the relief the the combobox's button to 
GTK_RELIEF_NONE in my apps. Think this looks better. To accomplish this 
hack in put Gtk# I had to add a function to libgtksharpglue.so and a 
property named "Button" to Gtk.ComboBox. See my patch for details.

Ciao,
Mathias

--8323328-765656354-1036542669=:22829
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="gtk-sharp-combo-button.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.44.0211060131090.22829@localhost.localdomain>
Content-Description: The Patch
Content-Disposition: attachment; filename="gtk-sharp-combo-button.diff"

SW5kZXg6IGdsaWIvT2JqZWN0TWFuYWdlci5jcw0KPT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PQ0KUkNTIGZpbGU6IC9tb25vL2d0ay1zaGFycC9nbGliL09iamVj
dE1hbmFnZXIuY3Msdg0KcmV0cmlldmluZyByZXZpc2lvbiAxLjYNCmRpZmYg
LXUgLXUgLXIxLjYgT2JqZWN0TWFuYWdlci5jcw0KLS0tIGdsaWIvT2JqZWN0
TWFuYWdlci5jcwk1IE9jdCAyMDAyIDA1OjExOjU5IC0wMDAwCTEuNg0KKysr
IGdsaWIvT2JqZWN0TWFuYWdlci5jcwk2IE5vdiAyMDAyIDAwOjE4OjU0IC0w
MDAwDQpAQCAtMSw0ICsxLDUgQEANCiAvLyBHZW5lcmF0ZWQgRmlsZS4gIERv
IG5vdCBtb2RpZnkuDQorLy8gLS0tLS0tLS0tLS0tLS0tIGlzIHRoYXQgc3Rp
bGwgdHJ1ZT8gaSBkb3Vid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