Commit Graph

43 Commits

Author SHA1 Message Date
Bertrand Lorentz
bef589e836 gtk: Facilitate use of ComboBox and ComboBoxText with an Entry
Add ComboBox[Text] (bool with_entry) protected constructors to allow
subclasses with an Entry.
Add an Entry property for easy access to the Entry child widget.

Also remove the unused gtk/ComboBoxEntry.custom.
2011-07-16 15:45:30 +02:00
Bertrand Lorentz
6811075122 sample: Update the "test" samples to the new APIs
Accessing Dialog.ActionArea triggers a crash, so some samples fail
because of that.
2011-06-18 19:23:53 +02:00
Mike Kestner
34c0ecbcf7 The rest of the first pass.
*.*: Stubbing and tweaking and cajoling and disabling to get
the first successful build of 3.0 bindings.
2011-02-08 22:15:37 -06:00
Mike Kestner
a948792be0 2009-11-30 Mike Kestner <mkestner@novell.com>
* */Makefile.am: standardize on - options over / options for 
	consistency.  Also assists with build on msys. [Fixes #550667]

svn path=/trunk/gtk-sharp/; revision=147125
2009-11-30 20:40:34 +00:00
Dan Winship
45ebde9387 * gtk/ComboBoxEntry.custom: add an "Entry" property to cleanly
fetch the ComboBoxEntry's Gtk.Entry

svn path=/trunk/gtk-sharp/; revision=47750
2005-07-27 13:52:51 +00:00
Mike Kestner
762a1576fd make the sample 2.4 friendly
svn path=/trunk/gtk-sharp/; revision=46842
2005-07-01 17:45:07 +00:00
Mike Kestner
a0912263e2 2005-06-28 Mike Kestner <mkestner@novell.com>
* gtk/ComboBox.custom : add ctor (string[]).
	* gtk/ComboBoxEntry.custom : add ctor (string[]).
	* sample/test/TestComboBox.cs : simple new ComboBox tester.
	* sample/test/WidgetViewer.cs : button for simple new ComboBox tester.

svn path=/trunk/gtk-sharp/; revision=46657
2005-06-28 16:35:36 +00:00
Mike Kestner
fba841b1af some win32 compile fixes
svn path=/trunk/gtk-sharp/; revision=46558
2005-06-27 15:08:39 +00:00
Mike Kestner
e56d2feafc kill useless .cvsignore files
svn path=/trunk/gtk-sharp/; revision=43355
2005-04-20 20:11:00 +00:00
Mike Kestner
7f3171c814 merge to HEAD of jeroen and friends' work on the 2-4 branch. HEAD
is now tracking Gnome 2.6.

svn path=/trunk/gtk-sharp/; revision=35479
2004-10-29 20:33:07 +00:00
Mike Kestner
c1440d52d1 2004-06-10 Mike Kestner <mkestner@ximian.com>
* configure.in : AC_SUBST GACUTIL_FLAGS. require mono-0.95 (though
	it's really cvs bleeding edge.)
	* * AssemblyInfo.cs.in : s/pub/snk.  delaysign=no.
	* * Makefile.am : s/pub/snk.  portability fixes to csc from John
	Luke.  Switch to GACUTIL_FLAGS.
	* doc/Makefile.am : don't build docs, install raw xml to the prefix.

svn path=/trunk/gtk-sharp/; revision=29227
2004-06-10 19:45:20 +00:00
Mike Kestner
5a2659022c 2004-05-07 Mike Kestner <mkestner@ximian.com>
* sample/*/Makefile.am : rebuild if the assemblies change

svn path=/trunk/gtk-sharp/; revision=26920
2004-05-07 14:22:20 +00:00
Mike Kestner
e83c55a242 2004-03-12 Mike Kestner <mkestner@ximian.com>
* */Makefile.am : automakify the build
	* */Makefile.in : kill
	* *.custom : remove System.Drawing dependencies
	* *.cs : remove System.Drawing dependencies
	* *-api.xml : mv to *-api.raw
	* glue/* : mv to lib specific gluelibs for glib, gdk, gtk, and glade.
	* gtk/gtk-symbols : alias GtkType to GType
	* sources/gtk-sharp-sources.xml : create .raw files. They are now
	transformed to .xml files by the metadata compilation step.

svn path=/trunk/gtk-sharp/; revision=23967
2004-03-12 21:18:11 +00:00
Mike Kestner
8f14f27048 make sample/test build
svn path=/trunk/gtk-sharp/; revision=23080
2004-02-13 21:27:45 +00:00
Mike Kestner
f774796311 2004-02-10 Mike Kestner <mkestner@ximian.com>
* gconf/GConf.PropertyEditors/PropertyEditorColorPicker.cs :
	nuke a GnomeSharp.
	* generator/Signal.cs : move eventhandlers and args into the
	base namespace instead of a *Sharp namespace.
	* sample/*.cs : nuke using *Sharp.

svn path=/trunk/gtk-sharp/; revision=22956
2004-02-10 20:35:40 +00:00
Mike Kestner
d41f6593b0 2004-02-10 Mike Kestner <mkestner@ximian.com>
* art/Art.metadata : mark a field private
	* art/art-api.xml : regen
	* gda/Gda.metadata : mark a few structs opaque
	* gda/gda-api.xml : regen
	* gdk/*.custom : fix changed field names
	* gdk/gdk-api.xml : regen
	* generator/Field.cs : StudlyCase simple typed field names.
	* gnome/Gnome.metadata : mark FontEntry.weight private to
	avoid collision with Weight field. s|//|/api/namespace|g
	* gnome/gnome-api.xml : regen
	* gtk/Gtk.metadata : rename AccelKey.accel_key to key to
	avoid collision with type name.
	* gtk/*.custom : fix changed field names
	* gtk/gtk-api.xml : regen
	* pango/pango-api.xml : regen
	* parser/gapi_pp.pl : add a private_regex to hide BACKEND
	and ENGINE apis, which are by convention private.
	* sample/* : make compile
	* sample/GtkDemo/* : make compile
	* sample/test/* : make compile
	* sources/gtk-sharp-sources.xml : exclude a bunch of pango
	source files.

svn path=/trunk/gtk-sharp/; revision=22947
2004-02-10 16:04:50 +00:00
Duncan Mak
936e25b0c0 2003-03-05 Duncan Mak <duncan@ximian.com>
* TestCombo.cs: New file, to show basic usage of a ComboBox. It's
	missing some functionality, however. Currently, it's not possible
	to append to the list of strings in the pop-down.

svn path=/trunk/gtk-sharp/; revision=12252
2003-03-06 08:15:27 +00:00
Duncan Mak
8e10c2d7ff * TestFileSelection.cs: Update to reflect FileSelection changes.
* sources/Gtk.metadata: Add GetLayoutOffsets to the rule for out params.

* gtk/FileSelection.custom (Button): Rename to FSButton, so that
we won't wipe out our original Gtk.Button docs.

svn path=/trunk/gtk-sharp/; revision=11761
2003-02-20 04:03:15 +00:00
Duncan Mak
7cd3f7e625 Change the method signature for the various
SignalFuncs. Thanks to Leoric from #mono for pointing it out.

svn path=/trunk/gtk-sharp/; revision=11718
2003-02-19 08:54:47 +00:00
Duncan Mak
d1e99ecede Fix build after vlad's struct patch got in.
svn path=/trunk/gtk-sharp/; revision=8959
2002-11-12 21:51:45 +00:00
Duncan Mak
564a7978c6 2002-10-11 Duncan Mak <duncan@ximian.com>
* TestToolbar.cs: Fix the arguments to Toolbar.InsertStock.

svn path=/trunk/gtk-sharp/; revision=8175
2002-10-11 20:01:53 +00:00
Duncan Mak
854511bd98 2002-10-08 Duncan Mak <duncan@ximian.com>
* gdk/Color.custom:
	* gdk/DeviceAxis.custom:
	* gdk/Point.custom:
	* gdk/Rectangle.custom: Committed ToString patches contributed by
	Jasper van Putten <Jaspervp@gmx.net>

svn path=/trunk/gtk-sharp/; revision=8057
2002-10-08 06:49:11 +00:00
Rachel Hestilow
c8d090f62f 2002-08-31 Rachel Hestilow <hestilow@ximian.com>
Proper GList, GSList support. Read-only for now.

	* glue/list.c: Added.
	* glue/Makefile.am: Add list.c
	* glue/type.c: Add function gtksharp_is_object.

	* glib/ListBase.cs, List.cs: Added.
	* glib/SList.cs: Inherit from ListBase.
	* glib/Object.cs: Add static method "IsObject".

	* generator/Method.cs: Pass on element_type to constructor
	if specified.
	* generator/SymbolTable.cs: Move GList to manual types.

	* sample/GladeViewer.cs: Remove list hacks.

	* sources/Gnome.metadata: Specify element types for
	CanvasPathDef.Split and IconList.GetSelection. Rename
	CanvasPathDef *to methods to properly capitalized *To.
	* sources/Gtk.metadata: Hide Widget.ListAccelClosures until
	GClosure is handled properly.
	* sources/Pango.metadata: Added.

	* sample/test/TestToolbar.cs: Compile with recent delegate changes.

svn path=/trunk/gtk-sharp/; revision=7166
2002-09-01 04:46:38 +00:00
Joe Shaw
e14ce485dc 2002-08-13 Joe Shaw <joe@assbarn.com>
* configure.in: Check for libgnomecanvas.

	* gtk/ColorSelectionDialog.custom: Create a button subclass which
	contains a reference to the parent ColorSelectionDialog.  Modify
	properties to return this subclass instead of a regular
	Gtk.Button.

	* gtk/FileSelection.custom: Ditto.

	* sample/test/TestFileSelection.cs (file_selection_ok):
	Demonstrate the button subclass by destroying the parent dialog
	when the ok button is clicked.

svn path=/trunk/gtk-sharp/; revision=6610
2002-08-13 14:01:14 +00:00
Duncan Mak
6d507c9625 2002-08-09 Duncan Mak <duncan@ximian.com>
* TestRange.cs (reformat_value): Do something useful here.

svn path=/trunk/gtk-sharp/; revision=6558
2002-08-09 04:47:40 +00:00
Duncan Mak
54dfc5bc93 Revert my last patch.
svn path=/trunk/gtk-sharp/; revision=6495
2002-08-07 06:40:09 +00:00
Duncan Mak
a15be41988 2002-08-07 Duncan Mak <duncan@ximian.com>
* TestRange.cs (Close_Button): Remember to set our RetVal.

svn path=/trunk/gtk-sharp/; revision=6492
2002-08-07 04:11:49 +00:00
Duncan Mak
c73ccc6b50 2002-07-31 Duncan Mak <duncan@ximian.com>
* *.cs: Flush. Made it use Stock buttons instead of just a plain
	text label.

	* TestColorSelection.cs: Made the result dialog work a bit better.

	* ChangeLog: Added Rachel's ChangeLog entry to here.

svn path=/trunk/gtk-sharp/; revision=6273
2002-07-31 07:07:29 +00:00
Rachel Hestilow
967e3e9c5a 2002-07-30 Rachel Hestilow <hestilow@ximian.com>
* generator/ClassBase.cs: Change hasDefaultConstructor to protected,
	adjust now that it is an attr and not a subnode. Also add virtual
	property AssignToName (for ctors).

	* generator/Ctor.cs: Add property ForceStatic.
	(Generate): Optimize return code a bit for the static case.

	* generator/Method.cs: Assign to a "raw_ret" pointer before calling
	FromNativeReturn.

	* generator/Parameters.cs: Change "out ref" to "out", not "ref".

	* generator/Property.cs: Fix to work correctly with all object and
	struct types (mostly just some if-cases added).

	* generator/SignalHandler.cs: Remove args_type and argfields (unused).
	(Generate): Initialize struct if necessary.

	* generator/StructBase.cs: Massive reworking to support methods, ctors,
	etc.

	* generator/SymbolTable.cs: Add GdkAtom and gconstpointer simple types.

	* glib/Boxed.cs: Accept both IntPtr and object ctors. Add access for both.

	* glib/Opaque.cs: Fix copy/pasted copyright notice, remove data and event
	fields. Fix docs.

	* glib/Value.cs: Work correctly with boxed properties.

	* gnome/Modules.cs: Use new struct ctors.

	* gnome/Program.custom: Remove Get, this is being generated now.

	* parser/Gdk.metadata: Fix the drawable classes to inherit correctly.

	* parser/Metadata.pm: Change per-class attributes to actually be
	attributes.

	* parser/Gtk.metadata: Add a dummy attribute value for disabledefaultctor.

	* parser/gapi2xml.pl: Add hacks for the (broken) Drawable and Bitmap
	typedefs.

	* sample/test/TestColorSelection.cs: Display color string in hex format,
	update to use IsNull instead of == null, and size dialog to look pretty.

	* sample/Size.cs: Added.

svn path=/trunk/gtk-sharp/; revision=6264
2002-07-30 23:02:12 +00:00
Rachel Hestilow
4d92d54b3f 2002-07-25 Rachel Hestilow <hestilow@ximian.com>
[about 60% of the marshalling patch that I lost.
	 The rest to come tomorrow.]

	* generator/BoxedGen.cs, StructGen.cs: Move most of this to StructBase,
	delete large chunks duplicated from ClassBase.

	* generator/IGeneratable.cs: Add MarshalReturnType, FromNativeReturn.

	* generator/ClassBase.cs: Move ctor stuff here. Add a CallByName
	overload with no parameters for the "self" reference.

	* generator/EnumGen.cs, CallbackGen.cs: Implement new MarshalReturnType,
	  FromNativeReturn.

   * generator/Method.cs: Use container_type.MarshalType, CallByName, and
	  SymbolTable.FromNativeReturn when generating call and import sigs.

	* generator/OpaqueGen.cs: Added.

	* generator/Property.cs: Handle boxed and opaques differently.

	* generator/SymbolTable.cs: Update for the opaque stuff and the new Return
	methods. Also change GetClassGen to simply call the as operator.

	* glib/Boxed.cs: Update for struct usage -- this is now a wrapper for
	  the purposes of using with Value.

   * glib/Opaque.cs: Added. New base class for opaque structs.

	* glue/textiter.c, gtk/TextIter.custom: Remove.

	* gnome/Program.cs: Update for new struct marshalling.

	* parser/Metadata.pm: Use our own getChildrenByTagName.

	* parser/README: Update for new requirements (was out of sync with
	  build.pl)

	* parser/gapi2xml.pl: Hide struct like const in field elements.

	* parser/gapi_pp.pl: Handle embedded union fields (poorly).

	* sample/test/TestColorSelection.cs: Comment out null color tests
     for now.

svn path=/trunk/gtk-sharp/; revision=6186
2002-07-26 06:08:52 +00:00
Duncan Mak
dd71eaf3ea 2002-07-25 Duncan Mak <duncan@ximian.com>
* TestRange.cs: Fix the EventHandlers here.

svn path=/trunk/gtk-sharp/; revision=6167
2002-07-25 11:42:04 +00:00
Duncan Mak
2f44d60039 2002-07-23 Duncan Mak <duncan@ximian.com>
* TestMenus.cs: Use MenuItem instead of ImageMenuItem, this test
works now.

* TestFileSelection.cs: window.Selections is crashing, remove
it. OK Button doesn't do anything now.

* WidgetViewer.cs: Add in a frame.

svn path=/trunk/gtk-sharp/; revision=6021
2002-07-22 17:06:28 +00:00
Duncan Mak
2ac0a2cc89 2002-07-20 Duncan Mak <duncan@ximian.com>
* TestSizeGroup.cs: Minor aesthetic changes.

	* TestStatusbar.cs: Some changes in the output to figure out why
	it is behaving like this.

svn path=/trunk/gtk-sharp/; revision=5946
2002-07-19 19:05:11 +00:00
Duncan Mak
66d0a287b3 2002-07-19 Duncan Mak <duncan@ximian.com>
* TestSizeGroup.cs: New test for GtkSizeGroup.

	* Makefile:
	* WidgetViewer.cs: Include TestSizeGroup.

svn path=/trunk/gtk-sharp/; revision=5907
2002-07-19 09:44:29 +00:00
Radek Doulik
5fd1b11716 fixed typo
svn path=/trunk/gtk-sharp/; revision=5897
2002-07-18 20:02:37 +00:00
Duncan Mak
aeb6280e2f 2002-07-18 Duncan Mak <duncan@ximian.com>
* WidgetViewer.cs: Fixed InvalidCastException.

	* TestStatusbar.cs: Made it work. Sigh, I dunno why I got it wrong
	the first time.

	* TestMenus.cs: Use null instead of new SList (IntPtr.Zero); and
	remove the unnecessary try... catch block.

svn path=/trunk/gtk-sharp/; revision=5889
2002-07-18 12:06:17 +00:00
Duncan Mak
6f5bbc2259 2002-07-18 Duncan Mak <duncan@ximian.com>
* TestMenus.cs: Use null instead of new SList (IntPtr.Zero); and
	remove try... catch block.

svn path=/trunk/gtk-sharp/; revision=5879
2002-07-17 18:31:51 +00:00
Duncan Mak
f3ad31837b 2002-07-18 Duncan Mak <duncan@ximian.com>
* TestCheckButton.cs:
	* TestDialog.cs:
	* TestFileSelection.cs:
	* TestFlipping.cs:
	* TestMenus.cs:
	* TestRadioButton.cs:
	* TestRange.cs:
	* TestStatusbar.cs:
	* TestTooltip.cs:  Removed erroneous references to SignalArgs, and
	changed EventHandlers to more appropriate specialized Handlers instead.

svn path=/trunk/gtk-sharp/; revision=5869
2002-07-17 16:33:35 +00:00
Duncan Mak
aa56559530 2002-07-17 Duncan Mak <duncan@ximian.com>
* Makefile:
	* WidgetViewer.cs: Added TestMenus.cs

	* TestMenus.cs: New test for testing menu widgets.

svn path=/trunk/gtk-sharp/; revision=5856
2002-07-17 15:14:55 +00:00
Duncan Mak
ec3f7ead3e 2002-07-17 Duncan Mak <duncan@ximian.com>
* WidgetViewer.cs: Changed the EventArgs stuff to match Mike's
	latest commit.

	* TestToolbar.cs: Thanks to Dietmar for fixing #27695. Added new
	button for toggling showing tooltips.

svn path=/trunk/gtk-sharp/; revision=5841
2002-07-17 08:59:11 +00:00
Duncan Mak
caf4397b04 2002-07-16 Duncan Mak <duncan@ximian.com>
* TestCheckButton.cs:
	* TestTooltip.cs: Added copyright material.

	* TestColorSelection.cs: Attempt to do something new after color
	is selected. ColorSelection.CurrentColor (get) doesn't seem to
	work right now, bug 27834.

	* TestDialog.cs: Removed debugging messages and beautified the dialog.

	* TestFlipping.cs: New test to show widget flipping.

	* TestRadioButton.cs: Changed the constructors used to build the
	radio buttons to work around bug 27833.

	* Makefile: Added TestFlipping.cs.

	* WidgetViewer.cs (AddWindow): Another convenience method for
	adding new Test dialogs.

2002-07-15  Duncan Mak  <duncan@ximian.com>

	* WidgetViewer.cs (AddButton): New convenience method so that I don't have to type
	the same thing when adding a new test button.

svn path=/trunk/gtk-sharp/; revision=5824
2002-07-16 10:11:49 +00:00
Duncan Mak
75435b10f1 2002-07-13 Duncan Mak <duncan@ximian.com>
* *.cs: Added copyright material.

svn path=/trunk/gtk-sharp/; revision=5740
2002-07-12 17:15:06 +00:00
Duncan Mak
7a05f25736 2002-07-13 Duncan Mak <duncan@ximian.com>
* *.cs: Checking in testgtk# to CVS.

svn path=/trunk/gtk-sharp/; revision=5737
2002-07-12 16:52:55 +00:00