/** * thunar_location_dialog_get_selected_file: * @location_dialog : a #ThunarLocationDialog. * * Returns the file selected for the @dialog or * %NULL if the file entered is not valid. * * Return value: the selected #ThunarFile or %NULL. **/ ThunarFile* thunar_location_dialog_get_selected_file (ThunarLocationDialog *location_dialog) { _thunar_return_val_if_fail (THUNAR_IS_LOCATION_DIALOG (location_dialog), NULL); return thunar_path_entry_get_current_file (THUNAR_PATH_ENTRY (location_dialog->entry)); }
/** * thunar_location_dialog_set_selected_file: * @location_dialog : a #ThunarLocationDialog. * @selected_file : a #ThunarFile or %NULL. * * Sets the file for @location_dialog to @selected_file. **/ void thunar_location_dialog_set_selected_file (ThunarLocationDialog *location_dialog, ThunarFile *selected_file) { _thunar_return_if_fail (THUNAR_IS_LOCATION_DIALOG (location_dialog)); _thunar_return_if_fail (selected_file == NULL || THUNAR_IS_FILE (selected_file)); thunar_path_entry_set_current_file (THUNAR_PATH_ENTRY (location_dialog->entry), selected_file); }
/** * thunar_location_dialog_set_working_directory: * @location_dialog : a #ThunarLocationDialog. * @directory : a #ThunarFile or %NULL. * * Sets the working directory of @location_dialog to @directory. **/ void thunar_location_dialog_set_working_directory (ThunarLocationDialog *location_dialog, ThunarFile *directory) { _thunar_return_if_fail (THUNAR_IS_LOCATION_DIALOG (location_dialog)); _thunar_return_if_fail (directory == NULL || THUNAR_IS_FILE (directory)); thunar_path_entry_set_working_directory (THUNAR_PATH_ENTRY (location_dialog->entry), directory); }