logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Gtk2::Dialog enhancements: msg#00077

Subject: Re: Gtk2::Dialog enhancements
"muppet" <scott@xxxxxxxxxxx> writes:

> discovered that no functionality equivalent to gtk_dialog_new_with_buttons was
> implemented, so i did.  is there
> 
> instead of having another constructor, you specify the new_with_buttons args
> to new, in the same vein as the multi-purpose new for Gtk2::Button.
> 
> i also made some changes to the way the response ids are handled.  the dialog
> functions were accepting only ints, but run() was attempting to return a
> GtkResponseType enum, resulting in rather annoying problems...  i changed this
> so that the functions accept either response type enums strings or integers,
> and run() returns a string if the return code maps into the enum, and
> otherwise an integer.   this allows you to specify stock response codes as
> well as custom ones.

the function you introduced, gtk2_perl_try_convert_enum,
duplicates much code from gtk2_perl_convert_enum. you can do
better! :)


-- 
Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>