gtk_tree_selection_set_select_function and gtk_tree_selection_selected_foreach



Aloha,

attached is a patch that implements the functions mentioned in the
topic. Tested with the following snippet:

  # prints path of previously selected row
  $view -> get_selection() -> set_select_function(sub {
    my ($selection, $model, $path, $selected) = @_;

    $selection -> selected_foreach(sub {
      my ($model, $path, $iter) = @_;
      warn $path -> to_string();
    });

    return 1;
  });

HTH,
-Torsten

Attachment: gtk2perl_gtk_tree_selection_selected_foreach_and_set_select_function.patch
Description: Binary data



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