GNOME Bugzilla – Bug 652374
region: remove helper function not needed since GTK+ 3.0
Last modified: 2011-06-12 13:09:55 UTC
Noticed this while doing another patch.
Created attachment 189743 [details] [review] region: remove helper function not needed since GTK+ 3.0 GTK+ 3.0 introduced gtk_tree_model_iter_previous() so we no longer need to keep this helper function. Also, simplify the use of GtkTreeIters by allocating them on the stack.
Review of attachment 189743 [details] [review]: Just one question. Looks fine otherwise. ::: panels/region/gnome-region-panel-xkblt.c @@ +384,3 @@ return; + prev = iter; Hmm, not certain we can copy those by value.
(In reply to comment #2) > ::: panels/region/gnome-region-panel-xkblt.c > @@ +384,3 @@ > return; > > + prev = iter; > > Hmm, not certain we can copy those by value. We can, according to http://developer.gnome.org/gtk3/stable/GtkTreeModel.html#gtk-tree-iter-copy
Well, copying structs like that ... always looked suspicious to me. But if everybody is ok with it, I am committing.