private IntPtr ColorDialog_Create(ColorDialog dlg)
        {
            string title = dlg.Title;
            if (title == null)
                title = "Select Color";

            IntPtr handle = Internal.GTK.Methods.gtk_color_dialog_new (title, CommonDialog_GetParentHandle(dlg), !dlg.AutoUpgradeEnabled);
            return handle;
        }
 private void ColorDialog_Accept(ColorDialog dlg, IntPtr handle)
 {
     Internal.GDK.Structures.GdkRGBA color = new Internal.GDK.Structures.GdkRGBA ();
     Internal.GTK.Methods.gtk_color_chooser_get_rgba (handle, out color);
     dlg.SelectedColor = UniversalWidgetToolkit.Drawing.Color.FromRGBADouble (color.red, color.green, color.blue, color.alpha);
 }