converting from gtk2-perl to gtk2-perl-xs (work in progress)



s/Gtk2->timeout_/Glib::Timeout->/g;
s/Glib::Timeout->remove.Glib::Source->remove/g;
s/Gtk2->exit/Gtk2::exit/g;
s/Gtk2->init(\/Gtk2->init(/g;
s/Gtk2->update_ui/Gtk2->main_iteration while Gtk2->events_pending/g;
s/Gtk2::Gdk::Window->foreign_new(Gtk2::Gdk->ROOT_WINDOW)/Gtk2::Gdk->get_default_root_window()/g;
s/Gtk2::Menu->get_type/"Gtk2::Menu"/g;
s/Gtk2::MenuBar->get_type/"Gtk2::MenuBar"/g;
s/Gtk2::Pango->PANGO_PIXELS/Gtk2::Pango->pixels/g;
s/->style->get_font_desc/->get_font_description/g;
# Usually at least:
s/Gtk2::GType->OBJECT/"Gtk2::Gdk::Pixbuf"/g;
s/Gtk2::GType->STRING/"Glib::String"/g;
s/Gtk2::GType->INT/"Glib::Int"/g;

# maybe indirect calls:
# s/->free//g;
# s/->unref//g;

# Gtk2::ItemFactory->create_items : s/([ @menu_items ])/($window, @menu_items)/g

# ItemFactory creation from hash is bogus: switch to arrays
# this way, you won't miss <type> anyway ...

# Notebook->append_page does not automatically creates Label from
# string [no-no]

# TextBuffer->set_text lost its last arg

# s/->active/->get_active/g on CheckBoxes


# Pango constants are pain in the ass to get




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