A couple of small bugs + patches



I found a couple of small problems in 0.7005:

- Gtk::OptionMenu->get_menu returns a Gtk::Widget instead of a
  Gtk::OptionMenu->Gtk::Menu.

- Gtk::Menu->get_active returns a Gtk::Widget instead of a
  Gtk::Menu->Gtk::MenuItem.

I believe that the attached patch corrects this, but since I'm pretty
new to the code, I could have done the wrong thing.

-- 
Dave Carrigan (dave rudedog org)            | Yow! OKAY!!  Turn on the sound
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | ONLY for TRYNEL CARPETING,
Seattle, WA, USA                            | FULLY-EQUIPPED R.V.'S and
http://www.rudedog.org/                     | FLOATATION SYSTEMS!!

diff -ur libgtk-perl-0.7005/Gtk/xs/GtkMenu.xs ../libgtk-perl-0.7005/Gtk/xs/GtkMenu.xs
--- libgtk-perl-0.7005/Gtk/xs/GtkMenu.xs        Sun Dec 31 10:52:44 2000
+++ ../libgtk-perl-0.7005/Gtk/xs/GtkMenu.xs     Wed Feb 28 09:12:12 2001
@@ -100,7 +100,7 @@
 gtk_menu_popdown(menu)
        Gtk::Menu       menu
 
-Gtk::Widget
+Gtk::Widget_Up
 gtk_menu_get_active(menu)
        Gtk::Menu       menu
 
diff -ur libgtk-perl-0.7005/Gtk/xs/GtkOptionMenu.xs ../libgtk-perl-0.7005/Gtk/xs/GtkOptionMenu.xs
--- libgtk-perl-0.7005/Gtk/xs/GtkOptionMenu.xs  Sun Jun 18 06:55:49 2000
+++ ../libgtk-perl-0.7005/Gtk/xs/GtkOptionMenu.xs       Wed Feb 28 09:05:58 2001
@@ -16,7 +16,7 @@
        OUTPUT:
        RETVAL
 
-Gtk::Widget
+Gtk::Widget_Up
 gtk_option_menu_get_menu(optionmenu)
        Gtk::OptionMenu optionmenu
 




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