[Thunar-dev] Thunar get all files from standarview
Benedikt Meurer
benedikt.meurer at unix-ag.uni-siegen.de
Tue Oct 23 18:03:02 CEST 2007
Fernando Maróstica wrote:
> Helo guys!
>
> Is there another way to get all files in Thunar?
>
> GList *all_items;
> GList *selected_items;
>
> all_items = thunar_list_model_get_paths_for_pattern
> (standard_view->model, "*");
>
> selected_items = THUNAR_STANDARD_VIEW_GET_CLASS
> (standard_view)->get_selected_items (standard_view);
>
> The all_items is all files in Thunar and selected_items is the selected
> files from user. So, Is there another way or correct way to me get all
> files in Thunar without use thunar_list_model_get_paths_for_pattern?
Query the model from the view and query the folder from that model. The
folder object includes all files from a certain folder (including the
hidden ones).
> Cheers.
> Fernando Maróstica.
Benedikt
More information about the Thunar-dev
mailing list