Commit Graph

292 Commits

Author SHA1 Message Date
John Luke
d9d19a3450 fix DemoHyperText
small sizing change for DemoExpander

svn path=/trunk/gtk-sharp/; revision=42185
2005-03-24 04:32:49 +00:00
John Luke
1b4913630b use new PersistentData instead of Data
svn path=/trunk/gtk-sharp/; revision=41844
2005-03-15 17:30:29 +00:00
Jeroen Zwartepoorte
46007cfd17 2005-02-10 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* sample/Actions.cs: Remove obsolete & unsafe GLib.Object.Data usage.


svn path=/trunk/gtk-sharp/; revision=40441
2005-02-10 21:50:50 +00:00
Mike Kestner
289b127b10 2005-01-28 Mike Kestner <mkestner@novell.com>
* gtk/Dialog.custom : add a params array for button info to the ctor.
	* gtk/FileChooserDialog.custom : add a params array for button info to 
	both ctors.  Chain them to IntPtr.Zero.
	* gtk/Gtk.metadata : hide the ellipsis ctors for the dialog types.
	[Fixes #71818]
	* sample/GtkDemo/DemoDialog.cs : make the InteractiveDialog use the
	new Dialog ctor as it does in the c version.

svn path=/trunk/gtk-sharp/; revision=39713
2005-01-28 16:03:27 +00:00
John Luke
c672ddc7a3 flush
svn path=/trunk/gtk-sharp/; revision=39607
2005-01-26 23:05:42 +00:00
John Luke
f2343fbb71 2005-01-25 John Luke <john.luke@gmail.com>
* sample/CustomNotebook.cs:
        * sample/CustomWidget.cs: use Widget.WidgetFlags prop to avoid
        obsolete warning


svn path=/trunk/gtk-sharp/; revision=39528
2005-01-25 21:18:33 +00:00
Dan Winship
67e7fc486b * glib/Marshaller.cs (StringFormat): Calls String.Format and makes
sure the output has no unescaped "%"s. (For wrapping printf-style
	unmanaged methods with String.Format-style managed ones.)

	* gtk/MessageDialog.custom (MessageDialog): use it. #71405. Also,
	use gtk_message_dialog_new_with_markup by default, and add an
	overloaded ctor that lets you use the non-markup version.

	* gtk/Gtk.metadata: hide the GtkMessageDialog ctors so we don't
	get ellipsis warnings about them.

	* sample/GtkDemo/DemoApplicationWindow.cs:
	* sample/GtkDemo/DemoDialog.cs: simplify the MessageDialog usage;
	don't need to call String.Format separately now.

svn path=/trunk/gtk-sharp/; revision=39256
2005-01-20 15:45:13 +00:00
Mike Kestner
04f9d007cc 2005-01-12 Mike Kestner <mkestner@novell.com>
* sample/gnomevfs/Makefile,am : conditionally build.

svn path=/trunk/gtk-sharp/; revision=38792
2005-01-12 17:36:12 +00:00
Mike Kestner
32aa6d0788 2005-01-12 Mike Kestner <mkestner@novell.com>
* sample/gnomevfs/*.cs : s/Test.Gnome.VFS/TestGnomeVfs to avoid
	namespace collision problems with current mcs.

svn path=/trunk/gtk-sharp/; revision=38788
2005-01-12 15:34:09 +00:00
Mike Kestner
d944e97bf2 2005-01-11 Mike Kestner <mkestner@novell.com>
* configure.in : add test for System.Drawing. expand gtkdotnet.
	* Makefile.am : add gtkdotnet.
	* makefile.win32 : add gtkdotnet.
	* gtkdotnet/* : new .Net extensions assembly. Moved the sample
	sysdraw.cs Graphics class in here under the Gtk.DotNet namespace.
	* sample/sysdraw.cs : moved to gtkdotnet/Graphics.cs.
	* sample/drawing-sample.exe.config.in : killed.
	* sample/DrawingSample.cs : use Gtk.DotNet.Graphics.
	* sample/Makefile.am : make drawing-sample.exe build conditional
	on gtk-dotnet presence.

svn path=/trunk/gtk-sharp/; revision=38745
2005-01-12 00:11:08 +00:00
Mike Kestner
05edc3a67d 2005-01-07 Mike Kestner <mkestner@novell.com>
* sample/Makefile.am : mdb cleanup.
	* sample/GtkDemo/Makefile.am : mdb cleanup.

svn path=/trunk/gtk-sharp/; revision=38512
2005-01-07 23:22:54 +00:00
John Luke
8fc739e12c display the info page from comments in the source
and add missing descriptions

svn path=/trunk/gtk-sharp/; revision=38236
2005-01-02 19:16:41 +00:00
Jeroen Zwartepoorte
db2ab91013 2004-12-28 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* sample/gnomevfs/TestVolumes.cs: Update sample.


svn path=/trunk/gtk-sharp/; revision=38131
2004-12-28 14:15:53 +00:00
Jeroen Zwartepoorte
f3b891e758 2004-12-27 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gnomevfs/Directory.cs: s/uint/FilePermissions/.
	* gnomevfs/Gnomevfs.metadata: Make a bunch of API more user-friendly &
	C# like.
	* gnomevfs/Monitor.cs: Add internal MonitorEventType enum.
	* gnomevfs/Uri.custom: Move a bunch of API from Vfs.cs to Uri.
	* gnomevfs/Vfs.cs: Only put initialize & shutdown methods in here (plus
	some debug API).
	* gnomevfs/VfsStream.cs: Use new Uri API.
	* sample/gnomevfs/TestUnlink.cs: Fix sample.


svn path=/trunk/gtk-sharp/; revision=38112
2004-12-27 20:02:33 +00:00
John Luke
f38222d9e0 remove warnings
remove obselete code that is no longer in the GTK+ version
update TODO

svn path=/trunk/gtk-sharp/; revision=38099
2004-12-26 22:00:32 +00:00
Mike Kestner
adef5f7bbd 2004-12-23 Mike Kestner <mkestner@novell.com>
* glib/ClassInitializerAttribute.cs : new attr for identifying type.
	inialization methods to be run by RegisterGType.
	* glib/Makefile.am : add file.
	* glib/Object.cs : add private method to invoke ClassInitializers.
	* gtk/glue/widget.c : some new glue for binding registration.
	* gtk/BindingAttribute.cs : new attr for registering key bindings.
	* gtk/Makefile.am : add file.
	* gtk/Widget.custom : add ClassInitializer method to scan types
	for [Binding] and register key bindings.

svn path=/trunk/gtk-sharp/; revision=38074
2004-12-23 22:59:59 +00:00
Dan Winship
62258ca7c3 * generator/CallbackGen.cs:
* generator/CodeGenerator.cs: 
        * generator/ManagedCallString.cs:
        * generator/Property.cs: Remove unused vars

        * generator/Method.cs (GetHashCode): have to implement this since
        we're overriding Equals.

        * generator/CallbackGen.cs: print a message when generating a
        broken struct-returning callback. (Currently affects
        GtkSharp.TextSegSplitFuncNative and
        GtkSharp.TextSegCleanupFuncNative)

        * gdk/glue/device.c: 
        * gdk/glue/dragcontext.c: Add missing prototypes

        * gtk/Gtk.metadata: Mark SeparatorToolItem.Draw "new". Re-rename
        CheckMenuItem.Toggled to EmitToggled rather than Toggle, since
        that's a better description of what it does.

        * gtk/CheckMenuItem.custom: implement a "Toggle" method that does
        what the documentation claims it does.

        * gtk/NodeStore.cs: remove unused var

        * gnome/Gnome.metadata: mark DateEdit.Flags, Dialog.Default, and
        PropertyBox.State "new". Hide GnomePixmapEntry.GnomeEntry and
        GnomePixmapEntry.GtkEntry since they do exactly the same thing as
        the methods of the same names inherited from GnomeFileEntry.

        * gnome/glue/canvas-proxy.c:
        * gnome/glue/canvas-proxy.h:
        * gnome/glue/canvas-proxy-marshal.c:
        * gnome/glue/canvas-proxy-marshal.h:
        * gnome/glue/canvas-proxy-marshal.list: Remove unused code

        * gnome/glue/Makefile.am (libgnomesharpglue_2_la_SOURCES): update

        * panelapplet/PanelApplet.metadata: mark PanelApplet.Flags "new"

        * sample/CanvasExample.cs: 
        * sample/CustomCellRenderer.cs: 
        * sample/CustomNotebook.cs: 
        * sample/DrawingSample.cs:
        * sample/Fifteen.cs: 
        * sample/GladeTest.cs: 
        * sample/GtkDemo/DemoHyperText.cs: 
        * sample/GtkDemo/DemoPixbuf.cs: 
        * sample/ScribbleXInput.cs: remove unused vars, use
        GLib.Timeout.Add rather than the deprecated Gtk.Timeout.Add

svn path=/trunk/gtk-sharp/; revision=38043
2004-12-21 18:46:42 +00:00
John Luke
7535410958 enable completion on this now
svn path=/trunk/gtk-sharp/; revision=38006
2004-12-20 23:39:59 +00:00
Dan Winship
c87558b526 * sample/GtkDemo/DemoStockBrowser.cs: update this to work with
that. (It used to crash.)

svn path=/trunk/gtk-sharp/; revision=37996
2004-12-20 19:47:40 +00:00
Jeroen Zwartepoorte
e2fd0d5e42 2004-12-20 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gnomevfs/Makefile.am:
	* gnomevfs/ModuleCallback.cs: 
	* gnomevfs/ModuleCallbackAuthentication.cs:
	* gnomevfs/ModuleCallbackFullAuthentication.cs:
	* gnomevfs/Vfs.cs: Use a custom VfsException for Result errors.
	* gnomevfs/VfsException.cs: new custom Exception class.
	* sample/gnomevfs/Makefile.am:
	* sample/gnomevfs/TestCallback.cs:
	
	Implement custom bindings for the ModuleCallback mechanism. Atm, only
	the GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION and
	GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION callbacks are implemented.
	Also added a test-case using the full authentication callback (tested
	using the sftp: method). [Partially fixes #70602]


svn path=/trunk/gtk-sharp/; revision=37972
2004-12-20 15:20:58 +00:00
Mike Kestner
59faab866e 2004-12-17 Mike Kestner <mkestner@novell.com>
* gtk/Makefile.am : add new file.
	* gtk/glue/makefile.win32 : add missing file.
	* gtk/NodeCellDataFunc.cs : new callback delegate type and marshaler
	for NodeStore tree views using GtkTreeCellDataFuncs.
	* gtk/NodeStore.cs : add internal GetNode overload by TreeIter.
	* gtk/NodeView.cs : add AppendColumn overload that uses data funcs.
	* gtk/TreeViewColumn.custom : manual implementation for SetCellDataFunc
	to support both TreeIter and ITreeNode models.  We need to hold a ref
	to a delegate for each cell renderer on a column. [Fixes #63062]
	* sample/NodeViewDemo.cs : use a NodeCellDataFunc for one of the 
	cell renderers in the tree.

svn path=/trunk/gtk-sharp/; revision=37904
2004-12-17 20:32:33 +00:00
Dan Winship
faaccd7e0b * generator/ManagedCallString.cs (Setup, Finish, ToString): Add
new methods to allow arbitrary setup and teardown code around the
        managed call. When passing a type with "complicated" marshalling
        requirements as a ref or out param, first assign the value to a
        temporary variable (in Setup), then pass the temp as the ref or
        out param (in ToString), and then assign the new value back to the
        original argument (in Finish).

        * generator/Signal.cs: 
        * generator/SignalHandler.cs: Update to generate correct glue for
        signals with "ref" or "out" params. (#70566)

        * generator/VirtualMethod.cs: Update for ManagedCallString change

        * generator/IGeneratable.cs: add comments explaining what each
        member does

        * gtk/Gtk.metadata: mark Editable.InsertText's "position" arg
        * pass-by-ref

        * sample/Size.cs: connect to the SizeRequested event and override
        it, to test/demo the changes

svn path=/trunk/gtk-sharp/; revision=37854
2004-12-16 23:38:35 +00:00
Mike Kestner
48358ccf22 2004-12-16 Mike Kestner <mkestner@novell.com>
* sample/NodeViewDemo.cs : rework of TreeViewDemo to use NodeStore.
	* sample/TreeViewDemo.cs : added some timing and node counting fu.

2004-12-16  Duncan Mak  <duncan@ximian.com>

	* gtk/Makefile.am (sources): Added NodeSelection and NodeView.
	* gtk/NodeSelection.cs: New file, an implementation of
 	TreeSelection that exposes ITreeNodes instead of TreeIters.
	* gtk/NodeStore.cs : added internal GetIter and GetPath methods for 
	NodeSelection. Reworked [TreeNodeValue] lookup logic.
 	out what the Type of data the store holds.
	* gtk/NodeView.cs: New subclass of TreeView utilizing NodeStore and
	NodeSelection.
	* gtk/TreeIter.custom : new internal UserData prop.
	* gtk/TreeNodeValueAttribute.cs: Set AllowMultiple to true.
	* gtk/TreeView.custom: Obsoleted constructor that uses a NodeStore as
 	parameter. NodeView should be used instead.

svn path=/trunk/gtk-sharp/; revision=37845
2004-12-16 20:30:43 +00:00
John Luke
4da41dbe67 use reflection to handle the TreeView and launching of the demos
Add a DemoAttribute to all the demos to support this

svn path=/trunk/gtk-sharp/; revision=37669
2004-12-12 22:11:44 +00:00
John Luke
304f9404b4 add clipboard demo from gtk-demo
svn path=/trunk/gtk-sharp/; revision=37667
2004-12-12 20:58:08 +00:00
Jeroen Zwartepoorte
aca1b3ce98 2004-12-08 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* sample/Makefile.am: Readded TestVfs.cs back and make it conditional.
	* sample/TestVfs.cs: New sample contributed by Tamara Roberson.
	[Fixes #70262]


svn path=/trunk/gtk-sharp/; revision=37374
2004-12-08 08:47:18 +00:00
Mike Kestner
993d91fa31 2004-12-07 Mike Kestner <mkestner@novell.com>
* */*.cs : s/glue-2.0/glue-2 so that dllimport works on win32.
	* */*.custom : s/glue-2.0/glue-2
	* */glue/makefile.win32 : s/glue-2.0/glue-2
	* */glue/Makefile.am : s/glue-2.0/glue-2

svn path=/trunk/gtk-sharp/; revision=37324
2004-12-07 19:03:55 +00:00
John Luke
7c2a7206a2 add some new gtk2.4 demos, remove ItemFactory
svn path=/trunk/gtk-sharp/; revision=37062
2004-12-03 22:21:44 +00:00
John Luke
e16d2290d7 update these to the gtk2.4 ways (ComboBox and Action/UIManager)
svn path=/trunk/gtk-sharp/; revision=37056
2004-12-03 21:00:33 +00:00
Dan Winship
e0a0bd13fa * gdk/gdk-symbols.xml: alias GdkBitmap to GdkPixmap [Fixes
* #68824]

        * gdk/Gdk.metadata: Remove the earlier GdkBitmap hack now that
        it's aliased. Also move Gdk.Bitmap.CreateFromData to
        Gdk.Pixmap.CreateBitmapFromData

        * gdk/Pixbuf.custom (RenderPixmapAndMask,
        RenderPixmapAndMaskForColormap, RenderThresholdAlpha):
        s/Bitmap/Pixmap/

        * sample/GtkDemo/DemoTextView.cs: uncomment the fg/bg stipple
        code, since that works now

        * parser/gapi-fixup.cs: Add an "add-node" rule. This turned out
        * to
        not actually be needed for this fix, but we know we'll need it
        later, so here it is.

svn path=/trunk/gtk-sharp/; revision=37055
2004-12-03 20:42:12 +00:00
Dan Winship
2c9ce7d64e * gtk/Gtk.metadata: Pass TextIters by ref almost everywhere.
[Fixes #70187]. Kill two varargs warnings.

        * gtk/TextBuffer.custom: Update for that, and also implement
        InsertWithTagsByName

        * sample/GtkDemo/DemoHyperText.cs:
        * sample/GtkDemo/DemoTextView.cs: Remove kludges for broken
        TextIter handling. Also fix the i18n demo bits by translating the
        octal-encoded UTF-8 to hex-encoded UTF-16.

svn path=/trunk/gtk-sharp/; revision=37039
2004-12-03 18:00:30 +00:00
Dan Winship
ec0b40c343 * sample/GtkDemo/DemoImages.cs: Fix some crashers discovered while
trying to use this as a test case to figure out whether or not I'd
        broken Gtk#. Sigh. :)

svn path=/trunk/gtk-sharp/; revision=36863
2004-11-30 21:13:42 +00:00
Ben Maurer
12b8e718e1 Make the sample have good coding :-)
svn path=/trunk/gtk-sharp/; revision=36750
2004-11-29 03:28:27 +00:00
Miguel de Icaza
6eea226ab7 Update dample
svn path=/trunk/gtk-sharp/; revision=36749
2004-11-29 03:22:33 +00:00
Jeroen Zwartepoorte
0c81f9142c 2004-11-26 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gtk/ActionEntry.cs:
	* gtk/ActionGroup.custom:
	* gtk/Gtk.metadata:
	* gtk/Makefile.am:
	* gtk/RadioActionEntry.cs:
	* gtk/ToggleActionEntry.cs:
	* gtk/UIManager.custom:
	* sample/Actions.cs: Updated to use the new *ActionEntry code. Reflects
	testactions.c from gtk+ now.
	
	Added C# syntactic sugar for easily defining Action's for the UIManager.
	Derived from the same ActionEntry structs in gtk+.


svn path=/trunk/gtk-sharp/; revision=36638
2004-11-26 14:59:38 +00:00
Jeroen Zwartepoorte
55aed28266 2004-11-02 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gnomevfs/AsyncDirectoryLoadCallback.cs:
	* gnomevfs/AsyncDirectoryLoadCallbackNative.cs:
	* gnomevfs/Directory.cs: Implement asynchronous directory loading.
	* gnomevfs/FileInfo.cs: Clear the FileInfoNative struct in the
	destructor.
	* gnomevfs/Makefile.am: Add new callback files.
	* sample/gnomevfs/TestDirectory.cs: Add async test.

svn path=/trunk/gtk-sharp/; revision=35571
2004-11-02 19:17:05 +00:00
Dan Winship
eb4abd9536 ignore .exe.mdb files
svn path=/trunk/gtk-sharp/; revision=35559
2004-11-02 13:48:22 +00:00
Jeroen Zwartepoorte
33dbe7485e 2004-11-01 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gnomevfs/Directory.cs: Bind gnome_vfs_directory_list_load as a static
	FileInfo[] GetEntries (uri) method.
	* gnomevfs/FileInfo.cs: Add internal FileInfoNative constructor to
	create a FileInfo class based on an existing FileInfoNative struct.
	* gnomevfs/Makefile.am:
	* sample/gnomevfs/Makefile.am:
	* sample/gnomevfs/TestDirectory.cs:

svn path=/trunk/gtk-sharp/; revision=35532
2004-11-01 20:03:30 +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
Miguel de Icaza
e474831d5e Update Cairo Sample
svn path=/trunk/gtk-sharp/; revision=33460
2004-09-06 23:54:35 +00:00
John Luke
8f2aa18cb0 improve this thing
svn path=/trunk/gtk-sharp/; revision=32972
2004-08-28 20:51:06 +00:00
John Luke
6cf715ac84 fix invaliid iter in DemoMain
some lame StockBrowser stuff

svn path=/trunk/gtk-sharp/; revision=32971
2004-08-28 20:04:41 +00:00
John Luke
35e772eef9 argh, distcheck hates me
svn path=/trunk/gtk-sharp/; revision=32962
2004-08-28 03:41:22 +00:00
John Luke
9bc5a874e3 new partial HyperText demo
clean up DemoMain
fix distcheck

svn path=/trunk/gtk-sharp/; revision=32961
2004-08-28 03:30:33 +00:00
John Luke
8ba7c8305b store the .cs files as resources also
svn path=/trunk/gtk-sharp/; revision=32944
2004-08-27 19:43:41 +00:00
John Luke
780218b349 fix my brokenness
svn path=/trunk/gtk-sharp/; revision=32943
2004-08-27 19:16:13 +00:00
John Luke
c3d54388e2 use resources for images
Dont crash if source is not there
makes it easier to run on win32

svn path=/trunk/gtk-sharp/; revision=32942
2004-08-27 19:00:00 +00:00
Mike Kestner
e5dde2ff7e 2004-08-26 Manuel V. Santos <mvsl@telefonica.net>
* gdk/Device.custom : glue to expose object fields.
	* gdk/DeviceAxis.custom : expand the ToString to incl use:
	* gdk/EventButton.custom : fix for Axes prop.
	* gdk/EventMotion.custom : fix for Axes prop.
	* gdk/Gdk.metadata : hide some accessors on Device.
	* gdk/Makefile.am : add new custom.
	* gdk/glue/Makefile.am : add new .c
	* gdk/glue/makefile.win32 : add new .o
	* gdk/glue/device.c : ditto.
	* gtk/InputDialog.custom : glue to expose button fields.
	* gtk/Makefile.am : add new custom.
	* gtk/glue/Makefile.am : add new .c
	* gtk/glue/makefile.win32 : add new .o
	* gtk/glue/inputdialog.c : ditto.
	* sample/ScribbleXInput.cs : new sample using extension events.

svn path=/trunk/gtk-sharp/; revision=32899
2004-08-26 19:10:48 +00:00
John Luke
87ca50791c new example/test for Rsvg
svn path=/trunk/gtk-sharp/; revision=32795
2004-08-24 20:26:36 +00:00
John Luke
a95c723a5d enable this part now
svn path=/trunk/gtk-sharp/; revision=32327
2004-08-13 19:44:15 +00:00