Your problem is that colorsel property has type Widget. You have to cast it to ColorSelection.
Just two general notes about your question: - keep your questions in one thread - don't name the thread "help me please". use something informative, for god's sake... 2009/6/15 Nicolas <[email protected]>: > Hi Frederik, > > Thank you it work ! > Can you help one more time please, i have this problem: > > newcolor = new ColorSelectionDialog ("Choose your prefered background > color:") > var response = newcolor.run() > if response is ResponseType.OK > color : Color > var colorsel = newcolor.colorsel > color = colorsel.get_current_color() > newcolor.destroy() > > > texteditor.gs:481.21-481.46: error: The name `get_current_color' does not > exist in the context of `Gtk.Widget' > color = colorsel.get_current_color() > > > What is the problem ? > > > Thanks in advance, > Nicolas. > > _______________________________________________ > Vala-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/vala-list > _______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
