Commit graph

16 commits

Author SHA1 Message Date
John Luke
3ebf6e3e30 add rotated text demo
svn path=/trunk/gtk-sharp/; revision=43417
2005-04-21 20:11:03 +00:00
Dan Winship
246d4e1620 * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some
gratuitous differences from the C version. Make comment and indent
	style consistent. Don't use "this." where not needed. Override
	OnDeleteEvent rather than connecting one's own DeleteEvent signal.

	* sample/GtkDemo/DemoApplicationWindow.cs (static
	DemoApplicationWindow): register the Gtk logo icon with
	StockManager so it shows up correctly in the toolbar.
	(AddActions): Register the radio items as radio items so they work
	right.

	* sample/GtkDemo/DemoHyperText.cs (EventAfter): handle
	link-clicking from Widget.WidgetEventAfter (as in the C version),
	rather than ButtonRelease, now that WidgetEventAfter is wrapped.

	* sample/GtkDemo/DemoImages.cs (DemoImages): use
	Gtk.Image.LoadFromResource (particularly to make the animation
	work right).
	(OnDestroyed): handle clean up (remove the timeout, etc)

	* sample/GtkDemo/DemoMain.cs (LoadStream): Fix handling of blank
	lines and whitespace to match the C version.

	* sample/GtkDemo/DemoPixbuf.cs (Expose): Use
	System.Runtime.InteropServices.Marshal.Copy() to copy
	pixbuf.Pixels to pass to DrawRgbImageDithalign, to make this more
	like the C version (and probably faster?)
	(timeout): Remove the FIXME since it seems to work now

	* sample/GtkDemo/DemoStockBrowser.cs: Simplify a bunch. Use
	reflection to get the C# names of the stock icons rather than
	trying to correctly re-mangle the ids. Display the Label with the
	accelerator underlined.

	* sample/GtkDemo/DemoTextView.cs (AttachWidgets): use
	Gtk.Image.LoadFromResource, so the image is properly loaded as an
	animation, not a static image. Don't set the combobox's "Active"
	property (for consistency with the C version).
	(InsertText): Fix miscellaneous differences with the C version.
	Remove some leftover cruft from earlier workarounds for gtk# bugs.

	* sample/GtkDemo/DemoTreeStore.cs (AddColumns): Make this more
	like the C version so the checkboxes are sensitized and hidden
	correctly on a per-row basis.

	* sample/GtkDemo/DemoUIManager.cs: Make the radio menu items work.

	* sample/GtkDemo/README: 
	* sample/GtkDemo/TODO: update

svn path=/trunk/gtk-sharp/; revision=42481
2005-04-01 21:08:14 +00:00
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
John Luke
c672ddc7a3 flush
svn path=/trunk/gtk-sharp/; revision=39607
2005-01-26 23:05:42 +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
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
John Luke
7535410958 enable completion on this now
svn path=/trunk/gtk-sharp/; revision=38006
2004-12-20 23:39:59 +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
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
John Luke
8f2aa18cb0 improve this thing
svn path=/trunk/gtk-sharp/; revision=32972
2004-08-28 20:51:06 +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
8e7348d260 implement Progressive image loader
and part of the stock browser

svn path=/trunk/gtk-sharp/; revision=32053
2004-08-08 18:30:25 +00:00
John Luke
db410e9497 implement some of the DemoApplicationWindow
fix some bugs in DemoEditableCells
use more consistent tabs and spaces
add a TODO of what is left
use the using () pattern to dispose Dialogs automatically
use args.RetVal when handling the DeleteEvent

svn path=/trunk/gtk-sharp/; revision=32017
2004-08-07 17:06:29 +00:00