Re: Where do I find the constants?



On Mo, 2013-12-30 at 21:54 +0000, Christian Jaeger wrote:

- are integer values passed to add_button converted to strings
according to some rule? Which? At least the example seems to suggest
that -5 is mapped to the string 'ok'.

They are converted according to the definition of the enumeration
GtkResponseType:

https://developer.gnome.org/gtk3/stable/GtkDialog.html#GtkResponseType

- I've now checked what the run method actually returns, and it's
integer values, either 0 or -1 or -5.

At least as of perl-Gtk3 0.009, the run() method should return strings
for the predefined response types, i.e. those with negative integer
values.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]