mirror of
				https://github.com/Ryujinx/GtkSharp.git
				synced 2025-10-27 22:07:46 +00:00 
			
		
		
		
	* gtk/*.custom : don't use element_type ctor for GObject lists. svn path=/trunk/gtk-sharp/; revision=22996
		
			
				
	
	
		
			23 lines
		
	
	
		
			630 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			630 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| // TextChildAnchor.custom - customizations to Gtk.TextChildAnchor
 | |
| //
 | |
| // Authors: Mike Kestner  <mkestner@ximian.com>
 | |
| //
 | |
| // Copyright (c) 2004 Novell, Inc.
 | |
| 
 | |
| 		[DllImport("libgtk-win32-2.0-0.dll")]
 | |
| 		static extern IntPtr gtk_text_child_anchor_get_widgets (IntPtr raw);
 | |
| 
 | |
| 		public Widget[] Widgets {
 | |
| 			get {
 | |
| 				IntPtr raw_ret = gtk_text_child_anchor_get_widgets (Handle);
 | |
| 				if (raw_ret == IntPtr.Zero)
 | |
| 					return new Widget [0];
 | |
| 				GLib.List list = new GLib.List(raw_ret);
 | |
| 				Widget[] result = new Widget [list.Count];
 | |
| 				for (int i = 0; i < list.Count; i++)
 | |
| 					result [i] = list [i] as Widget;
 | |
| 				return result;
 | |
| 			}
 | |
| 		}
 | |
| 
 |