[perl-Gtk3] Add a few more porting notes



commit ba11820dbe56ff0f957a596a29de97bbd190c4bb
Author: Torsten SchÃnfeld <kaffeetisch gmx de>
Date:   Wed Jan 30 00:25:52 2013 +0100

    Add a few more porting notes

 lib/Gtk3.pm               |   17 +++++++++++++----
 t/zz-GtkCellLayoutIface.t |    2 +-
 2 files changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/lib/Gtk3.pm b/lib/Gtk3.pm
index a7baa74..a817d8e 100644
--- a/lib/Gtk3.pm
+++ b/lib/Gtk3.pm
@@ -1461,7 +1461,7 @@ L<Gtk3>.
 Cairo::RectangleInt, and as such they are represented as plain hashes with
 keys 'width', 'height', 'x' and 'y'.
 
-=item * Gtk3::Editable: Callbacks connected the "insert-text" signal do not
+=item * Gtk3::Editable: Callbacks connected to the "insert-text" signal do not
 have as many options anymore as they had in Gtk2.  Changes to arguments will
 not be propagated to the next signal handler, and only the updated position can
 and must be returned.
@@ -1469,13 +1469,19 @@ and must be returned.
 =item * Gtk3::Menu: The position callback passed to popup() does not receive x
 and y parameters anymore.
 
-=item * Gtk3::TreeModel: iter_next() and iter_previous() are now methods that
-modify the iter directly, instead of returning a new one.  rows_reordered() and
-the "rows-reordered" signal are currently unusable.
+=item * Gtk3::TreeModel: iter_next() is now a method that is modifying the iter
+directly, instead of returning a new one.  rows_reordered() and the
+"rows-reordered" signal are currently unusable.
+
+=item * Gtk3::TreeSelection: get_selected_rows() now returns two values: an
+array ref containing the selected paths, and the model.  get_user_data() is not
+available currently.
 
 =item * Gtk3::TreeSortable: get_sort_column_id() has an additional boolean
 return value.
 
+=item * Gtk3::TreeStore, Gtk3::ListStore: reorder() is currently unusable.
+
 =item * Implementations of Gtk3::TreeModel: Gtk3::TreeIter now has a
 constructor called new() expecting C<< key => value >> pairs;
 new_from_arrayref() does not exist anymore.  To access the contents of
@@ -1486,6 +1492,9 @@ ITER_NEXT() must modify the iter and return a boolean rather than return a new
 iter.  GET_VALUE() must return the value wrapped with C<<
 Glib::Object::Introspection::GValueWrapper->new >>.
 
+=item * Implementations of Gtk3::CellLayout: GET_CELLS() now needs to return an
+array ref instead of a list.
+
 =back
 
 Note also that Gtk3::CHECK_VERSION will always fail when passed 2.y.z, so if
diff --git a/t/zz-GtkCellLayoutIface.t b/t/zz-GtkCellLayoutIface.t
index d073df1..375cf06 100644
--- a/t/zz-GtkCellLayoutIface.t
+++ b/t/zz-GtkCellLayoutIface.t
@@ -110,5 +110,5 @@ sub GET_CELLS {
   $self->{cell_one} = Gtk3::CellRendererText->new;
   $self->{cell_two} = Gtk3::CellRendererToggle->new;
   my @list = grow_the_stack();
-  return [$self->{cell_one}, $self->{cell_two}]; # FIXME: list instead of array ref?
+  return [$self->{cell_one}, $self->{cell_two}];
 }



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