A little fix for Gtk2::Dialog



Hello,

Gtk2::Dialog::set_alternative_button_order complains about responce id
strings, looks like someone has forgotten to add support for them.
I don't know this xs stuff but I managed to fix it by copying from 
some other function that uses response ids:

diff -ur Gtk2-1.092-orig/xs/GtkDialog.xs Gtk2-1.092/xs/GtkDialog.xs
--- Gtk2-1.092-orig/xs/GtkDialog.xs     2005-07-10 15:22:20.000000000 +0300
+++ Gtk2-1.092/xs/GtkDialog.xs  2005-07-21 20:50:03.000000000 +0300
@@ -468,7 +468,7 @@
        if ((n_params = (items - 1)) > 0) {
                new_order = g_new0 (gint, n_params);
                for (i = 1; i < items; i++)
-                       new_order[i - 1] = SvIV (ST (i));
+                       new_order[i - 1] = sv_to_response_id(ST (i));
 
                gtk_dialog_set_alternative_button_order_from_array (
                        dialog, n_params, new_order);

BTW, is this list the correct place for bug reports and fixes? There is
no "report bug" link at gtk2-perl.sf.net or in the Gtk2-Perl source
tarball...

LoneFox



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