Beispiel #1
0
 static void AddPalette_cb(IntPtr inst, int orientation, int colors_per_line, int n_colors, IntPtr colors)
 {
     try {
         IColorChooserImplementor __obj = GLib.Object.GetObject(inst, false) as IColorChooserImplementor;
         __obj.AddPalette((Gtk.Orientation)orientation, colors_per_line, n_colors, Gdk.RGBA.New(colors));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Beispiel #2
0
 public ColorChooserAdapter(IColorChooserImplementor implementor)
 {
     if (implementor == null)
     {
         throw new ArgumentNullException("implementor");
     }
     else if (!(implementor is GLib.Object))
     {
         throw new ArgumentException("implementor must be a subclass of GLib.Object");
     }
     this.implementor = implementor as GLib.Object;
 }