gtk 0.1.0

Rust bindings for the GTK+ 3 library
// This file was generated by gir (4d68d19) from gir-files (11e0e6d)
// DO NOT EDIT

use Bin;
use ColorChooser;
use Container;
use Dialog;
use Widget;
use Window;
use ffi;
use glib::object::Downcast;
use glib::object::IsA;
use glib::translate::*;

glib_wrapper! {
    pub struct ColorChooserDialog(Object<ffi::GtkColorChooserDialog>): Dialog, Window, Bin, Container, Widget, ColorChooser;

    match fn {
        get_type => || ffi::gtk_color_chooser_dialog_get_type(),
    }
}

impl ColorChooserDialog {
    pub fn new<T: IsA<Window>>(title: Option<&str>, parent: Option<&T>) -> ColorChooserDialog {
        assert_initialized_main_thread!();
        unsafe {
            Widget::from_glib_none(ffi::gtk_color_chooser_dialog_new(title.to_glib_none().0, parent.to_glib_none().0)).downcast_unchecked()
        }
    }
}